forked from rDrama/rDrama
like last commit
parent
4d3a76f686
commit
615d18c41b
|
@ -65,18 +65,19 @@ def award_timers(v, bot=False):
|
||||||
if v.owoify and v.owoify < now:
|
if v.owoify and v.owoify < now:
|
||||||
v.owoify = None
|
v.owoify = None
|
||||||
notify_if_not_bot("Your OwOify status has expired!")
|
notify_if_not_bot("Your OwOify status has expired!")
|
||||||
v.house = v.old_house
|
|
||||||
badge = v.has_badge(167)
|
badge = v.has_badge(167)
|
||||||
if v.bite and v.bite < now:
|
if v.bite and v.bite < now:
|
||||||
v.bite = None
|
v.bite = None
|
||||||
|
|
||||||
|
if v.old_house:
|
||||||
notify_if_not_bot("Your vampire status has ended!")
|
notify_if_not_bot("Your vampire status has ended!")
|
||||||
v.house = v.old_house
|
v.house = v.old_house
|
||||||
|
|
||||||
badge = v.has_badge(168)
|
badge = v.has_badge(168)
|
||||||
if badge: g.db.delete(badge)
|
if badge: g.db.delete(badge)
|
||||||
if v.earlylife and v.earlylife < now:
|
if v.earlylife and v.earlylife < now:
|
||||||
v.earlylife = None
|
v.earlylife = None
|
||||||
notify_if_not_bot("Your earlylife status has expired!")
|
notify_if_not_bot("Your earlylife status has expired!")
|
||||||
v.house = v.old_house
|
|
||||||
badge = v.has_badge(169)
|
badge = v.has_badge(169)
|
||||||
if v.marsify and v.marsify != 1 and v.marsify < now:
|
if v.marsify and v.marsify != 1 and v.marsify < now:
|
||||||
v.marsify = 0
|
v.marsify = 0
|
||||||
|
@ -86,7 +87,6 @@ def award_timers(v, bot=False):
|
||||||
if v.rainbow and v.rainbow < now:
|
if v.rainbow and v.rainbow < now:
|
||||||
v.rainbow = None
|
v.rainbow = None
|
||||||
notify_if_not_bot("Your rainbow has expired!")
|
notify_if_not_bot("Your rainbow has expired!")
|
||||||
v.house = v.old_house
|
|
||||||
badge = v.has_badge(171)
|
badge = v.has_badge(171)
|
||||||
|
|
||||||
g.db.add(v)
|
g.db.add(v)
|
||||||
|
|
|
@ -545,7 +545,7 @@ def sub_stealth(v, sub):
|
||||||
sub = g.db.query(Sub).filter_by(name=sub.strip().lower()).one_or_none()
|
sub = g.db.query(Sub).filter_by(name=sub.strip().lower()).one_or_none()
|
||||||
if not sub: abort(404)
|
if not sub: abort(404)
|
||||||
|
|
||||||
if sub.name in ('smuggies','braincels'): abort(403)
|
if sub.name == 'braincels': abort(403)
|
||||||
if not v.mods(sub.name): abort(403)
|
if not v.mods(sub.name): abort(403)
|
||||||
|
|
||||||
sub.stealth = not sub.stealth
|
sub.stealth = not sub.stealth
|
||||||
|
|
Loading…
Reference in New Issue