FIX: Roulette would reset to chamber 0 instead of -1, skipping the first chamber after drum spin

ipm
Kamal Curi 2 years ago
parent a268fd7229
commit b37b310439

@ -554,7 +554,9 @@ async def neeble_debug(bot:object) -> str:
lrqers = last_rq.keys()
lrqer = last_rqer
abusers = rq_abusers
return await bot.send(f"```\nqt_count:{qt_count}\nst_size:{st_size}\nst_limit:{stack_limit}\nlst_qt:{last_quote}\nct_authors:{ct_authors}\nlrqers:{lrqers}\nlrqer:{lrqer}\nabusers:{abusers}\n```")
rl_drum = drum
rl_chmb = chamber
return await bot.send(f"```\nqt_count:{qt_count}\nst_size:{st_size}\nst_limit:{stack_limit}\nlst_qt:{last_quote}\nct_authors:{ct_authors}\nlrqers:{lrqers}\nlrqer:{lrqer}\nabusers:{abusers}\nrl_drum:{rl_drum}\nrl_chmb:{rl_chmb}```")
@client.command(aliases=['dr', 'droll'])
async def dice_roll(bot:object, size:int=6) -> str:
@ -574,6 +576,7 @@ async def roulette(bot:object) -> str:
global drum
global chamber
spin = 0
if not drum:
await bot.send("Inserting a bullet and spinning the drum...")
@ -584,7 +587,7 @@ async def roulette(bot:object) -> str:
chamber+=1
if drum[chamber] == 'bang':
chamber = 0
chamber = -1
drum = []
return await bot.send(f"BANG! {bot.author.name} died.")
else:

Loading…
Cancel
Save