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 +});