make it possible to start the name of a marcus emoji with "marcus"

pull/168/head
Aevann 2023-07-08 02:25:07 +03:00
parent 2154684751
commit 3739e6669d
1 changed files with 4 additions and 1 deletions

View File

@ -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"')