give to self no longer messes up ur dinks

Fixes #2
pull/3/head
Stijn De Clercq 2020-10-19 20:07:52 +02:00
parent 33705ac571
commit d93b81cf8f
1 changed files with 2 additions and 6 deletions

View File

@ -127,14 +127,10 @@ class Dinks(commands.Cog):
if not valid[0]:
return await ctx.send(valid[1])
authorDinks = float(currency.dinks(ctx.author.id))
if amount == "all":
amount = authorDinks
amount = float(amount)
amount = float(valid[1])
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(ctx.author.id, "dinks", authorDinks - amount)
rep = getRep(math.floor(amount), Numbers.t.value)