Drop unused vars

This commit is contained in:
Firepup Sixfifty 2023-11-05 21:19:26 -06:00
parent ed63c35b81
commit 2dc702b4a8
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA
2 changed files with 1 additions and 7 deletions

2
bot.py
View file

@ -22,8 +22,6 @@ class bot:
self.prefix = "." self.prefix = "."
self.rebt = "fire" self.rebt = "fire"
self.gblrebt = "all" self.gblrebt = "all"
self.lrebt = 7 + len(rebt)
self.lgblrebt = 7 + len(gblrebt)
self.adminnames = servers[server]["admins"] self.adminnames = servers[server]["admins"]
self.exitcode = f"bye {self.nick.lower()}" self.exitcode = f"bye {self.nick.lower()}"
self.np = re.compile(npbase.replace("MAX", f"{nicklen}")) self.np = re.compile(npbase.replace("MAX", f"{nicklen}"))

View file

@ -55,12 +55,8 @@ if __name__ == "__main__":
prefix = "." prefix = "."
rebt = "fire" rebt = "fire"
gblrebt = "all" gblrebt = "all"
lrebt = 7 + len(rebt)
lgblrebt = 7 + len(gblrebt)
adminnames = servers[server]["admins"] adminnames = servers[server]["admins"]
exitcode = f"bye {botnick.lower()}" 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\)( \[.*\])?" 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}")) np = re.compile(npbase.replace("MAX", f"{nicklen}"))
queue = [] queue = []
@ -262,7 +258,7 @@ def op(name, chan):
def main(): def main():
try: try:
global channels, e, gmode, prefix, rebt, gblrebt, lrebt, lgblrebt, blanks global channels, e, gmode, prefix, rebt, gblrebt
log("Starting connection..", server) log("Starting connection..", server)
joinserver() joinserver()
if "pass" in servers[server]: if "pass" in servers[server]: