Aevann 2024-01-23 20:26:48 +02:00
parent a382d510be
commit 399717bd73
5 changed files with 11 additions and 10 deletions

View File

@ -82,7 +82,7 @@ function fetchEmojis() {
if (!(emojis instanceof Array ))
throw new TypeError("[EMOJI DIALOG] rDrama's server should have sent a JSON-coded Array!");
let classes = ["Marsey", "Platy", "Wolf", "Donkey Kong", "Tay", "Capy", "Carp", "Marsey Flags", "Marsey Alphabet", "Classic", "Rage", "Wojak", "Misc"]
let classes = ["Marsey", "Tay", "Platy", "Wolf", "Donkey Kong", "Capy", "Carp", "Marsey Flags", "Marsey Alphabet", "Classic", "Rage", "Wojak", "Misc"]
const bussyDOM = document.createElement("div");

View File

@ -999,7 +999,7 @@ GLOBAL2 = environ.get("GLOBAL2", "").strip()
STARS = '\n\n★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★\n\n'
EMOJI_KINDS = ("Marsey", "Platy", "Wolf", "Donkey Kong", "Tay", "Capy", "Carp", "Marsey Flags", "Marsey Alphabet", "Classic", "Rage", "Wojak", "Misc")
EMOJI_KINDS = ("Marsey", "Tay", "Platy", "Wolf", "Donkey Kong", "Capy", "Carp", "Marsey Flags", "Marsey Alphabet", "Classic", "Rage", "Wojak", "Misc")
t = datetime.datetime.now()
@ -1064,6 +1064,7 @@ CHUD_PHRASES = (
"Israeli lives matter",
"Palestinian lives matter",
"I love sucking cock",
"this post is on native land`
)
HEADERS = {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Safari/537.36"}

View File

@ -77,7 +77,7 @@ def submit_emoji(v):
if kind not in EMOJI_KINDS:
abort(400, "Invalid emoji kind!")
if kind in {"Platy", "Wolf", "Tay", "Carp", "Capy"} and not name.startswith(kind.lower()):
if kind in {"Tay", "Platy", "Wolf", "Carp", "Capy"} and not name.startswith(kind.lower()):
abort(400, 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"):

View File

@ -344,6 +344,11 @@
<td>:marseyrandom:</td>
<td>???</td>
</tr>
<tr>
<td>Random Tay Emoji</td>
<td>:tayrandom:</td>
<td>???</td>
</tr>
<tr>
<td>Random Platy Emoji</td>
<td>:platyrandom:</td>
@ -359,11 +364,6 @@
<td>:donkeykongrandom:</td>
<td>???</td>
</tr>
<tr>
<td>Random Tay Emoji</td>
<td>:tayrandom:</td>
<td>???</td>
</tr>
<tr>
<td>Random Capy Emoji</td>
<td>:capyrandom:</td>

View File

@ -23,10 +23,10 @@ fi
#clear cache for ppl who have NSFW warnings enabled
redis-cli del "${SITE}_flask_cache_emojis_False"
redis-cli del "${SITE}_flask_cache_emoji_list_Marsey_False"
redis-cli del "${SITE}_flask_cache_emoji_list_Tay_False"
redis-cli del "${SITE}_flask_cache_emoji_list_Platy_False"
redis-cli del "${SITE}_flask_cache_emoji_list_Wolf_False"
redis-cli del "${SITE}_flask_cache_emoji_list_Donkey Kong_False"
redis-cli del "${SITE}_flask_cache_emoji_list_Tay_False"
redis-cli del "${SITE}_flask_cache_emoji_list_Capy_False"
redis-cli del "${SITE}_flask_cache_emoji_list_Carp_False"
redis-cli del "${SITE}_flask_cache_emoji_list_Marsey Flags_False"
@ -39,10 +39,10 @@ redis-cli del "${SITE}_flask_cache_emoji_list_Misc_False"
#clear cache for ppl who have NSFW warnings disabled
redis-cli del "${SITE}_flask_cache_emojis_True"
redis-cli del "${SITE}_flask_cache_emoji_list_Marsey_True"
redis-cli del "${SITE}_flask_cache_emoji_list_Tay_True"
redis-cli del "${SITE}_flask_cache_emoji_list_Platy_True"
redis-cli del "${SITE}_flask_cache_emoji_list_Wolf_True"
redis-cli del "${SITE}_flask_cache_emoji_list_Donkey Kong_True"
redis-cli del "${SITE}_flask_cache_emoji_list_Tay_True"
redis-cli del "${SITE}_flask_cache_emoji_list_Capy_True"
redis-cli del "${SITE}_flask_cache_emoji_list_Carp_True"
redis-cli del "${SITE}_flask_cache_emoji_list_Marsey Flags_True"