Bot can't write messages even though the account isn't banned

That would be your problem then. You need to send the correct “IRC line endings” in order to trigger the PRIVMSG properly