CodeBullet-Community / BulletBot

A Discord bot for the Code Bullet and Co server
https://codebullet-community.github.io/BulletBot
GNU Affero General Public License v3.0
28 stars 9 forks source link

Webhook resub spam #63

Open Jet132 opened 4 years ago

Jet132 commented 4 years ago

Describe the bug The bot, when restarted several times, spam resubs to all youtube webhooks.

To Reproduce Steps to reproduce the behavior:

  1. Restart the bot several times
  2. Watch the logs as it resubs multiple times

Expected behavior It actually should just resub once every few days.

Solution When the bot starts it checks if there is already a PAction webhook resub task and if there isn't it creates one. This ensures that the webhooks are always resubbed so they never expire. It seems that the check is broken so it just creates a task each time.