That's Numberwang!

This commit is contained in:
JP
2019-09-11 21:13:01 +02:00
parent ce073034e4
commit 6fade5cf38
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -40,6 +40,9 @@ class Chatbot(object):
if message.content.lower() == "lol":
yield from message.channel.send("laffing aut laut")
return
if re.match("^[0-9][0-9.,]*$", message.content.strip()) and random.randint(0,9) == 0:
yield from message.channel.send("That's Numberwang!") # https://www.youtube.com/watch?v=0obMRztklqU
return
if "DMChannel" in type(message.channel).__name__: #respond to messages in PM channels
if (self.isAllowedToLearnFromPm(message)): #avoid spam-learning
self.pmCount += 1
+2 -1
View File
@@ -27,4 +27,5 @@ Verder zoek je het maar lekker zelf uit. Of installeer deze requirements:
* `asyncio`
* `numpy`
* `youtube_dl`
* `ffmpeg-python`
* `ffmpeg-python`
* `spotipy`