fix ww_stop bug when no game is running

pull/164/head
bobloy 4 years ago
parent ffbed8cb9a
commit 8e0105355c

@ -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()

Loading…
Cancel
Save