If you want to ask why: the pirc dont get me all informations how i want and the other libs need millions of other libs and some of then are to old and dont work anymore…
Back to the problem:
To script the lib is easy and i hade no problem BUT i run this in my Raspberry the 3 seperatet instances and 2 different account and sometimes i’ll get a twitch ban… i dont know why
Spam in public chat i isn’t (i check this days and at this time they write nothing).
Implement a message rate limiting system in your bot to keep track of just how fast you are sending messages to chat. If you are sending a large burst of messages into chat, that is reason for a ban. I would suggest dropping all of your messages into a processing queue and handling them as the queue times out based on what user type you are in chat at that time (Individual per room, so if you are connecting to multiple rooms, it is better to err on the side of caution and go with the user rate limit).
As with what 3ventic said, this is NOT IP based, it is based on just how fast you are sending messages.