Added "Skip Fourthwall Free Orders" setting

This commit is contained in:
nutty
2026-08-27 14:51:57 +10:00
parent 41a66d8c63
commit d44e6d31f5
6 changed files with 42 additions and 0 deletions
+5
View File
@@ -112,6 +112,7 @@ const showTipeeeStreamDonations = GetBooleanParam("showTipeeeStreamDonations", f
const tipeeestreamDonationAction = urlParams.get("tipeeestreamDonationAction") || "";
const showFourthwallAlerts = GetBooleanParam("showFourthwallAlerts", false);
const fourthwallAlertAction = urlParams.get("fourthwallAlertAction") || "";
const skipFourthwallFreeOrders = GetBooleanParam("skipFourthwallFreeOrders", true);
////////////////////
// HIDDEN OPTIONS //
@@ -1124,6 +1125,10 @@ function FourthwallOrderPlaced(data) {
const message = DecodeHTMLString(data.statmessageus);
const itemImageUrl = data.variants[0].image;
// Skip free orders if the user has chosen to do so
if (skipFourthwallFreeOrders && orderTotal == 0)
return;
// If there user did not provide a username, just say "Someone"
if (user == undefined)
user = "Someone";
@@ -628,6 +628,15 @@
"showIf": "showFourthwallAlerts",
"group": "Which donation alerts do you want to see?"
},
{
"id": "skipFourthwallFreeOrders",
"label": "Skip Free Orders",
"description": "If enabled, free orders from Fourthwall will be skipped.",
"type": "checkbox",
"defaultValue": true,
"showIf": "showFourthwallAlerts",
"group": "Which donation alerts do you want to see?"
},
{
"id": "address",
"label": "IP Address",