From 2dc702b4a8a7f438cb025ea699248d2814e01850 Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Sun, 5 Nov 2023 21:19:26 -0600 Subject: [PATCH] Drop unused vars --- bot.py | 2 -- ircbot.py | 6 +----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/bot.py b/bot.py index 61534a3..347486f 100644 --- a/bot.py +++ b/bot.py @@ -22,8 +22,6 @@ class bot: self.prefix = "." self.rebt = "fire" self.gblrebt = "all" - self.lrebt = 7 + len(rebt) - self.lgblrebt = 7 + len(gblrebt) self.adminnames = servers[server]["admins"] self.exitcode = f"bye {self.nick.lower()}" self.np = re.compile(npbase.replace("MAX", f"{nicklen}")) diff --git a/ircbot.py b/ircbot.py index d47dd42..8bcd167 100644 --- a/ircbot.py +++ b/ircbot.py @@ -55,12 +55,8 @@ if __name__ == "__main__": prefix = "." rebt = "fire" gblrebt = "all" - lrebt = 7 + len(rebt) - lgblrebt = 7 + len(gblrebt) adminnames = servers[server]["admins"] exitcode = f"bye {botnick.lower()}" - ircmsg = "" - blanks = 0 npbase = "\[\x0303last\.fm\x03\] [A-Za-z0-9_[\]{}\\|^]{1,MAX} (is listening|last listened) to: \x02.+ - .*\x02 \([0-9]+ plays\)( \[.*\])?" np = re.compile(npbase.replace("MAX", f"{nicklen}")) queue = [] @@ -262,7 +258,7 @@ def op(name, chan): def main(): try: - global channels, e, gmode, prefix, rebt, gblrebt, lrebt, lgblrebt, blanks + global channels, e, gmode, prefix, rebt, gblrebt log("Starting connection..", server) joinserver() if "pass" in servers[server]: