|
|
@ -567,7 +567,8 @@ async def roulette(bot:object, *option:str) -> str:
|
|
|
|
spin = 0
|
|
|
|
spin = 0
|
|
|
|
|
|
|
|
|
|
|
|
if comlock['roulette'] == True:
|
|
|
|
if comlock['roulette'] == True:
|
|
|
|
return await bot.send(bot.author.name + " has hit command lock")
|
|
|
|
await bot.send(bot.author.name + " has hit command lock")
|
|
|
|
|
|
|
|
return 0
|
|
|
|
|
|
|
|
|
|
|
|
if 'lb' in option:
|
|
|
|
if 'lb' in option:
|
|
|
|
with open(ROULETTE_LEADERBOARD, mode='r') as file:
|
|
|
|
with open(ROULETTE_LEADERBOARD, mode='r') as file:
|
|
|
@ -596,9 +597,9 @@ async def roulette(bot:object, *option:str) -> str:
|
|
|
|
await bot.send(f"BANG! {bot.author.name} died.")
|
|
|
|
await bot.send(f"BANG! {bot.author.name} died.")
|
|
|
|
russians[bot.author.name] = 0
|
|
|
|
russians[bot.author.name] = 0
|
|
|
|
for r in russians.keys():
|
|
|
|
for r in russians.keys():
|
|
|
|
if bot.author.name in roulette_leaderboard.keys():
|
|
|
|
try:
|
|
|
|
roulette_leaderboard[r] += russians[r]
|
|
|
|
roulette_leaderboard[r] += russians[r]
|
|
|
|
else:
|
|
|
|
except KeyError:
|
|
|
|
roulette_leaderboard[r] = russians[r]
|
|
|
|
roulette_leaderboard[r] = russians[r]
|
|
|
|
with open(ROULETTE_LEADERBOARD, mode='w') as file:
|
|
|
|
with open(ROULETTE_LEADERBOARD, mode='w') as file:
|
|
|
|
json.dump(roulette_leaderboard, file)
|
|
|
|
json.dump(roulette_leaderboard, file)
|
|
|
|