implement usage of log_transaction
@@ -570,6 +570,7 @@ class Econ(commands.Cog):
await self.db.balance_sub(ctx.author.id, amount)
await self.db.balance_add(user.id, amount)
+ await self.db.log_transaction('emerald', amount, ctx.author.id, user.id)
await self.bot.send(ctx, ctx.l.econ.give.gave.format(ctx.author.mention, amount, self.d.emojis.emerald, user.mention))
else:
@@ -585,6 +586,7 @@ class Econ(commands.Cog):
await self.db.remove_item(ctx.author.id, item, amount)
await self.db.add_item(user.id, db_item['name'], db_item['sell_price'], amount)
+ await self.db.log_transaction(db_item['name'], amount, ctx.author.id, user.id)
await self.bot.send(ctx, ctx.l.econ.give.gave.format(ctx.author.mention, amount, db_item['name'], user.mention))
