-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbot_responses.py
83 lines (65 loc) · 1.74 KB
/
bot_responses.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
import random
no = [
"no",
"No!",
"NO!!!!!",
"nO",
"NO",
"nO!!"
]
yesican = [
"yes",
"yes.",
"I can do that",
"yes!"
]
yesiwill = [
"yes, I will",
"yes",
"I will",
"yes, that is true"
]
everything = [
"everything."
]
maybe = [
"maybe"
]
rickroll = [
"http://www.mit.edu/~shint/handouts/endurance.html"
]
cantagbot = [
"tagbot able to"
]
twoplustwo = [
"2 + 2 is not 4. It is 1,000,000,000."
]
async def bot_responses(self, message):
# responses::twoplustwo
if "2+2" in message.content.lower().replace(" ", ""):
print("[responses] Running responses::twoplustwo")
await message.reply(random.choice(twoplustwo), mention_author=True)
return
# responses::will
if "will tagbot" in message.content.lower():
print("[responses] Running responses::will")
await message.reply(random.choice(yesiwill), mention_author=True)
return
# responses::what
if "what can tagbot" in message.content.lower() or "what tagbot can" in message.content.lower():
print("[responses] Running responses::what")
await message.reply(random.choice(everything), mention_author=True)
return
# responses::can
if "can tagbot" in message.content.lower() or "does tagbot" in message.content.lower():
print("[responses] Running responses::can")
await message.reply(random.choice(yesican), mention_author=True)
return
if "will tagbot" in message.content.lower() or "when will tagbot" in message.content.lower():
print("[responses] Running responses::can")
await message.reply(random.choice(yesican), mention_author=True)
return
if "tagbot able to" in message.content.lower() or "tagbot be able" in message.content.lower():
print("[responses] Running responses::can")
await message.reply(random.choice(yesican), mention_author=True)
return