remotes/1693045480750635534/spooky-22
Aevann1 2022-05-25 20:44:43 +02:00
parent 3706d3d22c
commit c213451722
2 changed files with 12 additions and 14 deletions

View File

@ -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).*"""
if SITE in {'rdrama.net','devrama.xyz'}:
HOLE_COST = 200000
NOTIFICATIONS_ID = 1046
AUTOJANNY_ID = 2360
SNAPPY_ID = 261
@ -173,6 +174,7 @@ if SITE in {'rdrama.net','devrama.xyz'}:
"7": "886781932430565418",
}
elif SITE == "pcmemes.net":
HOLE_COST = 10000
NOTIFICATIONS_ID = 1046
AUTOJANNY_ID = 1050
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)"
ROLES={}
elif SITE == 'cringetopia.org':
HOLE_COST = 10000
NOTIFICATIONS_ID = 1
AUTOJANNY_ID = 2
SNAPPY_ID = 3
@ -250,6 +253,7 @@ elif SITE == 'cringetopia.org':
"7": "886781932430565418",
}
else:
HOLE_COST = 10000
NOTIFICATIONS_ID = 1
AUTOJANNY_ID = 2
SNAPPY_ID = 3

View File

@ -223,14 +223,10 @@ def remove_mod(v, sub):
@app.get("/create_sub")
@is_not_permabanned
def create_sub(v):
if request.host == 'rdrama.net':
if v.admin_level < 3: abort(403)
cost = 0
else:
num = v.subs_created + 1
for a in v.alts:
num += a.subs_created
cost = num * 10000
num = v.subs_created + 1
for a in v.alts:
num += a.subs_created
cost = num * HOLE_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)
name = name.strip().lower()
if request.host == 'rdrama.net': cost = 0
else:
num = v.subs_created + 1
for a in v.alts:
num += a.subs_created
cost = num * 10000
num = v.subs_created + 1
for a in v.alts:
num += a.subs_created
cost = num * HOLE_COST
if not valid_sub_regex.fullmatch(name):
return render_template("sub/create_sub.html", v=v, cost=cost, error="Sub name not allowed."), 400