forked from rDrama/rDrama
fdsfdsxc
parent
3706d3d22c
commit
c213451722
|
@ -129,6 +129,7 @@ AGENDAPOSTER_PHRASE = 'trans lives matter'
|
||||||
AGENDAPOSTER_MSG = """Hi @{username},\n\nYour {type} has been automatically removed because you forgot to include `{AGENDAPOSTER_PHRASE}`.\n\nDon't worry, we're here to help! We won't let you post or comment anything that doesn't express your love and acceptance towards the trans community. Feel free to resubmit your {type} with `{AGENDAPOSTER_PHRASE}` included. \n\n*This is an automated message; if you need help, you can message us [here](/contact).*"""
|
AGENDAPOSTER_MSG = """Hi @{username},\n\nYour {type} has been automatically removed because you forgot to include `{AGENDAPOSTER_PHRASE}`.\n\nDon't worry, we're here to help! We won't let you post or comment anything that doesn't express your love and acceptance towards the trans community. Feel free to resubmit your {type} with `{AGENDAPOSTER_PHRASE}` included. \n\n*This is an automated message; if you need help, you can message us [here](/contact).*"""
|
||||||
|
|
||||||
if SITE in {'rdrama.net','devrama.xyz'}:
|
if SITE in {'rdrama.net','devrama.xyz'}:
|
||||||
|
HOLE_COST = 200000
|
||||||
NOTIFICATIONS_ID = 1046
|
NOTIFICATIONS_ID = 1046
|
||||||
AUTOJANNY_ID = 2360
|
AUTOJANNY_ID = 2360
|
||||||
SNAPPY_ID = 261
|
SNAPPY_ID = 261
|
||||||
|
@ -173,6 +174,7 @@ if SITE in {'rdrama.net','devrama.xyz'}:
|
||||||
"7": "886781932430565418",
|
"7": "886781932430565418",
|
||||||
}
|
}
|
||||||
elif SITE == "pcmemes.net":
|
elif SITE == "pcmemes.net":
|
||||||
|
HOLE_COST = 10000
|
||||||
NOTIFICATIONS_ID = 1046
|
NOTIFICATIONS_ID = 1046
|
||||||
AUTOJANNY_ID = 1050
|
AUTOJANNY_ID = 1050
|
||||||
SNAPPY_ID = 261
|
SNAPPY_ID = 261
|
||||||
|
@ -206,6 +208,7 @@ elif SITE == "pcmemes.net":
|
||||||
WELCOME_MSG = "Welcome to pcmemes.net! Don't forget to turn off the slur filter [here](/settings/content#slurreplacer)"
|
WELCOME_MSG = "Welcome to pcmemes.net! Don't forget to turn off the slur filter [here](/settings/content#slurreplacer)"
|
||||||
ROLES={}
|
ROLES={}
|
||||||
elif SITE == 'cringetopia.org':
|
elif SITE == 'cringetopia.org':
|
||||||
|
HOLE_COST = 10000
|
||||||
NOTIFICATIONS_ID = 1
|
NOTIFICATIONS_ID = 1
|
||||||
AUTOJANNY_ID = 2
|
AUTOJANNY_ID = 2
|
||||||
SNAPPY_ID = 3
|
SNAPPY_ID = 3
|
||||||
|
@ -250,6 +253,7 @@ elif SITE == 'cringetopia.org':
|
||||||
"7": "886781932430565418",
|
"7": "886781932430565418",
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
|
HOLE_COST = 10000
|
||||||
NOTIFICATIONS_ID = 1
|
NOTIFICATIONS_ID = 1
|
||||||
AUTOJANNY_ID = 2
|
AUTOJANNY_ID = 2
|
||||||
SNAPPY_ID = 3
|
SNAPPY_ID = 3
|
||||||
|
|
|
@ -223,14 +223,10 @@ def remove_mod(v, sub):
|
||||||
@app.get("/create_sub")
|
@app.get("/create_sub")
|
||||||
@is_not_permabanned
|
@is_not_permabanned
|
||||||
def create_sub(v):
|
def create_sub(v):
|
||||||
if request.host == 'rdrama.net':
|
num = v.subs_created + 1
|
||||||
if v.admin_level < 3: abort(403)
|
for a in v.alts:
|
||||||
cost = 0
|
num += a.subs_created
|
||||||
else:
|
cost = num * HOLE_COST
|
||||||
num = v.subs_created + 1
|
|
||||||
for a in v.alts:
|
|
||||||
num += a.subs_created
|
|
||||||
cost = num * 10000
|
|
||||||
|
|
||||||
return render_template("sub/create_sub.html", v=v, cost=cost)
|
return render_template("sub/create_sub.html", v=v, cost=cost)
|
||||||
|
|
||||||
|
@ -244,12 +240,10 @@ def create_sub2(v):
|
||||||
if not name: abort(400)
|
if not name: abort(400)
|
||||||
name = name.strip().lower()
|
name = name.strip().lower()
|
||||||
|
|
||||||
if request.host == 'rdrama.net': cost = 0
|
num = v.subs_created + 1
|
||||||
else:
|
for a in v.alts:
|
||||||
num = v.subs_created + 1
|
num += a.subs_created
|
||||||
for a in v.alts:
|
cost = num * HOLE_COST
|
||||||
num += a.subs_created
|
|
||||||
cost = num * 10000
|
|
||||||
|
|
||||||
if not valid_sub_regex.fullmatch(name):
|
if not valid_sub_regex.fullmatch(name):
|
||||||
return render_template("sub/create_sub.html", v=v, cost=cost, error="Sub name not allowed."), 400
|
return render_template("sub/create_sub.html", v=v, cost=cost, error="Sub name not allowed."), 400
|
||||||
|
|
Loading…
Reference in New Issue