From ebc98a7267925657a2c4afd0513a2c0dba63cc31 Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Tue, 7 Nov 2023 08:01:37 -0600 Subject: [PATCH] This handling block is important --- bot.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bot.py b/bot.py index 4d5076a..652ab54 100644 --- a/bot.py +++ b/bot.py @@ -303,3 +303,10 @@ class bot: ) self.msg(f"[QUOTE] {sel}", chan) mm.close() + else: + if ircmsg.startswith("PING "): + ping(ircmsg) + elif ircmsg.startswith("ERROR :Closing Link"): + exit("I got killed :'(") + elif ircmsg.startswith("ERROR :Ping "): + exit("Ping timeout")