From 2481e7cd38f047038fa7c282d6b1e7d4303ba597 Mon Sep 17 00:00:00 2001 From: Martin Velebil Date: Tue, 27 May 2025 21:28:37 +0200 Subject: [PATCH] added aliases --- .idea/vcs.xml | 6 ++++++ app.js | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 .idea/vcs.xml diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/app.js b/app.js index 2e951ae..47a6e7a 100644 --- a/app.js +++ b/app.js @@ -1,6 +1,59 @@ import { SplidClient } from 'splid-js'; import {google} from "googleapis"; +// Emoji name mapping - add your aliases as needed +const NAME_ALIASES = { + // 🙃 aliases + 'Vrouba von Vrbicz': '🙃', + 'Vróbič': '🙃', + 'Vrba Vrbička': '🙃', + 'Jirka V.': '🙃', + + // 👨‍🏭 aliases + 'Párek z Mourkova': '👨‍🏭', + 'Marek': '👨‍🏭', + 'Mourek': '👨‍🏭', + 'Mourek (jen láhve)': '👨‍🏭', + + // 🤒 aliases + 'Kruzík Ruzický': '🤒', + 'Kruzík Ruzík': '🤒', + + // 🤑 aliases + 'Matuzalém Kremžský': '🤑', + 'Matuzalém I/II.': '🤑', + 'Matúš': '🤑', + + // 😎 aliases + 'martin': '😎', + 'Martin Brony Veleblil': '😎', + 'Veleblil Bobajz z Broníkova': '😎', + 'Bronos': '😎', + + // 🤯 aliases + 'ja': '🤯', + 'Kuba': '🤯', + 'Kuba-Buba': '🤯', + "d'Artakuba Zlominoha": '🤯', + 'Kuba Zlominoha': '🤯', + + // 😴 aliases + 'Sam': '😴', + 'Ditrpich von Šalina': '😴', + + // 🍖 aliases + 'Šunka Šunkovič Šunkovský': '🍖', + 'Šunka Pražský': '🍖', + 'Šunkovič': '🍖', + + // Default for unrecognized aliases + 'default': 'Ostatní' +}; + +function getNameFromAlias(alias) { + return NAME_ALIASES[alias.toLowerCase()] || NAME_ALIASES['default']; +} + const spreadsheetId = '1RxeQTnirJILgqXDuvI2RQt9vljn1Jz_JFCzVDRQviIg'; // Create a reusable sheets API client async function createSheetsClient() {