From f0d50170e3358370d3b1b04e9bbbcdd5383d7398 Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Mon, 6 Nov 2023 16:23:31 -0600 Subject: [PATCH] __init__ must take a `self` --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index e8545fe..dd39e80 100644 --- a/bot.py +++ b/bot.py @@ -8,7 +8,7 @@ from config import npbase, servers, __version__ class bot: - def __init__(server: str): + def __init__(self, server: str): self.gmode = False self.server = server self.nicklen = 30 @@ -27,7 +27,7 @@ class bot: self.np = re.compile(npbase.replace("MAX", f"{nicklen}")) self.queue = [] self.sock = socket(AF_INET, SOCK_STREAM) - log(f"Start init for {server}", self.server) + self.log(f"Start init for {server}") def connect(self) -> None: self.log(f"Joining {server}...")