From a5e62baae9ee4eac8839b7435087ba9f2ad6ea5f Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Tue, 26 Nov 2024 21:10:29 -0600 Subject: [PATCH] Formatting --- bot.py | 5 ++++- commands.py | 2 +- threads.py | 4 +++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index afc8f3a..cb90211 100644 --- a/bot.py +++ b/bot.py @@ -194,7 +194,10 @@ class bot(bare.bot): elif code == 475: self.log(f"Joining {chan} failed (+k without/with bad key)") if origin != "null": - self.msg(f"{chan} is +k, and either you didn't give me a key, or you gave me the wrong one.", origin) + self.msg( + f"{chan} is +k, and either you didn't give me a key, or you gave me the wrong one.", + origin, + ) break elif code == 480: self.log(f"Joining {chan} failed (+S)", "WARN") diff --git a/commands.py b/commands.py index f5b25a1..0cf4a19 100644 --- a/commands.py +++ b/commands.py @@ -189,7 +189,7 @@ def sudo(bot: bare.bot, chan: str, name: str, message: str) -> None: elif "bot" in name.lower(): bot.log("lol, no.") else: - bot.msg('sudo: a password is required', chan) + bot.msg("sudo: a password is required", chan) def nowplaying(bot: bare.bot, chan: str, name: str, message: str) -> None: diff --git a/threads.py b/threads.py index dca0c79..5282816 100644 --- a/threads.py +++ b/threads.py @@ -148,12 +148,14 @@ def radio(instance: bare.bot) -> NoReturn: instance.log("Thread while loop broken", "FATAL") exit(1) + def ping(instance: bare.bot) -> NoReturn: while 1: instance.sendraw("PING :keepalive") sleep(30) + data: dict[str, dict[str, Any]] = { "radio": {"noWrap": True, "func": radio, "passInstance": True}, - "pingMon": {"noWrap": True, "func": ping, "passInstance": True} + "pingMon": {"noWrap": True, "func": ping, "passInstance": True}, }