diff --git a/orochi/bot.py b/orochi/bot.py index 63f1dae..3fa23ef 100644 --- a/orochi/bot.py +++ b/orochi/bot.py @@ -469,6 +469,9 @@ async def override(ctx: commands.Context, player_name: str, target_score: int): """ game: Game = Game.INSTANCE + if target_score <= 0: + return await ctx.reply("Le score désiré doit valoir au moins 1.") + for player in game.players.values(): if player.name.lower() == player_name.lower(): current_player = player