upgrade and done
This commit is contained in:
parent
fe1f5b89a7
commit
8501ef3903
@ -71,8 +71,8 @@ async def balance(ctx, member:discord.Member = "neni"):
|
||||
await ctx.author.send(embed = em)
|
||||
|
||||
|
||||
@bot.command()
|
||||
async def shame(ctx):
|
||||
@bot.command(aliases = ["blame"])
|
||||
async def shame(ctx, edge = -1):
|
||||
|
||||
role = await check_role(ctx, ctx.author)
|
||||
|
||||
@ -86,7 +86,7 @@ async def shame(ctx):
|
||||
em = discord.Embed(title = "List of shame", color = discord.Color.red())
|
||||
|
||||
for user in users:
|
||||
if users[user]["wallet"] < 0:
|
||||
if users[user]["wallet"] <= edge:
|
||||
|
||||
#creates dictionary of needed info
|
||||
debt = users[user]["wallet"]
|
||||
@ -157,7 +157,7 @@ async def open_account(user):
|
||||
return False
|
||||
else:
|
||||
users[str(user.id)] = {}
|
||||
users[str(user.id)]["wallet"] = 100
|
||||
users[str(user.id)]["wallet"] = 0
|
||||
|
||||
# saves a new data in json
|
||||
with open("mainbank.json", "w") as f:
|
||||
|
||||
@ -1 +1 @@
|
||||
{"412092791733354521": {"wallet": -2}, "232593965910720514": {"wallet": -1}, "1297253398349090816": {"wallet": -11}, "689788136301133839": {"wallet": -8}, "775434826126852148": {"wallet": 100}, "1280096437597765674": {"wallet": 1100}, "871341579607109683": {"wallet": -2}}
|
||||
{"412092791733354521": {"wallet": 0}, "1297253398349090816": {"wallet": 0}, "1280097085366079499": {"wallet": 10}, "924042349280129044": {"wallet": 10}, "1280096047653457942": {"wallet": 10}, "978038235156611082": {"wallet": 10}, "1151908013108645918": {"wallet": 5}, "1058465781509279774": {"wallet": 5}, "1280096099088072764": {"wallet": 5}}
|
||||
Loading…
x
Reference in New Issue
Block a user