coupage de langue persifleuse
This commit is contained in:
parent
b91280c9e0
commit
a690a9feb3
3
bot.py
3
bot.py
@ -83,7 +83,8 @@ def join_irc(ircsock, botnick, channel):
|
||||
def msg_handler(ircsock): # pragma: no cover (this excludes this function from testing)
|
||||
new_msg = ircsock.recv(2048) # receive data from the server
|
||||
new_msg = new_msg.strip('\n\r') # removing any unnecessary linebreaks
|
||||
print(datetime.datetime.now().isoformat() + " " + new_msg) #### Potentially make this a log instead?
|
||||
if new_msg != '':
|
||||
print(datetime.datetime.now().isoformat() + " " + new_msg) #### Potentially make this a log instead?
|
||||
return new_msg
|
||||
|
||||
# Called by bot on startup. Builds a regex that matches one of the options + (space) botnick.
|
||||
|
Loading…
Reference in New Issue
Block a user