BulletBot
BulletBot copied to clipboard
Webhook resub spam
Describe the bug The bot, when restarted several times, spam resubs to all youtube webhooks.
To Reproduce Steps to reproduce the behavior:
- Restart the bot several times
- 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.