From e5076dbfb55ce9bb15b03828bc1c50bb790b9bed Mon Sep 17 00:00:00 2001 From: Kamal Curi Date: Mon, 9 Oct 2023 14:19:28 -0300 Subject: [PATCH] FIX: Command lock now raises for leaderboard --- utils/commands.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/utils/commands.py b/utils/commands.py index 3978a7f..509f8ab 100644 --- a/utils/commands.py +++ b/utils/commands.py @@ -566,6 +566,9 @@ async def roulette(bot:object, *option:str) -> str: global roulette_leaderboard spin = 0 + if comlock['roulette'] == True: + return await bot.send(bot.author.name + " has hit command lock") + if 'lb' in option: with open(ROULETTE_LEADERBOARD, mode='r') as file: data = "```\nLeaderboard do --roulette:\n" @@ -576,9 +579,6 @@ async def roulette(bot:object, *option:str) -> str: data = data + "```" return await bot.send(data) - if comlock['roulette'] == True: - return await bot.send(bot.author.name + " can't take the gun as it is still on someone's hand!") - comlock['roulette'] = True if not drum: