IRC Bot disconnects with EOF unless it joins its own channel

Yes, I’m only sending PONGs when I receive a PING.

However I’m using this library https://github.com/thoj/go-ircevent
which seems to send ‘PING timestamp’ to the server here
https://github.com/thoj/go-ircevent/blob/master/irc.go#L160
(which is what I was referring to when I said ping rate).

Could it be that twitch servers do not support these pings?
I am not handling anything differently for my own channel, by the way.

This is the core of my irc handling (note that SendRawf appends \r\n automatically: https://github.com/Francesco149/shigebot/blob/master/shige/bot.go#L125

EDIT: I just noticed that the ircevent library already handles PING internally by replying with PONG :server , but the disconnection issue was there even before I added my own PING handler.