Removed unnecessary "Enabled Kick Support" toggle

This commit is contained in:
nuttylmao
2025-07-24 08:44:37 +10:00
parent de9edc37d0
commit 7590507d67
6 changed files with 3 additions and 44 deletions
+1 -2
View File
@@ -51,7 +51,6 @@ const showTwitchChannelPointRedemptions = GetBooleanParam("showTwitchChannelPoin
const showTwitchRaids = GetBooleanParam("showTwitchRaids", true); const showTwitchRaids = GetBooleanParam("showTwitchRaids", true);
const showTwitchSharedChat = GetBooleanParam("showTwitchSharedChat", true); const showTwitchSharedChat = GetBooleanParam("showTwitchSharedChat", true);
const enableKickSupport = GetBooleanParam("enableKickSupport", false);
const kickUsername = urlParams.get("kickUsername") || ""; const kickUsername = urlParams.get("kickUsername") || "";
const showKickMessages = GetBooleanParam("showKickMessages", true); const showKickMessages = GetBooleanParam("showKickMessages", true);
// const showKickFollows = GetBooleanParam("showKickFollows", false); // const showKickFollows = GetBooleanParam("showKickFollows", false);
@@ -288,7 +287,7 @@ client.on('Fourthwall.GiftDrawEnded', (response) => {
// Connect and handle Pusher WebSocket // Connect and handle Pusher WebSocket
async function KickConnect() { async function KickConnect() {
if (!enableKickSupport) if (!kickUsername)
return; return;
// Channel to subscribe to (you'll need the correct channel name here) // Channel to subscribe to (you'll need the correct channel name here)
-13
View File
@@ -207,21 +207,12 @@
"defaultValue": true, "defaultValue": true,
"group": "Which YouTube messages do you want to see?" "group": "Which YouTube messages do you want to see?"
}, },
{
"id": "enableKickSupport",
"label": "Enable Kick Support",
"description": "",
"type": "checkbox",
"defaultValue": false,
"group": "Which Kick messages do you want to see?"
},
{ {
"id": "kickUsername", "id": "kickUsername",
"label": "Kick Username", "label": "Kick Username",
"description": "", "description": "",
"type": "text", "type": "text",
"defaultValue": "", "defaultValue": "",
"showIf": "enableKickSupport",
"group": "Which Kick messages do you want to see?" "group": "Which Kick messages do you want to see?"
}, },
{ {
@@ -230,7 +221,6 @@
"description": "", "description": "",
"type": "checkbox", "type": "checkbox",
"defaultValue": true, "defaultValue": true,
"showIf": "enableKickSupport",
"group": "Which Kick messages do you want to see?" "group": "Which Kick messages do you want to see?"
}, },
{ {
@@ -239,7 +229,6 @@
"description": "", "description": "",
"type": "checkbox", "type": "checkbox",
"defaultValue": true, "defaultValue": true,
"showIf": "enableKickSupport",
"group": "Which Kick messages do you want to see?" "group": "Which Kick messages do you want to see?"
}, },
{ {
@@ -248,7 +237,6 @@
"description": "", "description": "",
"type": "checkbox", "type": "checkbox",
"defaultValue": true, "defaultValue": true,
"showIf": "enableKickSupport",
"group": "Which Kick messages do you want to see?" "group": "Which Kick messages do you want to see?"
}, },
{ {
@@ -257,7 +245,6 @@
"description": "", "description": "",
"type": "checkbox", "type": "checkbox",
"defaultValue": true, "defaultValue": true,
"showIf": "enableKickSupport",
"group": "Which Kick messages do you want to see?" "group": "Which Kick messages do you want to see?"
}, },
{ {
+1 -2
View File
@@ -55,7 +55,6 @@ const showTwitchChannelPointRedemptions = GetBooleanParam("showTwitchChannelPoin
const showTwitchRaids = GetBooleanParam("showTwitchRaids", true); const showTwitchRaids = GetBooleanParam("showTwitchRaids", true);
const showTwitchSharedChat = GetIntParam("showTwitchSharedChat", 2); const showTwitchSharedChat = GetIntParam("showTwitchSharedChat", 2);
const enableKickSupport = GetBooleanParam("enableKickSupport", false);
const kickUsername = urlParams.get("kickUsername") || ""; const kickUsername = urlParams.get("kickUsername") || "";
const showKickMessages = GetBooleanParam("showKickMessages", true); const showKickMessages = GetBooleanParam("showKickMessages", true);
// const showKickFollows = GetBooleanParam("showKickFollows", false); // const showKickFollows = GetBooleanParam("showKickFollows", false);
@@ -311,7 +310,7 @@ client.on('Fourthwall.GiftDrawEnded', (response) => {
// Connect and handle Pusher WebSocket // Connect and handle Pusher WebSocket
async function KickConnect() { async function KickConnect() {
if (!enableKickSupport) if (!kickUsername)
return; return;
// Channel to subscribe to (you'll need the correct channel name here) // Channel to subscribe to (you'll need the correct channel name here)
-13
View File
@@ -336,21 +336,12 @@
"defaultValue": true, "defaultValue": true,
"group": "Which YouTube messages do you want to see?" "group": "Which YouTube messages do you want to see?"
}, },
{
"id": "enableKickSupport",
"label": "Enable Kick Support",
"description": "",
"type": "checkbox",
"defaultValue": false,
"group": "Which Kick messages do you want to see?"
},
{ {
"id": "kickUsername", "id": "kickUsername",
"label": "Kick Username", "label": "Kick Username",
"description": "", "description": "",
"type": "text", "type": "text",
"defaultValue": "", "defaultValue": "",
"showIf": "enableKickSupport",
"group": "Which Kick messages do you want to see?" "group": "Which Kick messages do you want to see?"
}, },
{ {
@@ -359,7 +350,6 @@
"description": "", "description": "",
"type": "checkbox", "type": "checkbox",
"defaultValue": true, "defaultValue": true,
"showIf": "enableKickSupport",
"group": "Which Kick messages do you want to see?" "group": "Which Kick messages do you want to see?"
}, },
{ {
@@ -368,7 +358,6 @@
"description": "", "description": "",
"type": "checkbox", "type": "checkbox",
"defaultValue": true, "defaultValue": true,
"showIf": "enableKickSupport",
"group": "Which Kick messages do you want to see?" "group": "Which Kick messages do you want to see?"
}, },
{ {
@@ -377,7 +366,6 @@
"description": "", "description": "",
"type": "checkbox", "type": "checkbox",
"defaultValue": true, "defaultValue": true,
"showIf": "enableKickSupport",
"group": "Which Kick messages do you want to see?" "group": "Which Kick messages do you want to see?"
}, },
{ {
@@ -386,7 +374,6 @@
"description": "", "description": "",
"type": "checkbox", "type": "checkbox",
"defaultValue": true, "defaultValue": true,
"showIf": "enableKickSupport",
"group": "Which Kick messages do you want to see?" "group": "Which Kick messages do you want to see?"
}, },
{ {
+1 -2
View File
@@ -70,7 +70,6 @@ const showTwitchRaids = GetBooleanParam("showTwitchRaids", true);
const twitchRaidAction = urlParams.get("twitchRaidAction") || ""; const twitchRaidAction = urlParams.get("twitchRaidAction") || "";
// Which Kick alerts do you want to see? // Which Kick alerts do you want to see?
const enableKickSupport = GetBooleanParam("enableKickSupport", false);
const kickUsername = urlParams.get("kickUsername") || ""; const kickUsername = urlParams.get("kickUsername") || "";
const showKickSubs = GetBooleanParam("showKickSubs", true); const showKickSubs = GetBooleanParam("showKickSubs", true);
const kickSubAction = urlParams.get("kickSubAction") || ""; const kickSubAction = urlParams.get("kickSubAction") || "";
@@ -309,7 +308,7 @@ client.on('Fourthwall.GiftDrawEnded', (response) => {
// Connect and handle Pusher WebSocket // Connect and handle Pusher WebSocket
async function KickConnect() { async function KickConnect() {
if (!enableKickSupport) if (!kickUsername)
return; return;
// Channel to subscribe to (you'll need the correct channel name here) // Channel to subscribe to (you'll need the correct channel name here)
-12
View File
@@ -363,21 +363,12 @@
"showIf": "showYouTubeMemberships", "showIf": "showYouTubeMemberships",
"group": "Which YouTube alerts do you want to see?" "group": "Which YouTube alerts do you want to see?"
}, },
{
"id": "enableKickSupport",
"label": "Enable Kick Support",
"description": "",
"type": "checkbox",
"defaultValue": false,
"group": "Which Kick alerts do you want to see?"
},
{ {
"id": "kickUsername", "id": "kickUsername",
"label": "Kick Username", "label": "Kick Username",
"description": "", "description": "",
"type": "text", "type": "text",
"defaultValue": "", "defaultValue": "",
"showIf": "enableKickSupport",
"group": "Which Kick alerts do you want to see?" "group": "Which Kick alerts do you want to see?"
}, },
{ {
@@ -386,7 +377,6 @@
"description": "", "description": "",
"type": "checkbox", "type": "checkbox",
"defaultValue": true, "defaultValue": true,
"showIf": "enableKickSupport",
"group": "Which Kick alerts do you want to see?" "group": "Which Kick alerts do you want to see?"
}, },
{ {
@@ -404,7 +394,6 @@
"description": "", "description": "",
"type": "checkbox", "type": "checkbox",
"defaultValue": true, "defaultValue": true,
"showIf": "enableKickSupport",
"group": "Which Kick alerts do you want to see?" "group": "Which Kick alerts do you want to see?"
}, },
{ {
@@ -422,7 +411,6 @@
"description": "", "description": "",
"type": "checkbox", "type": "checkbox",
"defaultValue": true, "defaultValue": true,
"showIf": "enableKickSupport",
"group": "Which Kick alerts do you want to see?" "group": "Which Kick alerts do you want to see?"
}, },
{ {