-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbot_food.py
67 lines (54 loc) · 1.25 KB
/
bot_food.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
import random
snack = [
":croissant:",
":pretzel:",
":doughnut:",
":cookie:"
]
breakfast = [
":pancakes:",
":waffle:",
":bacon:"
]
lunch = [
":poultry_leg:",
":hotdog:",
":hamburger:",
":fries:",
":pizza:",
":sandwich:",
":salad:",
":spaghetti:",
":burrito:"
]
dinner = [
":cut_of_meat:",
":meat_on_bone:",
":spaghetti:",
":pie:",
":cake:",
":birthday:"
]
async def bot_food(self, message):
if ("cook" in message.content.lower() or "make" in message.content.lower()) and f"<@{self.user.id}>" in message.content:
# food::snack
if "snack" in message.content.lower():
print("[food] Running food::snack")
await message.reply(random.choice(snack), mention_author=True)
return
# food::breakfast
if "breakfast" in message.content.lower():
print("[food] Running food::breakfast")
await message.reply(random.choice(breakfast), mention_author=True)
return
# food:lunch
if "lunch" in message.content.lower():
print("[food] Running food::lunch")
await message.reply(random.choice(lunch), mention_author=True)
return
# food:dinner
if "dinner" in message.content.lower():
print("[food] Running food::dinner")
await message.reply(random.choice(dinner), mention_author=True)
return
print(message.content)