Formatting
This commit is contained in:
parent
14bec4c9f9
commit
9105ce199f
1 changed files with 3 additions and 1 deletions
4
bot.py
4
bot.py
|
@ -6,6 +6,7 @@ import re
|
||||||
from typing import NoReturn
|
from typing import NoReturn
|
||||||
from config import npbase, servers, __version__
|
from config import npbase, servers, __version__
|
||||||
|
|
||||||
|
|
||||||
class bot:
|
class bot:
|
||||||
def __init__(server: str):
|
def __init__(server: str):
|
||||||
self.gmode = False
|
self.gmode = False
|
||||||
|
@ -35,7 +36,8 @@ class bot:
|
||||||
self.send(f"USER {botnick} {botnick} {botnick} {botnick}\n")
|
self.send(f"USER {botnick} {botnick} {botnick} {botnick}\n")
|
||||||
self.send(f"NICK {botnick}\n")
|
self.send(f"NICK {botnick}\n")
|
||||||
while (
|
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()
|
ircmsg = self.recv().decode()
|
||||||
if ircmsg != "":
|
if ircmsg != "":
|
||||||
|
|
Loading…
Reference in a new issue