From 8ad651c753eacc69e50e866fc7f3960742c7188f Mon Sep 17 00:00:00 2001 From: kenobi Date: Mon, 26 Jun 2023 23:51:14 +0200 Subject: [PATCH] prepare unicode representation of emoji for cleaner handling as pure ASCII emoji handling in editors and browsers is iffy, as such a pure ascii code base is easier to handle (imho) --- server/constants.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/server/constants.ts b/server/constants.ts index d60b4a9..4efe5ba 100644 --- a/server/constants.ts +++ b/server/constants.ts @@ -1,3 +1,15 @@ export enum Emotes { "1️⃣", "2️⃣", "3️⃣", "4️⃣", "5️⃣", "6️⃣", "7️⃣", "8️⃣", "9️⃣", "🔟" } export const NONE_OF_THAT = "❌" +export const Emoji = { + "one": "\u0031\uFE0F\u20E3", + "two": "\u0032\uFE0F\u20E3", + "three": "\u0033\uFE0F\u20E3", + "four": "\u0034\uFE0F\u20E3", + "five": "\u0035\uFE0F\u20E3", + "six": "\u0036\uFE0F\u20E3", + "seven": "\u0037\uFE0F\u20E3", + "eight": "\u0038\uFE0F\u20E3", + "nine": "\u0039\uFE0F\u20E3", + "ten": "\uD83D\uDD1F" +}