-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgame_seeker.py
34 lines (28 loc) · 992 Bytes
/
game_seeker.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
# -*- coding: utf-8 -*-
from discord.ext.commands import Cog, command, Context
from enigma.emebds.misc import DevelopmentEmbed
from enigma.settings import in_production
class GameSeeker(Cog):
def __init__(self, bot):
self.bot = bot
@command(
name='host',
brief='Hosts game',
description='Creates your\'s event in provided game.',
help='Bot sends info to all guilds with set game hosting, allowing other people too get in touch with you and'
' other gamers.',
usage='<game name> [additional info]',
enabled=not in_production()
)
async def host(self, ctx: Context, game: str = None, description: str = None):
await ctx.send(embed=DevelopmentEmbed(
author=ctx.author
).add_field(
name='GAME',
value=game
).add_field(
name='DESCRIPTION',
value=str(description)
))
def setup(bot):
bot.add_cog(GameSeeker(bot))