From 69976f55056778e978e6d686ea8721addd3dd55a Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Thu, 11 Apr 2024 21:45:40 -0500 Subject: [PATCH] Formatting --- bot.py | 4 +--- commands.py | 9 ++++++--- timers.py | 8 ++++++-- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/bot.py b/bot.py index b9babe9..012f381 100644 --- a/bot.py +++ b/bot.py @@ -36,9 +36,7 @@ class bot(bare.bot): conf.servers[server]["admins"] if "admins" in conf.servers[server] else [] ) self.ignores = ( - conf.servers[server]["ignores"] - if "ignores" in conf.servers[server] - else [] + conf.servers[server]["ignores"] if "ignores" in conf.servers[server] else [] ) self.__version__ = conf.__version__ self.npallowed = conf.npallowed diff --git a/commands.py b/commands.py index 8a88501..9625bc3 100644 --- a/commands.py +++ b/commands.py @@ -185,8 +185,7 @@ def fmpull(bot: bare.bot, chan: str, name: str, message: str) -> None: ) if song: bot.msg( - "Firepup is currently listening to: " - + song.__str__(), + "Firepup is currently listening to: " + song.__str__(), chan, ) else: @@ -205,7 +204,11 @@ data: dict[str, dict[str, Any]] = { "bugs bugs bugs": {"prefix": False, "aliases": []}, "hi $BOTNICK": {"prefix": False, "aliases": ["hello $BOTNICK"]}, # [npbase, su] - "restart": {"prefix": True, "aliases": ["reboot", "stop", "hardreload", "hr"], "check": checks.admin}, + "restart": { + "prefix": True, + "aliases": ["reboot", "stop", "hardreload", "hr"], + "check": checks.admin, + }, "uptime": {"prefix": True, "aliases": []}, "raw ": {"prefix": True, "aliases": ["cmd "], "check": checks.admin}, "debug": {"prefix": True, "aliases": ["dbg", "d"], "check": checks.admin}, diff --git a/timers.py b/timers.py index 7127ea5..d88508d 100644 --- a/timers.py +++ b/timers.py @@ -96,8 +96,12 @@ def radio(instance: bare.bot) -> NoReturn: if not firstMiss: firstMiss = True continue - instance.msg("Firepup seems to have stopped the music by mistake :/", "#fp-radio") - instance.sendraw("TOPIC #fp-radio :Firepup radio (Offline) - https://open.spotify.com/playlist/4ctNy3O0rOwhhXIKyLvUZM") + instance.msg( + "Firepup seems to have stopped the music by mistake :/", "#fp-radio" + ) + instance.sendraw( + "TOPIC #fp-radio :Firepup radio (Offline) - https://open.spotify.com/playlist/4ctNy3O0rOwhhXIKyLvUZM" + ) complained = True lastTrack = "null" except Exception: