Start and delete game: send message on success
This commit is contained in:
parent
a5b05e81ad
commit
b268527fa7
|
|
@ -96,6 +96,7 @@ class SecretBot(commands.Cog):
|
||||||
else:
|
else:
|
||||||
await ctx.guild.get_member(self.bot.user.id).add_roles(gm_role)
|
await ctx.guild.get_member(self.bot.user.id).add_roles(gm_role)
|
||||||
await game.start(gm_role, player_role)
|
await game.start(gm_role, player_role)
|
||||||
|
await ctx.reply(":white_check_mark: Game started!")
|
||||||
|
|
||||||
@commands.command("DeleteGame", help = "Delete a running game and all of its associated channels")
|
@commands.command("DeleteGame", help = "Delete a running game and all of its associated channels")
|
||||||
async def delete_game(self, ctx: commands.Context):
|
async def delete_game(self, ctx: commands.Context):
|
||||||
|
|
@ -104,6 +105,7 @@ class SecretBot(commands.Cog):
|
||||||
gm_role = game.get_gm_role()
|
gm_role = game.get_gm_role()
|
||||||
await game.delete(ctx.guild)
|
await game.delete(ctx.guild)
|
||||||
await ctx.guild.get_member(self.bot.user.id).remove_roles(gm_role)
|
await ctx.guild.get_member(self.bot.user.id).remove_roles(gm_role)
|
||||||
|
await ctx.reply(":white_check_mark: Game deleted!")
|
||||||
else:
|
else:
|
||||||
await ctx.reply(":x: Game is not running")
|
await ctx.reply(":x: Game is not running")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue