From d2d0b471317fe240094c3ec423c5313f0c969eff Mon Sep 17 00:00:00 2001 From: 9pfs <9pfs@amcforum.wiki> Date: Wed, 1 May 2024 01:06:53 +0000 Subject: [PATCH] idk --- bot.py | 2 +- timers.py | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/bot.py b/bot.py index 9c8f6f0..dbfbafa 100644 --- a/bot.py +++ b/bot.py @@ -270,7 +270,7 @@ class bot(bare.bot): tdict = {} for thread in self.threads: tdict[thread] = timers.data[thread] - if thread in ["radio"]: + if tdict[thread]["passInstance"]: tdict[thread]["args"] = [self] tMgr = Thread(target=timers.threadManager, args=(tdict,)) tMgr.daemon = True diff --git a/timers.py b/timers.py index 9e20014..b91d905 100644 --- a/timers.py +++ b/timers.py @@ -112,11 +112,6 @@ def radio(instance: bare.bot) -> NoReturn: instance.log("Thread while loop broken", "FATAL") exit(1) -def mcDown(instance: bare.bot) -> None: - instance.sendraw("TOPIC #firemc :FireMC Relay channel (offline)") - - data: dict[str, dict[str, Any]] = { - "radio": {"noWrap": True, "func": radio, "args": []}, - "mc-down": {"noWrap": False, "func": mcDown, "args": [], "interval": 60, "ignoreErrors": True} + "radio": {"noWrap": True, "func": radio, "args": []} }