__init__ must take a self

This commit is contained in:
Firepup Sixfifty 2023-11-06 16:23:31 -06:00
parent bd94f1b67f
commit f0d50170e3
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA

4
bot.py
View file

@ -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}...")