Lots of little random things

This commit is contained in:
RussellChamp committed 2018-01-24 20:51:54 +00:00
1 parent c89ac52460
commit 1849bd34e5
14 files changed
+106 -45

No files matched your search

+3 -1
View File
@@ -138,9 +138,11 @@ def define_word(channel, user, text):
defs = defWord(word)
if(len(defs) == 0):
ircsock.send("PRIVMSG " + channel + " :" + user + ": Couldn't find the definition of '" + word + "' :(\n")
else:
elif(isinstance(defs, list)):
for entry in defs:
ircsock.send("PRIVMSG " + channel + " :" + user + ": Define '" + word + "'" + entry[0:400] + "\n")
else:
ircsock.send("PRIVMSG " + channel + " :" + user + ": Define '" + word + "'" + defs[0:400] + "\n")
def make_rainbow(channel, user, text):
rbword = makeRainbow(text[9:])