fix ww_stop bug when no game is running
This commit is contained in:
parent
ffbed8cb9a
commit
8e0105355c
@ -285,7 +285,8 @@ class Werewolf(Cog):
|
|||||||
|
|
||||||
game = await self._get_game(ctx)
|
game = await self._get_game(ctx)
|
||||||
game.game_over = True
|
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")
|
await ctx.maybe_send_embed("Game has been stopped")
|
||||||
|
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user