more detailed toast on banning/chudding

master
Aevann 2022-12-25 00:45:01 +02:00
parent 727a6d0180
commit 715fecbb15
1 changed files with 2 additions and 2 deletions

View File

@ -963,7 +963,7 @@ def ban_user(user_id, v):
comment.bannedfor = f'{duration} by @{v.username}' comment.bannedfor = f'{duration} by @{v.username}'
g.db.add(comment) g.db.add(comment)
return {"message": f"@{user.username} has been banned!"} return {"message": f"@{user.username} has been banned {duration}!"}
@app.post("/agendaposter/<user_id>") @app.post("/agendaposter/<user_id>")
@ -1033,7 +1033,7 @@ def agendaposter(user_id, v):
comment.chuddedfor = f'{duration} by @{v.username}' comment.chuddedfor = f'{duration} by @{v.username}'
g.db.add(comment) g.db.add(comment)
return {"message": f"@{user.username} has been chudded!"} return {"message": f"@{user.username} has been chudded {duration}!"}
@app.post("/unban_user/<user_id>") @app.post("/unban_user/<user_id>")