From d9d6f803b010d142437cd402361ef3a45b03f1c3 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Thu, 19 Feb 2026 20:13:01 +0000 Subject: [PATCH] Auto commit: 2026-02-19T20:13:01.432Z --- api/chat.php | 3 +++ api/dj_actions.php | 4 ++-- index.php | 30 ++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 2 deletions(-) diff --git a/api/chat.php b/api/chat.php index 82739d3..6952640 100644 --- a/api/chat.php +++ b/api/chat.php @@ -63,6 +63,9 @@ if ($method === 'GET') { if ($msg['username'] === 'Lili Bot 🤖') { $msg['level_color'] = '#00e676'; $msg['level_emoji'] = '🤖'; + } elseif ($msg['username'] === 'Sistema') { + $msg['level_color'] = '#facc15'; + $msg['level_emoji'] = '📢'; } elseif ($isDjDay) { $msg['level_color'] = '#facc15'; $msg['level_emoji'] = '🎧'; diff --git a/api/dj_actions.php b/api/dj_actions.php index 48e4855..7bd6cd6 100644 --- a/api/dj_actions.php +++ b/api/dj_actions.php @@ -38,7 +38,7 @@ try { // Announce in chat $chatMsg = "🚨 [DJ INVITADO] **$username** ha usado su poder para SALTAR la canción actual. ⏭️"; - $stmt = $db->prepare("INSERT INTO messages (username, message, type) VALUES ('Sistema', ?, 'text')"); + $stmt = $db->prepare("INSERT INTO messages (username, message, type) VALUES ('Sistema', ?, 'dj_power')"); $stmt->execute([$chatMsg]); echo json_encode(['success' => true, 'message' => 'Acción de saltar ejecutada y anunciada']); @@ -59,7 +59,7 @@ try { if ($req) { $chatMsg = "🔥 [DJ INVITADO] **$username** ha PRIORIZADO la canción: **{$req['artist']} - {$req['song']}**. ¡Sonará muy pronto! 🎵"; - $stmt = $db->prepare("INSERT INTO messages (username, message, type) VALUES ('Sistema', ?, 'text')"); + $stmt = $db->prepare("INSERT INTO messages (username, message, type) VALUES ('Sistema', ?, 'dj_power')"); $stmt->execute([$chatMsg]); } diff --git a/index.php b/index.php index 1f5b8ad..b97ef7f 100644 --- a/index.php +++ b/index.php @@ -1702,6 +1702,12 @@ $twitter_link = "https://twitter.com/";
@@ -2302,6 +2308,7 @@ $twitter_link = "https://twitter.com/"; +