From 91eff6c90823c6762c087a4536ae359c41b52cf7 Mon Sep 17 00:00:00 2001 From: Rodrigo Emanuel Date: Thu, 12 Jun 2025 11:47:28 -0300 Subject: [PATCH] Update app.js --- js/app.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index 607780d..e345046 100644 --- a/js/app.js +++ b/js/app.js @@ -94,6 +94,8 @@ const streamerBotClient = new StreamerbotClient({ async function addMessageToChat(userID, messageID, platform, data) { + + let userNameForThis = data.userName || data.fullUserName; if (ttsSpeakerBotChat == true) { ttsSpeakerBotSays(data.fullUserName, currentLang.ttschat, data.message); } @@ -113,7 +115,7 @@ async function addMessageToChat(userID, messageID, platform, data) { ${showBadges == true ? ''+data.badges+'' : ''} - ${data.fullUserName}: + ${userNameForThis}: ${!data.reply ? '' : data.reply} @@ -715,4 +717,4 @@ document.addEventListener("DOMContentLoaded", function () { }); } }); -}); \ No newline at end of file +});