Update app.js

This commit is contained in:
Rodrigo Emanuel
2025-04-24 13:01:45 -03:00
committed by GitHub
parent 33f6241a63
commit e8e09b2196

View File

@@ -52,12 +52,18 @@ const streamerBotClient = new StreamerbotClient({
title: currentLang.streamerbotconnected, title: currentLang.streamerbotconnected,
text: `` text: ``
}); });
if (eventsMockup == true) { stopMockupSystem(); } if (eventsMockup == true) {
chatContainer.innerHTML = '';
stopMockupSystem();
}
}, },
onDisconnect: () => { onDisconnect: () => {
console.error(currentLang.streamerbotdisconnected); console.error(currentLang.streamerbotdisconnected);
streamerBotConnected = false; streamerBotConnected = false;
if (eventsMockup == true) { startMockupSystem(); } if (eventsMockup == true) {
startMockupSystem();
chatContainer.innerHTML = '';
}
} }
}); });
@@ -296,4 +302,4 @@ const notifySuccess = (success) => {
function escapeRegex(string) { function escapeRegex(string) {
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
} }