From 22779120b304b709a6bda46053abc312b1126f27 Mon Sep 17 00:00:00 2001 From: Honey Date: Thu, 12 Feb 2026 13:01:12 +0100 Subject: [PATCH] Angepasste namne und Nachrichten --- public/script.js | 2 +- server.js | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/public/script.js b/public/script.js index 48693cb..cc960a8 100644 --- a/public/script.js +++ b/public/script.js @@ -66,7 +66,7 @@ function setBackgroundAndImage(person, animate = true) { const file = person === "A" ? "img/a.png" : "img/b.png"; const label = person === "A" ? "Lumpia" : "Pierogi"; const bgImage = person === "A" ? "url('img/bgA.jpg')" : "url('img/bgB.jpg')"; - const nameColor = person === "A" ? "#2ecc71" : "#e74c3c"; // Grün für A, Rot für B + const nameColor = person === "A" ? "#4B0082" : "#DAA520"; // Set background immediately (smooth transition via CSS) document.body.style.backgroundImage = bgImage; diff --git a/server.js b/server.js index 75af079..bb91c11 100644 --- a/server.js +++ b/server.js @@ -107,12 +107,12 @@ async function sendDiscordEmbed(previousKey, currentKey, reason) { const fields = [ { - name: "Von", + name: "Payed", value: previous.name, inline: true }, { - name: "Zu", + name: "Nows turn", value: current.name, inline: true } @@ -127,8 +127,8 @@ async function sendDiscordEmbed(previousKey, currentKey, reason) { } const embed = { - title: "💸 Zahl-Wechsel", - description: `**${current.name}** ist jetzt dran zu zahlen`, + title: "💸 Pay-Switch", + description: `*${current.name}** turn`, color: current.color, thumbnail: { url: `${PUBLIC_BASE_URL}/img/${current.icon}` @@ -175,8 +175,8 @@ app.post("/toggle", async (req, res) => { setState(state); const logMessage = reason - ? `Zahl-Wechsel: ${CONFIG[previousKey].name} → ${CONFIG[state.current].name} (Grund: ${reason})` - : `Zahl-Wechsel: ${CONFIG[previousKey].name} → ${CONFIG[state.current].name}`; + ? `Pay-Switch: ${CONFIG[previousKey].name} → ${CONFIG[state.current].name} (Grund: ${reason})` + : `Pay-Switch: ${CONFIG[previousKey].name} → ${CONFIG[state.current].name}`; console.log(logMessage);