flottbot
flottbot copied to clipboard
Native way to throttle bot usage
Limit how many times a bot will trigger a rule based on a user defined param. For example:
I'm running a bot on a remote system/ against an api that doesn't have rate limiting in place, i could have my remote system/api ddos'ed by a malicious user through the bot. Maybe set some reasonable default of 60 times/hr or something.
- https://github.com/golang/go/wiki/RateLimiting could be also
- https://github.com/bwmarrin/discordgo/blob/master/ratelimit.go is already implementing rate limiting