mirror of
https://github.com/RPCS3/discord-bot.git
synced 2024-11-26 19:50:36 +00:00
oops, forgot this debug print()
This commit is contained in:
parent
d5835739a6
commit
1709f445b4
2
bot.py
2
bot.py
@ -841,7 +841,7 @@ async def add_warning_for_user(ctx: Context, user_id: int, reporter_id: int, rea
|
||||
|
||||
Warning(discord_id=user_id, issuer_id=reporter_id, reason=reason, full_reason=full_reason).save()
|
||||
num_warnings: int = Warning.select().where(Warning.discord_id == user_id).count()
|
||||
print("Saved warning for " + str(user_id))
|
||||
#print("Saved warning for " + str(user_id))
|
||||
await ctx.send("User warning saved! User currently has {} {}!".format(
|
||||
num_warnings,
|
||||
'warning' if num_warnings % 10 == 1 and num_warnings % 100 != 11 else "warnings"
|
||||
|
Loading…
Reference in New Issue
Block a user