fix ww_stop bug when no game is running
This commit is contained in:
		
							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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user