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

Enhance autocomplete for raid stats + Ton more changes #115

Closed dvillavicencio closed 2 months ago

dvillavicencio commented 2 months ago

There is a TON of things that were done here, mostly catching up with writing both integration and unit tests for several beans and services, so I'll list them out here

  1. Made a Redis configuration and switched from using an In-memory cache manager to using Redis
  2. Improved the way the autocomplete works, instead of sending a pair value of membershipId:membershipType as an autocomplete prompt and subsequently receiving that as the only valid input, now both the /raid_stats command and the autocomplete allow you to input a user using the username#tag format
  3. Autocomplete now caches results for 5 minutes and uses Levenshtein distance to give more accurate results in case the user types a tag. This is because the bungie API does not allow for searching with user tag, only with prefix.
  4. Made a static component hold all the known ButtonIds that the Bot can serve atm
  5. Added a new BaseDiscordChatException which reflects when something bad happens but we still want to send an error message in Discord chat as an alternate interaction response.
  6. Added multiple Unit tests for services that previously had no tests.
  7. Renamed several beans so they're less semantically ambiguous

And a whole lot of things.