forked from Firepup650/FireBot
This handling block is important
This commit is contained in:
parent
28d910c095
commit
ebc98a7267
1 changed files with 7 additions and 0 deletions
7
bot.py
7
bot.py
|
@ -303,3 +303,10 @@ class bot:
|
||||||
)
|
)
|
||||||
self.msg(f"[QUOTE] {sel}", chan)
|
self.msg(f"[QUOTE] {sel}", chan)
|
||||||
mm.close()
|
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")
|
||||||
|
|
Loading…
Reference in a new issue