forked from MarseyWorld/MarseyWorld
sneed
parent
b4a9471ea1
commit
3a6c3d29a8
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Binary file not shown.
After Width: | Height: | Size: 9.4 KiB |
|
@ -144,11 +144,10 @@ def approve_marsey(v, name):
|
||||||
new_path = f'/asset_submissions/marseys/original/{name}.{i.format.lower()}'
|
new_path = f'/asset_submissions/marseys/original/{name}.{i.format.lower()}'
|
||||||
rename(highquality, new_path)
|
rename(highquality, new_path)
|
||||||
|
|
||||||
if v.id != author.id:
|
author.coins += 250
|
||||||
author.coins += 250
|
g.db.add(author)
|
||||||
g.db.add(author)
|
msg = f"@{v.username} has approved a marsey you made: :{marsey.name}:\nYou have received 250 coins as a reward!"
|
||||||
msg = f"@{v.username} has approved a marsey you made: :{marsey.name}:\nYou have received 250 coins as a reward!"
|
send_repeatable_notification(author.id, msg)
|
||||||
send_repeatable_notification(author.id, msg)
|
|
||||||
|
|
||||||
if v.id not in (author.id, marsey.submitter_id):
|
if v.id not in (author.id, marsey.submitter_id):
|
||||||
msg = f"@{v.username} has approved a marsey you submitted: :{marsey.name}:"
|
msg = f"@{v.username} has approved a marsey you submitted: :{marsey.name}:"
|
||||||
|
@ -341,4 +340,4 @@ def remove_hat(v, name):
|
||||||
os.remove(f"/asset_submissions/hats/{hat.name}.webp")
|
os.remove(f"/asset_submissions/hats/{hat.name}.webp")
|
||||||
os.remove(f"/asset_submissions/hats/{hat.name}")
|
os.remove(f"/asset_submissions/hats/{hat.name}")
|
||||||
|
|
||||||
return {"message": f"'{hat.name}' removed!"}
|
return {"message": f"'{hat.name}' removed!"}
|
||||||
|
|
Loading…
Reference in New Issue