forked from rDrama/rDrama
make it so u can use marseybux for pinging ping groups ur not a member of
parent
301199e92d
commit
cd44456079
|
@ -156,7 +156,7 @@ def NOTIFY_USERS(text, v, oldtext=None, ghost=False, log_cost=None):
|
||||||
if cost > v.coins:
|
if cost > v.coins:
|
||||||
abort(403, f"You need {cost} coins to mention these ping groups!")
|
abort(403, f"You need {cost} coins to mention these ping groups!")
|
||||||
|
|
||||||
v.charge_account('coins', cost)
|
v.charge_account('combined', cost)
|
||||||
if log_cost:
|
if log_cost:
|
||||||
log_cost.ping_cost = cost
|
log_cost.ping_cost = cost
|
||||||
return 'everyone'
|
return 'everyone'
|
||||||
|
@ -183,7 +183,7 @@ def NOTIFY_USERS(text, v, oldtext=None, ghost=False, log_cost=None):
|
||||||
log_cost.ping_cost = cost
|
log_cost.ping_cost = cost
|
||||||
|
|
||||||
if cost:
|
if cost:
|
||||||
v.charge_account('coins', cost)
|
v.charge_account('combined', cost)
|
||||||
|
|
||||||
return notify_users - BOT_IDs - {v.id, 0} - v.all_twoway_blocks
|
return notify_users - BOT_IDs - {v.id, 0} - v.all_twoway_blocks
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue