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: