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