diff --git a/handlers.py b/handlers.py index d5d8bd3..3c07adc 100644 --- a/handlers.py +++ b/handlers.py @@ -172,6 +172,7 @@ def PART(bot: bare.bot, msg: str) -> tuple[None, None]: bot.channels.pop(channel, None) return None, None + def QUIT(bot: bare.bot, msg: str) -> tuple[None, None]: if bot.server == "replirc": quitter = msg.split("!", 1)[0][1:] @@ -179,6 +180,7 @@ def QUIT(bot: bare.bot, msg: str) -> tuple[None, None]: bot.send("TOPIC #firemc :FireMC Relay channel (offline)\n") return None, None + def NULL(bot: bare.bot, msg: str) -> tuple[None, None]: return None, None @@ -192,5 +194,5 @@ handles: dict[ "PART": PART, "MODE": NULL, "TOPIC": NULL, - "QUIT": QUIT + "QUIT": QUIT, } diff --git a/timers.py b/timers.py index 25a6afe..08075a9 100644 --- a/timers.py +++ b/timers.py @@ -112,6 +112,7 @@ def radio(instance: bare.bot) -> NoReturn: instance.log("Thread while loop broken", "FATAL") exit(1) + data: dict[str, dict[str, Any]] = { "radio": {"noWrap": True, "func": radio, "passInstance": True} }