fix ww_stop bug when no game is running

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

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

Loading…
Cancel
Save