Formatting

This commit is contained in:
Firepup Sixfifty 2023-11-05 18:50:04 -06:00
parent 14bec4c9f9
commit 9105ce199f
Signed by: Firepup650
GPG key ID: 7C92E2ABBBFAB9BA

4
bot.py
View file

@ -6,6 +6,7 @@ import re
from typing import NoReturn
from config import npbase, servers, __version__
class bot:
def __init__(server: str):
self.gmode = False
@ -35,7 +36,8 @@ class bot:
self.send(f"USER {botnick} {botnick} {botnick} {botnick}\n")
self.send(f"NICK {botnick}\n")
while (
ircmsg.find("MODE " + botnick) == -1 and ircmsg.find("PRIVMSG " + botnick) == -1
ircmsg.find("MODE " + botnick) == -1
and ircmsg.find("PRIVMSG " + botnick) == -1
):
ircmsg = self.recv().decode()
if ircmsg != "":