Start and delete game: send message on success

This commit is contained in:
Elnath 2021-06-09 23:08:23 +02:00
parent a5b05e81ad
commit b268527fa7
1 changed files with 2 additions and 0 deletions

View File

@ -96,6 +96,7 @@ class SecretBot(commands.Cog):
else:
await ctx.guild.get_member(self.bot.user.id).add_roles(gm_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")
async def delete_game(self, ctx: commands.Context):
@ -104,6 +105,7 @@ class SecretBot(commands.Cog):
gm_role = game.get_gm_role()
await game.delete(ctx.guild)
await ctx.guild.get_member(self.bot.user.id).remove_roles(gm_role)
await ctx.reply(":white_check_mark: Game deleted!")
else:
await ctx.reply(":x: Game is not running")