IRC disconnects after 1 minute of inactivity

I have observed something like this.

The nodeJS irc library, uses a cycling ping timer, if it’s not seen a ping for a while it sends it’s own.

I antitcpate the connection is being closed by your Python code, becuase it thinks the server is dead, rather than sending it’s own PING