Compare commits

..

No commits in common. "2c4d65e907af658cd76b715ef8617efc25a40b12" and "a6d26f5596a5c7da50f37af1b8c1da6e26c871b5" have entirely different histories.

2 changed files with 12 additions and 21 deletions

File diff suppressed because one or more lines are too long

View file

@ -1,20 +1,13 @@
// STREAMER.BOT SETTINGS // STREAMER.BOT SETTINGS
let client; const client = new StreamerbotClient({
host: configs.streamerBotSettings.host,
try { port: configs.streamerBotSettings.port,
client = new StreamerbotClient({ endpoint: configs.streamerBotSettings.endpoint,
host: configs.streamerBotSettings.host, onConnect: onConnect,
port: configs.streamerBotSettings.port, onDisconnect: onDisconnect,
endpoint: configs.streamerBotSettings.endpoint, onError: onError,
password: configs.streamerBotSettings.password ?? "", });
onConnect,
onDisconnect,
onError,
});
} catch (err) {
onError(err);
}
client.on("General.Custom", (data) => onCustom(data)); client.on("General.Custom", (data) => onCustom(data));
if (configs.userColorSettings.autoUserColor) { if (configs.userColorSettings.autoUserColor) {
@ -63,11 +56,9 @@ function onDisconnect() {
} }
function onError(err) { function onError(err) {
console.error("Streamer.bot connection error:", err); showConnectionError(
"Connection Failed: " + (err?.message || "Unknown error"),
showConnectionError( );
"Connection Failed: " + (err?.message || "Unknown error"),
);
} }
function showConnectionError(message) { function showConnectionError(message) {