Skip to content

Commit

Permalink
Add debug log for karma transfer, dont delete message when not found
Browse files Browse the repository at this point in the history
  • Loading branch information
jackra1n committed Feb 16, 2024
1 parent 1735f78 commit dca95b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bot/cogs/karma.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,9 @@ async def karma_donate(self, ctx: commands.Context, *args):
except ValueError:
continue

logger.debug(f'Karma transfer params -> User: {user}, amount: {amount}')
if user is None or amount is None:
return await ctx.reply("Could not find a user or amount in the provided arguments.", delete_after=20)
return await ctx.reply("Could not find a user or amount in the provided arguments.")

embed = discord.Embed(color=0xf66045)
if user.bot:
Expand Down

0 comments on commit dca95b4

Please sign in to comment.