forked from theammir/dionysos-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnackcog.py
45 lines (36 loc) · 1.27 KB
/
snackcog.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
import discord
import menu
import random
from discord.ext import commands
class SnackCog(commands.Cog, name = '{snackcog}'):
def __init__(self, bot):
self.bot = bot
@commands.command(name = 'парварда', aliases = ['parvarda'])
async def order_parvarda(self, ctx):
embed = discord.Embed(
colour = 0x289566,
description = random.choice(menu.ORDER_PHRASES)
)
embed.set_image(url = random.choice(menu.PARVARDA_PICS))
embed.set_footer(text = random.choice(menu.PARVARDA_FACTS))
await ctx.send(embed = embed)
@commands.command(name = 'чипсы', aliases = ['chips', 'crisps'])
async def order_chips(self, ctx):
embed = discord.Embed(
colour = 0x289566,
description = random.choice(menu.ORDER_PHRASES)
)
embed.set_image(url = random.choice(menu.CHIPS_PICS))
embed.set_footer(text = random.choice(menu.CHIPS_FACTS))
await ctx.send(embed = embed)
@commands.command(name = 'фрукты', aliases = ['fruits'])
async def order_fruits(self, ctx):
embed = discord.Embed(
colour = 0x289566,
description = random.choice(menu.ORDER_PHRASES)
)
embed.set_image(url = random.choice(menu.FRUIT_PICS))
embed.set_footer(text = random.choice(menu.FRUIT_FACTS))
await ctx.send(embed = embed)
def setup(bot):
bot.add_cog(SnackCog(bot))