So my question is, how would i get my bot to listen if there is a PING and if there\'s no ping in an interval of a minute, it will react as though the connection has been lo
You should not use data.find('PING') because it also finds "PING" in other messages. And then you send an incorrect PONG...
data.find('PING')
Instead try something like that:
if data[0:4] == "PING": irc.send("PONG " + data.split()[1] + "\n")