Changed the way Kick is connected

This commit is contained in:
nutty
2026-03-26 04:56:40 +11:00
parent 3613f1fa7f
commit b7b414f6ea
3 changed files with 3 additions and 9 deletions
+1 -3
View File
@@ -125,6 +125,7 @@ const client = new StreamerbotClient({
console.log(`Streamer.bot successfully connected to ${sbServerAddress}:${sbServerPort}`) console.log(`Streamer.bot successfully connected to ${sbServerAddress}:${sbServerPort}`)
console.debug(data); console.debug(data);
SetConnectionStatus(true); SetConnectionStatus(true);
KickConnect();
}, },
onDisconnect: () => { onDisconnect: () => {
@@ -433,9 +434,6 @@ async function KickConnect() {
} }
} }
// Try connect when window is loaded
window.addEventListener('load', KickConnect);
////////////////////// //////////////////////
// TIKFINITY CLIENT // // TIKFINITY CLIENT //
+1 -3
View File
@@ -145,6 +145,7 @@ const client = new StreamerbotClient({
console.log(`Streamer.bot successfully connected to ${sbServerAddress}:${sbServerPort}`) console.log(`Streamer.bot successfully connected to ${sbServerAddress}:${sbServerPort}`)
console.debug(data); console.debug(data);
SetConnectionStatus(true); SetConnectionStatus(true);
KickConnect();
}, },
onDisconnect: () => { onDisconnect: () => {
@@ -473,9 +474,6 @@ async function KickConnect() {
} }
} }
// Try connect when window is loaded
window.addEventListener('load', KickConnect);
////////////////////// //////////////////////
+1 -3
View File
@@ -172,6 +172,7 @@ const client = new StreamerbotClient({
console.log(`Streamer.bot successfully connected to ${sbServerAddress}:${sbServerPort}`) console.log(`Streamer.bot successfully connected to ${sbServerAddress}:${sbServerPort}`)
console.debug(data); console.debug(data);
SetConnectionStatus(true); SetConnectionStatus(true);
KickConnect();
}, },
onDisconnect: () => { onDisconnect: () => {
@@ -405,9 +406,6 @@ async function KickConnect() {
} }
} }
// Try connect when window is loaded
window.addEventListener('load', KickConnect);
////////////////////// //////////////////////