From 3739e6669d76d002d61681bb718499d7995b1053 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 8 Jul 2023 02:25:07 +0300 Subject: [PATCH] make it possible to start the name of a marcus emoji with "marcus" --- files/routes/asset_submissions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files/routes/asset_submissions.py b/files/routes/asset_submissions.py index 148306d51..c53533bf5 100644 --- a/files/routes/asset_submissions.py +++ b/files/routes/asset_submissions.py @@ -62,9 +62,12 @@ def submit_emoji(v:User): if kind not in EMOJI_KINDS: return error("Invalid emoji kind!") - if kind in {"Marsey", "Platy", "Wolf", "Tay", "Carp", "Capy"} and not name.startswith(kind.lower()): + if kind in {"Platy", "Wolf", "Tay", "Carp", "Capy"} and not name.startswith(kind.lower()): return error(f'The name of this emoji should start with the word "{kind.lower()}"') + if kind == "Marsey" and not name.startswith("marsey") and not name.startswith("marcus"): + return error('The name of this emoji should start with the word "Marsey" or "Marcus"') + if kind == "Marsey Flags" and not name.startswith("marseyflag"): return error('The name of this emoji should start with the word "marseyflag"')