dvillavicencio / riven-bot

Discord Bot for Destiny 2 that retrieves statistics regarding Raid and Dungeon activities through Discord chat
2 stars 0 forks source link

Spike | Raid Map config-based retrieval #76

Open dvillavicencio opened 8 months ago

dvillavicencio commented 8 months ago

The first version of the /raid_maps command uses an Enum class to represent all the given Raids that a user could request in a command. However, this enum also holds an attribute named directory which hardcodes the name of the directory which contains all the image and attachments to send through Discord chat. The same has been done for RaidEncounter. This task is to investigate if there is a better solution to hardcoding these file locations and instead use a configuration-based solution where each Raid enum instance has a property set in a .yaml file. This way, we can separate and de-couple the responsibility of having the file locations in the enum classes and instead externalize the locations to a configuration file.