Avoid spamming #firemc

This commit is contained in:
9pfs 2024-05-01 00:36:28 +00:00
parent 2339db32d3
commit 913e2d7de8
Signed by: 9pfs
SSH key fingerprint: SHA256:TOcGxMQCfy4VvRM8AzgXErKXdkAtaTcpGXgYMpyoJoY

2
bot.py
View file

@ -115,6 +115,8 @@ class bot(bare.bot):
handlers.CTCP(self, ircmsg)
if "Closing link" in ircmsg:
self.exit("Closing Link")
if ircmsg.startswith(":FireMCBot!minecraft@fire.mc QUIT"):
self.send("TOPIC #firemc :FireMC Relay channel (offline)\n")
else:
self.exit("Lost connection to the server")
self.log(f"Joined {self.server} successfully!")