On Twitch if any user on the site posts more then 30 messages in 15 seconds, it will result in the IP of that user being banned from all twitch chat for 8 hours. This means you and your bot won't be able to send messages in chat, including timing people out.
However if the user is a moderator in the channel, it moves to 100 messages in 15 seconds. After 100 messages in 15 seconds the same as above will happen to your IP.
There is no way around this, and it can not be undone, you will have to wait the 8 hours out.
(It may not seem likely, but if you have a busy chat, and everyone starts spamming it all at once, banned.
User this script to prevent that.
on *:TEXT:!salty:#: {
if ((%spam) || ($($+(%,pam.,$nick),2))) { return }
set -u2 %aspam On
set -u10 %apispam. $+ $nick On
msg # PJSalt
msg # PJSalt PJSalt
msg # PJSalt PJSalt PJSalt
msg # PJSalt PJSalt
msg # PJSalt
}
This will make sure the bot will not send this message again within 2 seconds of sending it with this line
if ((%spam) || ($($+(%,pam.,$nick),2))) { return }
set -u2 %aspam On
And will make sure the specific user who initiated the command will not be able to do so again within 10 seconds
with this line
set -u10 %apispam. $+ $nick On
If you want to change the time, replace the
-u10 or
-u2 with the number of seconds you wish to pause the script for.