ec check
This commit is contained in:
@@ -16,14 +16,14 @@ irc.send(str.encode('NICK ' + botnick + '\n'))
|
||||
irc.send(str.encode('JOIN '+ channel +'\n'))
|
||||
|
||||
while True:
|
||||
text = irc.recv(2040)
|
||||
print(text)
|
||||
text = irc.recv(2040)
|
||||
print(text)
|
||||
|
||||
if text.find(str.encode('PING')) != -1:
|
||||
irc.send(str.encode('PONG ' + str(text.split()[1]) + '\r\n'))
|
||||
if text.find(str.encode('PING')) != -1:
|
||||
irc.send(str.encode('PONG ' + str(text.split()[1]) + '\r\n'))
|
||||
|
||||
# !time - return current timestamp
|
||||
if text.find(str.encode('!time')) != -1:
|
||||
ts = time.time()
|
||||
irc.send(str.encode('PRIVMSG #admin :{}\r\n'.format(int(ts))))
|
||||
# !time - return current timestamp
|
||||
if text.find(str.encode('!time')) != -1:
|
||||
ts = time.time()
|
||||
irc.send(str.encode('PRIVMSG #admin :{}\r\n'.format(int(ts))))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user