mirror of https://github.com/stijndcl/didier
parent
33705ac571
commit
d93b81cf8f
|
@ -127,14 +127,10 @@ class Dinks(commands.Cog):
|
||||||
if not valid[0]:
|
if not valid[0]:
|
||||||
return await ctx.send(valid[1])
|
return await ctx.send(valid[1])
|
||||||
|
|
||||||
authorDinks = float(currency.dinks(ctx.author.id))
|
amount = float(valid[1])
|
||||||
if amount == "all":
|
|
||||||
amount = authorDinks
|
|
||||||
|
|
||||||
amount = float(amount)
|
|
||||||
|
|
||||||
|
currency.update(ctx.author.id, "dinks", float(currency.dinks(ctx.author.id)) - amount)
|
||||||
currency.update(person.id, "dinks", float(currency.dinks(person.id)) + amount)
|
currency.update(person.id, "dinks", float(currency.dinks(person.id)) + amount)
|
||||||
currency.update(ctx.author.id, "dinks", authorDinks - amount)
|
|
||||||
|
|
||||||
rep = getRep(math.floor(amount), Numbers.t.value)
|
rep = getRep(math.floor(amount), Numbers.t.value)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue