fix middle_cards, fix async, discussion timer added
This commit is contained in:
parent
be93817063
commit
e56a5d1629
4 changed files with 41 additions and 29 deletions
|
|
@ -108,6 +108,7 @@ def error_handling(command):
|
|||
@error_handling
|
||||
async def start(ctx):
|
||||
game_instances[ctx.channel].game = bot.loop.create_task(game_instances[ctx.channel].round())
|
||||
await game_instances[ctx.channel].game
|
||||
|
||||
|
||||
@game.command()
|
||||
|
|
@ -133,13 +134,6 @@ async def players(ctx):
|
|||
async def roles(ctx):
|
||||
await game_instances[ctx.channel].set_roles(ctx.message.content.split()[3:]) # exclude commands
|
||||
|
||||
# ONLY FOR TESTING
|
||||
@game.command()
|
||||
@game_running
|
||||
@error_handling
|
||||
async def vote(ctx):
|
||||
await game_instances[ctx.channel].vote()
|
||||
|
||||
|
||||
# smaller commands
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue