mirror of
https://github.com/nuttylmao/nutty.gg.git
synced 2026-09-18 19:50:58 -04:00
Added "Skip Fourthwall Free Orders" setting
This commit is contained in:
@@ -75,6 +75,7 @@ const showPatreonMemberships = GetBooleanParam("showPatreonMemberships", true);
|
||||
const showKofiDonations = GetBooleanParam("showKofiDonations", true);
|
||||
const showTipeeeStreamDonations = GetBooleanParam("showTipeeeStreamDonations", true);
|
||||
const showFourthwallAlerts = GetBooleanParam("showFourthwallAlerts", true);
|
||||
const skipFourthwallFreeOrders = GetBooleanParam("skipFourthwallFreeOrders", true);
|
||||
|
||||
const furryMode = GetBooleanParam("furryMode", false);
|
||||
|
||||
@@ -1198,6 +1199,10 @@ function FourthwallOrderPlaced(data) {
|
||||
const item = data.variants[0].name;
|
||||
const itemsOrdered = data.variants.length;
|
||||
|
||||
// Skip free orders if the user has chosen to do so
|
||||
if (skipFourthwallFreeOrders && orderTotal == 0)
|
||||
return;
|
||||
|
||||
let message = "";
|
||||
|
||||
// If there user did not provide a username, just say "Someone"
|
||||
|
||||
Reference in New Issue
Block a user