From b0e79861ad877121d3b3e04dedf70795dbfa562b Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Sat, 11 May 2024 22:30:31 -0500 Subject: [PATCH] Formatting --- bot.py | 10 ++++++++-- config.py | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 7174fda..c1df37f 100644 --- a/bot.py +++ b/bot.py @@ -83,7 +83,9 @@ class bot(bare.bot): for line in f.readlines(): TMFeed.extend([line.strip().split()]) self.markov = MarkovBot(TMFeed) - conf.prefix = (conf.servers[server]["prefix"] if "prefix" in conf.servers[server] else ".") + conf.prefix = ( + conf.servers[server]["prefix"] if "prefix" in conf.servers[server] else "." + ) self.log(f"Start init for {self.server}") def connect(self) -> None: @@ -321,7 +323,11 @@ class bot(bare.bot): if "interval" in conf.servers[self.server] else 50 ) - conf.prefix = (conf.servers[server]["prefix"] if "prefix" in conf.servers[server] else ".") + conf.prefix = ( + conf.servers[server]["prefix"] + if "prefix" in conf.servers[server] + else "." + ) reload(cmds) reload(handlers) self.msg("Reloaded successfully", chan) diff --git a/config.py b/config.py index bb88d4b..5a88fb0 100644 --- a/config.py +++ b/config.py @@ -67,7 +67,7 @@ servers: dict[str, dict[str, Any]] = { "#firepup650": 0, }, "admins": ["firepup650"], - "prefix": "!" + "prefix": "!", }, } admin_hosts: list[str] = ["firepup.firepi", "47.221.227.180"]