Open illusi0nary opened 4 years ago
@tmetten mentioned that i did a little oopsie i wrote "song" instead of "scare" request. 😊
Thanks ! i corrected it!
I have an idea for this:
This way, you can define different timeouts per command and the spam protected logic is contained to 1 location.
Later checks for roles could be added in message.js.
Feature Extension of the Halloween Bot Scare (HBS) Currently you can spam the command as often as you want. In order to prevent spamming we want to have an anti-spam protection. The protection should prevent a single user from using the command too often in a configurable time span.
Details The bot remembers who requested a scare request and has a configurable time duration how long and how often a user can get the bot into the channel. If the user exceeds that limit the bot simpy ingores that user command.