PokemonAutomation / AutoMaxLair

Bot for automating shiny hunting in Dynamax Adventures
GNU General Public License v3.0
25 stars 14 forks source link

updates to discord embeds: ping by level and good colors #99

Closed denvoros closed 3 years ago

denvoros commented 3 years ago

Lots of little updates to the discord notifications.

NOTE: I have not tested these yet! If someone else would that would be great!

Either way, the discord notifications have been adjusted to remove the "ping_me" option altogether. Now, the user can select one of five levels for discord notifications (explained in the config file) and it should check dynamically based on the level of the notification coming through as well as what the user has set. This allows finer control and no need to check for a boolean and keeps everything together.

I also updated the win percent and time to win so that they're updated when the number of runs and stuff are added. That way they don't need to be calculated on the fly when sending a discord notification or viewing results on the screen.

I also wrote a little script (thanks to some help from stack overflow) on how to get common colors from an image. This means that the discord embeds should have a good color based on the shiny sprite so that it looks nice. I had to hand select some. Hopefully it will read them as well.