thatmaxplayle / MaxBot

The Discord Bot written by a guy called Max. It basically does everything 🤩
https://maxplayle04.github.io/MaxBot
0 stars 0 forks source link

Update notification fires more than once #16

Closed thatmaxplayle closed 4 years ago

thatmaxplayle commented 4 years ago

For some reason, the update service triggers on a reconnect thus causing a duplicate “I’ve been updated” embed as seen in the attached....

Add a variable bool which is set to true once an update has been announced, then surround the update embed trigger event to say if (UpdateServiceAlreadyPostedEmbed == false) { //post embed in channels }

F48E5075-74BB-4B7A-953D-2B33CB28C425

thatmaxplayle commented 4 years ago

Hopefully fixed; introduced a DuplicationPreventationService measure, which should prevent the notification from firing more than once if the bot needs to reconnect etc...