all of a sudden (since about yesterday evening) my bot script (written in Ruby 2.3) isn’t able to send chat messages anymore. However, if I log in to the account manually and send a message to the same channel chat room, it works perfectly.
Also, the script is able to send commands like JOIN to the IRC server because it recieves the handshake. Only messages don’t work. It still recieves messages other users send.
If it’s needed, I can post the source code of the functions that are used here.
Do note the message in PRIVMSG is the trailing part of the IRC command, which is required to start with a :, i.e. the format should be PRIVMSG #channel :message\r\n.
The script is sending well-formed PRIVMSG commands to the server but doesn’t get any response. As I said, it gets a response to commands like JOIN and until yesterday, it worked. Currently, I am not sending an \r\n at the end, but should that really matter?
I tried to append the line endings but it still doesn’t work. Would it help if I posted some more of the source code?
EDIT: Apparently it works if I run the script on my local computer instead of the server. Now a different question: May a IP be temporarly banned for being in a channel and writing a message every 10 minutes for about 2 days?
So looks like the IP range your server is in is shadow banned probably from a malicious user with your same provider. Quick solution is to make sure the bot is modded in any channels it needs to send message to which is a good practice anyway.
Another solution is to contact support and request the bot be whitelisted.
Is the channel the bot you are trying to talk in, in follower only mode?
Does the bot follow the channel that you are trying to talk in?
I had this problem recently and didn’t realise the problem till I remember the channel I was trying to send to, has follower only mode on, and the bot account didn’t follow the channel