fixed order n stuff

This commit is contained in:
virtual 2018-06-29 16:24:45 -04:00
parent 8b046b6979
commit 05a16b29a3
1 changed files with 5 additions and 3 deletions

8
bot.py
View File

@ -7,9 +7,11 @@ class Bot:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((server, int(port)))
b = s.recv(4096)
s.send("PONG :"+b.split(" ")[1])
s.send("USER %s * 3 :hello\n" % user)
s.send("NICK %s\n" % user)
s.send("USER %s * 8 TildeIRC!" % user)
s.send("NICK %s" % user)
if b.find("PING") != -1:
# sorry khuxkm if i legit just copy-pasted, i didn't have enough brain power
s.send("PONG %s\r\n" % b.split()[1])
def read(self):
while 1: