fix ww_stop bug when no game is running

This commit is contained in:
bobloy 2020-10-01 14:33:24 -04:00
parent ffbed8cb9a
commit 8e0105355c

View File

@ -285,7 +285,8 @@ class Werewolf(Cog):
game = await self._get_game(ctx)
game.game_over = True
game.current_action.cancel()
if game.current_action:
game.current_action.cancel()
await ctx.maybe_send_embed("Game has been stopped")
@commands.guild_only()