ADD: Command lock

ipm
Kamal Curi 2 years ago
parent c8bb1921ca
commit a3c01cfe13

@ -31,6 +31,9 @@ with open(RQ_LEADERBOARD, mode='r') as f:
quote_content = {}
comlock = {'roulette': False
}
drum = []
chamber = -1
@ -541,8 +544,14 @@ async def roulette(bot:object) -> str:
global drum
global chamber
global comlock
spin = 0
if comlock['roulette'] == True:
return 0
comlock['roulette'] = True
if not drum:
await bot.send("Inserting a bullet and spinning the drum...")
drum.extend(['click']*6)
@ -554,8 +563,13 @@ async def roulette(bot:object) -> str:
if drum[chamber] == 'bang':
chamber = -1
drum = []
return await bot.send(f"BANG! {bot.author.name} died.")
await bot.send(f"BANG! {bot.author.name} died.")
comlock['roulette'] = False
return 0
else:
await bot.send("Click!")
comlock['roulette'] = False
return 0
@client.command(aliases=['dbg'])
async def neeble_debug(bot:object) -> str:

Loading…
Cancel
Save