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({
try {
client = new StreamerbotClient({
host: configs.streamerBotSettings.host, host: configs.streamerBotSettings.host,
port: configs.streamerBotSettings.port, port: configs.streamerBotSettings.port,
endpoint: configs.streamerBotSettings.endpoint, endpoint: configs.streamerBotSettings.endpoint,
password: configs.streamerBotSettings.password ?? "", onConnect: onConnect,
onConnect, onDisconnect: onDisconnect,
onDisconnect, onError: onError,
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,8 +56,6 @@ function onDisconnect() {
} }
function onError(err) { function onError(err) {
console.error("Streamer.bot connection error:", err);
showConnectionError( showConnectionError(
"Connection Failed: " + (err?.message || "Unknown error"), "Connection Failed: " + (err?.message || "Unknown error"),
); );