fix hat badges

remotes/1693045480750635534/spooky-22
Aevann1 2022-09-16 23:57:56 +02:00
parent 2553a16dcf
commit 1f3f735502
1 changed files with 3 additions and 3 deletions

View File

@ -73,11 +73,11 @@ def buy_hat(v, hat_id):
f":marseycapitalistmanlet: @{v.username} has just bought `{hat.name}`, you have received your 10% cut ({int(hat.price * 0.1)} {currency}) :!marseycapitalistmanlet:"
)
if v.num_of_owned_hats >= 249:
if v.num_of_owned_hats >= 250:
badge_grant(user=v, badge_id=154)
elif v.num_of_owned_hats >= 99:
elif v.num_of_owned_hats >= 100:
badge_grant(user=v, badge_id=153)
elif v.num_of_owned_hats >= 24:
elif v.num_of_owned_hats >= 25:
badge_grant(user=v, badge_id=152)
return {"message": f"'{hat.name}' bought!"}