Open rikai opened 7 years ago
Turns out cinch has rate limiting already and this too
We just need to add the config option and decide what a good default value is.
Based on the channel modes on #JupiterBroadcasting, I would suggest the following settings:
messages_per_second: 1
(JBot can't send more than half of the messages in any given 5-second window)server_queue_size: 5
(The hard limit is 10, so half that seems reasonable)Mmm, keep in mind that JBot also talks in PMs, so this has to account for throughput for that as well, not ONLY the channel.
That's a good point.
However, there haven't been any other suggestions… perhaps we could implement these numbers, then tweak them if they seem too conservative?
Sounds fine to me. 👍
Should I submit a PR that adds these settings to cinchize.yml.example
?
Yes please
leaving this open until i can 100% confirm it works. 👍
Currently there is no concept of rate limiting in the bot, this needs to be addressed alongside #40.