Update app.js

This commit is contained in:
Rodrigo Emanuel
2025-06-12 11:47:28 -03:00
committed by GitHub
parent f49184cdef
commit 91eff6c908

View File

@@ -94,6 +94,8 @@ const streamerBotClient = new StreamerbotClient({
async function addMessageToChat(userID, messageID, platform, data) { async function addMessageToChat(userID, messageID, platform, data) {
let userNameForThis = data.userName || data.fullUserName;
if (ttsSpeakerBotChat == true) { ttsSpeakerBotSays(data.fullUserName, currentLang.ttschat, data.message); } if (ttsSpeakerBotChat == true) { ttsSpeakerBotSays(data.fullUserName, currentLang.ttschat, data.message); }
@@ -113,7 +115,7 @@ async function addMessageToChat(userID, messageID, platform, data) {
${showBadges == true ? '<span class="badges">'+data.badges+'</span>' : ''} ${showBadges == true ? '<span class="badges">'+data.badges+'</span>' : ''}
<span style="color: ${data.color}" class="user">${data.fullUserName}:</span> <span style="color: ${data.color}" class="user">${userNameForThis}:</span>
${!data.reply ? '' : data.reply} ${!data.reply ? '' : data.reply}
@@ -715,4 +717,4 @@ document.addEventListener("DOMContentLoaded", function () {
}); });
} }
}); });
}); });