I'm making a chat bot for a site that has a set limit on the amount of messages you can send.
The limit is 100 message per 30 seconds.

I want the bot to store additional messages sent in a buffer and write them out,
so it does not exceed 100 messages within 30 seconds.

What would be the best way to do that?

Thanks
Toast