Merge pull request #1 from Marcus316/patch-1

Update banterbot.py with multi-definition handling
This commit is contained in:
Russell 2016-01-13 11:28:33 -05:00
commit 10d2aef8d0
1 changed files with 2 additions and 1 deletions

View File

@ -128,7 +128,8 @@ def define_word(channel, user, text):
if(len(defs) == 0):
ircsock.send("PRIVMSG " + channel + " :" + user + ": Couldn't find the definition of '" + word + "' :(\n")
else:
ircsock.send("PRIVMSG " + channel + " :" + user + ": Define '" + word + "'" + ''.join(defs)[0:200] + "\n")
for entry in defs:
ircsock.send("PRIVMSG " + channel + " :" + user + ": Define '" + word + "'" + entry[0:200] + "\n")
def make_rainbow(channel, user, text):
rbword = makeRainbow(text[9:])