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