First release ready (sans minor cleanup)

This commit is contained in:
nuttylmao
2025-04-19 05:51:53 +10:00
parent 950d76bd10
commit 076ade1f54
5 changed files with 243 additions and 268 deletions
+2 -2
View File
@@ -211,9 +211,9 @@ document.addEventListener('DOMContentLoaded', () => {
function UpdateSettingItemVisibility() {
data.settings.forEach(setting => {
if (setting.hideIf)
if (setting.showIf)
{
if (!document.getElementById(setting.hideIf).checked)
if (!document.getElementById(setting.showIf).checked)
document.getElementById(`item-${setting.id}`).style.display = 'none'
else
document.getElementById(`item-${setting.id}`).style.display = 'flex'
+7 -3
View File
@@ -511,9 +511,13 @@ async function TwitchGiftBomb(data) {
if (!showTwitchSubs)
return;
const username = data.displayName;
const gifts = data.gifts;
const subTier = data.subTier;
//// The below is incorrect (Streamer.bot documentation is wrong)
// const username = data.displayName;
// const gifts = data.gifts;
// const subTier = data.subTier;
const username = data.user.name;
const gifts = data.recipients.length;
const subTier = data.sub_tier.charAt(0);
let message = `🎁 ${username} gifted ${gifts} Tier ${subTier} subs!`;
+201 -236
View File
@@ -19,7 +19,6 @@ const descriptionLabel = document.getElementById('description');
const attributeLabel = document.getElementById('attribute');
const theContentThatShowsFirstInsteadOfSecond = document.getElementById('theContentThatShowsFirstInsteadOfSecond');
const theContentThatShowsLastInsteadOfFirst = document.getElementById('theContentThatShowsLastInsteadOfFirst');
const messageLabel = document.getElementById('message');
let widgetLocked = false; // Needed to lock animation from overlapping
@@ -29,58 +28,13 @@ let alertQueue = [];
// OPTIONS //
/////////////
// const showPlatform = GetBooleanParam("showPlatform", true);
// const showAvatar = GetBooleanParam("showAvatar", true);
// const showTimestamps = GetBooleanParam("showTimestamps", true);
// const showBadges = GetBooleanParam("showBadges", true);
// const showPronouns = GetBooleanParam("showPronouns", true);
// const showUsername = GetBooleanParam("showUsername", true);
// const showMessage = GetBooleanParam("showMessage", true);
// const font = urlParams.get("font") || "";
// const fontSize = urlParams.get("fontSize") || "30";
// const lineSpacing = urlParams.get("lineSpacing") || "1.7";
// const background = urlParams.get("background") || "#000000";
// const opacity = urlParams.get("opacity") || "0.85";
// const hideAfter = GetIntParam("hideAfter", 0);
// const excludeCommands = GetBooleanParam("excludeCommands", true);
// const ignoreChatters = urlParams.get("ignoreChatters") || "";
// const scrollDirection = GetIntParam("scrollDirection", 1);
// const inlineChat = GetBooleanParam("inlineChat", false);
// const imageEmbedPermissionLevel = GetIntParam("imageEmbedPermissionLevel", 20);
// const showTwitchMessages = GetBooleanParam("showTwitchMessages", true);
// const showTwitchAnnouncements = GetBooleanParam("showTwitchAnnouncements", true);
// const showTwitchSubs = GetBooleanParam("showTwitchSubs", true);
// const showTwitchChannelPointRedemptions = GetBooleanParam("showTwitchChannelPointRedemptions", true);
// const showTwitchRaids = GetBooleanParam("showTwitchRaids", true);
// const showTwitchSharedChat = GetIntParam("showTwitchSharedChat", 2);
// const twitchFollowTrigger = urlParams.get("twitchFollowTrigger") || "";
// const showYouTubeMessages = GetBooleanParam("showYouTubeMessages", true);
// const showYouTubeSuperChats = GetBooleanParam("showYouTubeSuperChats", true);
// const showYouTubeSuperStickers = GetBooleanParam("showYouTubeSuperStickers", true);
// const showYouTubeMemberships = GetBooleanParam("showYouTubeMemberships", true);
// const showStreamlabsDonations = GetBooleanParam("showStreamlabsDonations", true)
// const showStreamElementsTips = GetBooleanParam("showStreamElementsTips", true);
// const showPatreonMemberships = GetBooleanParam("showPatreonMemberships", true);
// const showKofiDonations = GetBooleanParam("showKofiDonations", true);
// const showTipeeeStreamDonations = GetBooleanParam("showTipeeeStreamDonations", true);
// const showFourthwallAlerts = GetBooleanParam("showFourthwallAlerts", true);
// const animationSpeed = GetIntParam("animationSpeed", 8000);
// const furryMode = GetBooleanParam("furryMode", false);
// Appearance
const showAvatar = GetBooleanParam("showAvatar", true);
const font = urlParams.get("font") || "";
const fontSize = GetIntParam("fontSize", 30);
const useCustomBackground = GetBooleanParam("useCustomBackground", true);
const background = urlParams.get("background") || "";
const opacity = GetIntParam("opacity", 0.85);
const background = urlParams.get("background") || "#000000";
const opacity = urlParams.get("opacity") || "0.85";
// General
const hideAfter = GetIntParam("hideAfter", 8);
@@ -133,6 +87,18 @@ if (!showAvatar) {
document.body.style.fontFamily = font;
document.body.style.fontSize = `${fontSize}px`;
// Set custom background
if (useCustomBackground) {
const opacity255 = Math.round(parseFloat(opacity) * 255);
let hexOpacity = opacity255.toString(16);
if (hexOpacity.length < 2) {
hexOpacity = "0" + hexOpacity;
}
//document.body.style.background = `${background}${hexOpacity}`;
console.log(`${background}${hexOpacity}`);
document.documentElement.style.setProperty('--custom-background', `${background}${hexOpacity}`);
}
// // Set line spacing
// document.documentElement.style.setProperty('--line-spacing', `${lineSpacing}em`);
@@ -184,6 +150,11 @@ const client = new StreamerbotClient({
}
});
client.on('Twitch.Follow', (response) => {
console.debug(response.data);
TwitchFollow(response.data);
})
client.on('Twitch.Cheer', (response) => {
console.debug(response.data);
TwitchCheer(response.data);
@@ -204,6 +175,11 @@ client.on('Twitch.GiftSub', (response) => {
TwitchGiftSub(response.data);
})
client.on('Twitch.GiftBomb', (response) => {
console.debug(response.data);
TwitchGiftBomb(response.data);
})
client.on('Twitch.RewardRedemption', (response) => {
console.debug(response.data);
TwitchRewardRedemption(response.data);
@@ -310,6 +286,29 @@ client.on('Fourthwall.GiftDrawEnded', (response) => {
// MULTICHAT OVERLAY //
///////////////////////
async function TwitchFollow(data) {
if (!showTwitchFollows)
return;
// Set the text
const username = data.user_name;
// Render avatars
const avatarURL = await GetAvatar(username);
UpdateAlertBox(
'twitch',
avatarURL,
`${username}`,
`followed`,
``,
username,
``,
twitchFollowAction,
data
);
}
async function TwitchCheer(data) {
if (!showTwitchCheers)
return;
@@ -385,7 +384,9 @@ async function TwitchSub(data) {
`subscribed with Tier ${subTier.charAt(0)}`,
'',
username,
''
'',
twitchSubAction,
data
);
else
UpdateAlertBox(
@@ -395,7 +396,9 @@ async function TwitchSub(data) {
`used their Prime Sub`,
'',
username,
''
'',
twitchSubAction,
data
);
}
@@ -421,7 +424,9 @@ async function TwitchResub(data) {
`resubscribed with Tier ${subTier.charAt(0)}`,
`${cumulativeMonths} months`,
username,
message
message,
twitchSubAction,
data
);
else
UpdateAlertBox(
@@ -431,7 +436,9 @@ async function TwitchResub(data) {
`used their Prime Sub`,
`${cumulativeMonths} months`,
username,
message
message,
twitchSubAction,
data
);
}
@@ -444,6 +451,11 @@ async function TwitchGiftSub(data) {
const subTier = data.subTier;
const recipient = data.recipient.name;
const cumlativeTotal = data.cumlativeTotal;
const fromCommunitySubGift = data.fromCommunitySubGift;
// Don't post alerts for gift bombs
if (fromCommunitySubGift)
return;
// Render avatars
const avatarURL = await GetAvatar(username);
@@ -459,7 +471,44 @@ async function TwitchGiftSub(data) {
`gifted a Tier ${subTier.charAt(0)} subscription`,
`to ${recipient}`,
username,
messageText
messageText,
twitchSubAction,
data
);
}
async function TwitchGiftBomb(data) {
if (!showTwitchSubs)
return;
//// The below is incorrect (Streamer.bot documentation is wrong)
// const username = data.displayName;
// const gifts = data.gifts;
// const totalGifts = data.totalGifts;
// const subTier = data.subTier;
const username = data.user.name;
const login = data.user.login;
const gifts = data.recipients.length;
const totalGifts = data.cumulative_total;
const subTier = data.sub_tier.charAt(0);
// Render avatars
const avatarURL = await GetAvatar(login);
let message = ``;
if (totalGifts > 0)
message = `They've gifted ${totalGifts} subs in total!`;
UpdateAlertBox(
'twitch',
avatarURL,
`${username}`,
`gifted ${gifts} Tier ${subTier} subs!`,
``,
username,
message,
twitchSubAction,
data
);
}
@@ -483,7 +532,9 @@ async function TwitchRewardRedemption(data) {
`${rewardName} ${channelPointIcon} ${cost}`,
'',
username,
userInput
userInput,
twitchChannelPointRedemptionAction,
data
);
}
@@ -525,7 +576,9 @@ function YouTubeSuperChat(data) {
`sent a Super Chat (${data.amount})`,
'',
data.user.name,
data.message
data.message,
youtubeSuperChatAction,
data
);
}
@@ -543,7 +596,9 @@ function YouTubeSuperSticker(data) {
`sent a Super Sticker (${data.amount})`,
'',
data.user.name,
''
'',
youtubeSuperStickerAction,
data
);
}
@@ -561,7 +616,9 @@ function YouTubeNewSponsor(data) {
`Welcome ${data.user.name}!`,
'',
data.user.name,
''
'',
youtubeMembershipAction,
data
);
}
@@ -579,7 +636,9 @@ function YouTubeGiftMembershipReceived(data) {
`gifted a membership`,
`to ${data.user.name} (${data.tier})!`,
data.gifter.name,
''
'',
youtubeMembershipAction,
data
);
}
@@ -600,7 +659,9 @@ async function StreamlabsDonation(data) {
`donated ${currency}${formattedAmount}`,
``,
donater,
message
message,
streamlabsDonationAction,
data
);
}
@@ -621,7 +682,9 @@ async function StreamElementsTip(data) {
`donated ${currency}${formattedAmount}`,
``,
donater,
message
message,
streamelementsTipAction,
data
);
}
@@ -643,7 +706,9 @@ function PatreonPledgeCreated(data) {
`joined Patreon ($${amount})`,
``,
user,
``
``,
patreonMembershipActions,
data
);
}
@@ -668,7 +733,9 @@ function KofiDonation(data) {
`donated $${amount}`,
``,
user,
message
message,
kofiDonationAction,
data
);
else
UpdateAlertBox(
@@ -677,7 +744,9 @@ function KofiDonation(data) {
`donated ${currency} ${amount}`,
``,
user,
message
message,
kofiDonationAction,
data
);
}
@@ -702,7 +771,9 @@ function KofiSubscription(data) {
`subscribed ($${amount})`,
``,
user,
message
message,
kofiDonationAction,
data
);
else
UpdateAlertBox(
@@ -711,7 +782,9 @@ function KofiSubscription(data) {
`subscribed (${currency} ${amount})`,
``,
user,
message
message,
kofiDonationAction,
data
);
}
@@ -734,7 +807,9 @@ function KofiResubscription(data) {
`subscribed (${tier})`,
``,
user,
message
message,
kofiDonationAction,
data
);
}
@@ -767,7 +842,9 @@ function KofiShopOrder(data) {
`ordered ${itemTotal} item(s) on Ko-fi `,
`${formattedAmount}`,
user,
message
message,
kofiDonationAction,
data
);
}
@@ -792,7 +869,9 @@ function TipeeeStreamDonation(data) {
`donated $${amount}`,
``,
user,
message
message,
tipeeestreamDonationAction,
data
);
else
UpdateAlertBox(
@@ -802,7 +881,9 @@ function TipeeeStreamDonation(data) {
`donated ${currency} ${amount}`,
``,
user,
message
message,
tipeeestreamDonationAction,
data
);
}
@@ -844,7 +925,9 @@ function FourthwallOrderPlaced(data) {
`ordered ${item}`,
attributeText,
user,
message
message,
fourthwallAlertAction,
data
);
}
@@ -873,7 +956,9 @@ function FourthwallDonation(data) {
`donated ${formattedAmount}`,
'',
user,
message
message,
fourthwallAlertAction,
data
);
}
@@ -901,7 +986,9 @@ function FourthwallSubscriptionPurchased(data) {
`subscribed ${formattedAmount}`,
'',
user,
''
'',
fourthwallAlertAction,
data
);
}
@@ -942,7 +1029,9 @@ function FourthwallGiftPurchase(data) {
`gifted ${contents}`,
attributesText,
user,
message
message,
fourthwallAlertAction,
data
);
}
@@ -961,7 +1050,9 @@ function FourthwallGiftDrawStarted(data) {
`Type !join in the next ${durationSeconds} seconds for your chance to win!`,
'',
'',
''
'',
fourthwallAlertAction,
data
);
}
@@ -980,7 +1071,9 @@ function FourthwallGiftDrawEnded(data) {
`Congratulations ${GetWinnersList(data.gifts)}!`,
'',
'',
''
'',
fourthwallAlertAction,
data
);
}
@@ -1028,19 +1121,6 @@ function GetIntParam(paramName, defaultValue) {
return intValue;
}
// function GetCurrentTimeFormatted() {
// const now = new Date();
// let hours = now.getHours();
// const minutes = String(now.getMinutes()).padStart(2, '0');
// const ampm = hours >= 12 ? 'PM' : 'AM';
// hours = hours % 12;
// hours = hours ? hours : 12; // the hour '0' should be '12'
// const formattedTime = `${hours}:${minutes} ${ampm}`;
// return formattedTime;
// }
async function GetAvatar(username) {
if (avatarMap.has(username)) {
console.debug(`Avatar found for ${username}. Retrieving from hash map.`)
@@ -1055,84 +1135,6 @@ async function GetAvatar(username) {
}
}
// async function GetPronouns(platform, username) {
// const response = await client.getUserPronouns(platform, username);
// const userFound = response.pronoun.userFound;
// const pronouns = `${response.pronoun.pronounSubject}/${response.pronoun.pronounObject}`;
// if (userFound)
// return `${response.pronoun.pronounSubject}/${response.pronoun.pronounObject}`;
// else
// return '';
// }
// function IsImageUrl(url) {
// return url.match(/^http.*\.(jpeg|jpg|gif|png)$/) != null;
// }
// function IsImageUrl(url) {
// try {
// const { pathname } = new URL(url);
// // Only check the pathname since query parameters are not included in it.
// return /\.(png|jpe?g|webp|gif)$/i.test(pathname);
// } catch (error) {
// // Return false if the URL is invalid.
// return false;
// }
// }
// function AddMessageItem(element, elementID, platform, userId) {
// // Calculate the height of the div before inserting
// const tempDiv = document.getElementById('IPutThisHereSoICanCalculateHowBigEachMessageIsSupposedToBeBeforeIAddItToTheMessageList');
// const tempDivTwoElectricBoogaloo = document.createElement('div');
// tempDivTwoElectricBoogaloo.appendChild(element);
// tempDiv.appendChild(tempDivTwoElectricBoogaloo);
// setTimeout(function () {
// const calculatedHeight = tempDivTwoElectricBoogaloo.offsetHeight + "px";
// // Create a new line item to add to the message list later
// var lineItem = document.createElement('li');
// lineItem.id = elementID;
// lineItem.dataset.platform = platform;
// lineItem.dataset.userId = userId;
// // Set scroll direction
// if (scrollDirection == 2)
// lineItem.classList.add('reverseLineItemDirection');
// // Move the element from the temp div to the new line item
// lineItem.appendChild(tempDiv.firstElementChild);
// // Add the line item to the list and animate it
// // We need to manually set the height as straight CSS can't animate on "height: auto"
// messageList.appendChild(lineItem);
// setTimeout(function () {
// lineItem.className = lineItem.className + " show";
// lineItem.style.maxHeight = calculatedHeight;
// // After it's done animating, remove the height constraint in case the div needs to get bigger
// setTimeout(function () {
// lineItem.style.maxHeight = "none";
// }, 1000);
// }, 10);
// // Remove old messages that have gone off screen to save memory
// while (messageList.clientHeight > 5 * window.innerHeight) {
// messageList.removeChild(messageList.firstChild);
// }
// if (hideAfter > 0) {
// setTimeout(function () {
// lineItem.style.opacity = 0;
// setTimeout(function () {
// messageList.removeChild(lineItem);
// }, 1000);
// }, hideAfter * 1000);
// }
// }, 200);
// }
function DecodeHTMLString(html) {
var txt = document.createElement("textarea");
txt.innerHTML = html;
@@ -1176,35 +1178,6 @@ function FindFirstImageUrl(jsonObject) {
return iterate(jsonObject);
}
// function IsThisUserAllowedToPostImagesOrNotReturnTrueIfTheyCanReturnFalseIfTheyCannot(targetPermissions, data, platform) {
// return GetPermissionLevel(data, platform) >= targetPermissions;
// }
// function GetPermissionLevel(data, platform) {
// switch (platform) {
// case 'twitch':
// if (data.message.role >= 4)
// return 40;
// else if (data.message.role >= 3)
// return 30;
// else if (data.message.role >= 2)
// return 20;
// else if (data.message.role >= 2 || data.message.subscriber)
// return 15;
// else
// return 10;
// case 'youtube':
// if (data.user.isOwner)
// return 40;
// else if (data.user.isModerator)
// return 30;
// else if (data.user.isSponsor)
// return 15;
// else
// return 10;
// }
// }
function GetWinnersList(gifts) {
const winners = gifts.map(gift => gift.winner);
const numWinners = winners.length;
@@ -1222,45 +1195,6 @@ function GetWinnersList(gifts) {
}
}
// function TranslateToFurry(sentence) {
// const words = sentence.toLowerCase().split(/\b/);
// const furryWords = words.map(word => {
// if (/\w+/.test(word)) {
// let newWord = word;
// // Common substitutions
// newWord = newWord.replace(/l/g, 'w');
// newWord = newWord.replace(/r/g, 'w');
// newWord = newWord.replace(/th/g, 'f');
// newWord = newWord.replace(/you/g, 'yous');
// newWord = newWord.replace(/my/g, 'mah');
// newWord = newWord.replace(/me/g, 'meh');
// newWord = newWord.replace(/am/g, 'am');
// newWord = newWord.replace(/is/g, 'is');
// newWord = newWord.replace(/are/g, 'are');
// newWord = newWord.replace(/very/g, 'vewy');
// newWord = newWord.replace(/pretty/g, 'pwetty');
// newWord = newWord.replace(/little/g, 'wittle');
// newWord = newWord.replace(/nice/g, 'nyce');
// // Random additions
// if (Math.random() < 0.15) {
// newWord += ' nya~';
// } else if (Math.random() < 0.1) {
// newWord += ' >w<';
// } else if (Math.random() < 0.05) {
// newWord += ' owo';
// }
// return newWord;
// }
// return word;
// });
// return furryWords.join('');
// }
async function UpdateAlertBox(platform, avatarURL, headerText, descriptionText, attributeText, username, message, sbAction, sbData) {
// Check if the widget is in the middle of an animation
// If any alerts are requested while the animation is playing, it should be added to the alert queue
@@ -1276,7 +1210,10 @@ async function UpdateAlertBox(platform, avatarURL, headerText, descriptionText,
// Set the card background colors
alertBox.classList = '';
alertBox.classList.add(platform);
if (useCustomBackground)
alertBox.classList.add('customBackground');
else
alertBox.classList.add(platform);
// Render avatars
if (showAvatar) {
@@ -1380,4 +1317,32 @@ function SetConnectionStatus(connected) {
statusContainer.style.transition = "";
statusContainer.style.opacity = 1;
}
}
}
// let data = {
// cumulative_total: 77,
// id: "6616253944106387595",
// isTest: false,
// messageId: "00e4258c-a880-4f11-a93c-4734ee92199f",
// recipients: [
// {}, {}, {}, {}, {}, {}, {}, {}, {}, {}
// ],
// sub_tier: "1000", // Usually "1000" = Tier 1
// systemMessage: "thetrickster1973 is gifting 10 Tier 1 Subs to nutty's community! They've gifted a total of 77 in the channel!",
// total: 10,
// user: {
// badges: [{}, {}, {}],
// color: "#1E90FF",
// id: "52175891",
// login: "thetrickster1973",
// monthsSubscribed: 14,
// name: "thetrickster1973",
// role: 2, // 2 - VIP
// subscribed: true,
// type: "twitch"
// }
// };
// TwitchGiftBomb(data);
//testWidget();
+26 -24
View File
@@ -36,10 +36,10 @@
},
{
"id": "useCustomBackground",
"label": "Use Custom Background",
"description": "",
"label": "Use Custom Background Color",
"description": "If off, platform colors will be used instead",
"type": "checkbox",
"defaultValue": true,
"defaultValue": false,
"group": "Appearance"
},
{
@@ -47,7 +47,8 @@
"label": "Background",
"description": "",
"type": "color",
"defaultValue": "#000000",
"defaultValue": "#2196f3",
"showIf": "useCustomBackground",
"group": "Appearance"
},
{
@@ -59,6 +60,7 @@
"min": 0,
"max": 1,
"step": ".01",
"showIf": "useCustomBackground",
"group": "Appearance"
},
{
@@ -171,7 +173,7 @@
"description": "Also run this Streamer.bot Action",
"type": "sb-actions",
"defaultValue": "",
"hideIf": "showTwitchFollows",
"showIf": "showTwitchFollows",
"group": "Which Twitch alerts do you want to see?"
},
{
@@ -188,7 +190,7 @@
"description": "Also run this Streamer.bot Action",
"type": "sb-actions",
"defaultValue": "",
"hideIf": "showTwitchSubs",
"showIf": "showTwitchSubs",
"group": "Which Twitch alerts do you want to see?"
},
{
@@ -205,7 +207,7 @@
"description": "Also run this Streamer.bot Action",
"type": "sb-actions",
"defaultValue": "",
"hideIf": "showTwitchChannelPointRedemptions",
"showIf": "showTwitchChannelPointRedemptions",
"group": "Which Twitch alerts do you want to see?"
},
{
@@ -222,7 +224,7 @@
"description": "Also run Streamer.bot Action",
"type": "sb-actions",
"defaultValue": "",
"hideIf": "showTwitchCheers",
"showIf": "showTwitchCheers",
"group": "Which Twitch alerts do you want to see?"
},
{
@@ -239,7 +241,7 @@
"description": "Also run this Streamer.bot Action",
"type": "sb-actions",
"defaultValue": "",
"hideIf": "showTwitchRaids",
"showIf": "showTwitchRaids",
"group": "Which Twitch alerts do you want to see?"
},
{
@@ -256,7 +258,7 @@
"description": "Also run this Streamer.bot Action",
"type": "sb-actions",
"defaultValue": "",
"hideIf": "showYouTubeSuperChats",
"showIf": "showYouTubeSuperChats",
"group": "Which YouTube alerts do you want to see?"
},
{
@@ -273,7 +275,7 @@
"description": "Also run this Streamer.bot Action",
"type": "sb-actions",
"defaultValue": "",
"hideIf": "showYouTubeSuperStickers",
"showIf": "showYouTubeSuperStickers",
"group": "Which YouTube alerts do you want to see?"
},
{
@@ -290,7 +292,7 @@
"description": "Also run this Streamer.bot Action",
"type": "sb-actions",
"defaultValue": "",
"hideIf": "showYouTubeMemberships",
"showIf": "showYouTubeMemberships",
"group": "Which YouTube alerts do you want to see?"
},
{
@@ -298,7 +300,7 @@
"label": "Streamlabs Tips",
"description": "<a href=\"https://docs.streamer.bot/guide/integrations/streamlabs\" target=\"_blank\">Click to connect</a>",
"type": "checkbox",
"defaultValue": false,
"defaultValue": true,
"group": "Which donation alerts do you want to see?"
},
{
@@ -307,7 +309,7 @@
"description": "Also run this Streamer.bot Action",
"type": "sb-actions",
"defaultValue": "",
"hideIf": "showStreamlabsDonations",
"showIf": "showStreamlabsDonations",
"group": "Which donation alerts do you want to see?"
},
{
@@ -315,7 +317,7 @@
"label": "StreamElements Tips",
"description": "<a href=\"https://docs.streamer.bot/guide/integrations/streamelements\" target=\"_blank\">Click to connect</a>",
"type": "checkbox",
"defaultValue": false,
"defaultValue": true,
"group": "Which donation alerts do you want to see?"
},
{
@@ -324,7 +326,7 @@
"description": "Also run this Streamer.bot Action",
"type": "sb-actions",
"defaultValue": "",
"hideIf": "showStreamElementsTips",
"showIf": "showStreamElementsTips",
"group": "Which donation alerts do you want to see?"
},
{
@@ -332,7 +334,7 @@
"label": "Patreon Memberships",
"description": "<a href=\"https://docs.streamer.bot/guide/integrations/patreon\" target=\"_blank\">Click to connect</a>",
"type": "checkbox",
"defaultValue": false,
"defaultValue": true,
"group": "Which donation alerts do you want to see?"
},
{
@@ -341,7 +343,7 @@
"description": "Also run this Streamer.bot Action",
"type": "sb-actions",
"defaultValue": "",
"hideIf": "showPatreonMemberships",
"showIf": "showPatreonMemberships",
"group": "Which donation alerts do you want to see?"
},
{
@@ -349,7 +351,7 @@
"label": "Ko-fi Donations",
"description": "<a href=\"https://docs.streamer.bot/guide/integrations/ko-fi\" target=\"_blank\">Click to connect</a>",
"type": "checkbox",
"defaultValue": false,
"defaultValue": true,
"group": "Which donation alerts do you want to see?"
},
{
@@ -358,7 +360,7 @@
"description": "Also run this Streamer.bot Action",
"type": "sb-actions",
"defaultValue": "",
"hideIf": "showKofiDonations",
"showIf": "showKofiDonations",
"group": "Which donation alerts do you want to see?"
},
{
@@ -366,7 +368,7 @@
"label": "TipeeeStream Donations",
"description": "<a href=\"https://docs.streamer.bot/guide/integrations/tipeee-stream\" target=\"_blank\">Click to connect</a>",
"type": "checkbox",
"defaultValue": false,
"defaultValue": true,
"group": "Which donation alerts do you want to see?"
},
{
@@ -375,7 +377,7 @@
"description": "Also run this Streamer.bot Action",
"type": "sb-actions",
"defaultValue": "",
"hideIf": "showTipeeeStreamDonations",
"showIf": "showTipeeeStreamDonations",
"group": "Which donation alerts do you want to see?"
},
{
@@ -383,7 +385,7 @@
"label": "Fourthwall Alerts",
"description": "<a href=\"https://docs.streamer.bot/guide/integrations/fourthwall\" target=\"_blank\">Click to connect</a>",
"type": "checkbox",
"defaultValue": false,
"defaultValue": true,
"group": "Which donation alerts do you want to see?"
},
{
@@ -392,7 +394,7 @@
"description": "Also run this Streamer.bot Action",
"type": "sb-actions",
"defaultValue": "",
"hideIf": "showFourthwallAlerts",
"showIf": "showFourthwallAlerts",
"group": "Which donation alerts do you want to see?"
}
]
+7 -3
View File
@@ -1,7 +1,7 @@
* {
margin: 0;
padding: 0;
--margin: 1em;
--margin: 0.5em;
--border-radius: 1em;
/* font-size: 30px; */
/* --line-spacing: 1.7em; */
@@ -85,7 +85,7 @@ html {
/* left: var(--margin);
top: var(--margin); */
transition: inherit;
padding: var(--margin);
padding: var(--margin) calc( 1.5 * var(--margin));
display: none;
}
@@ -97,7 +97,7 @@ html {
/* position: absolute; */
/* left: var(--margin);
top: var(--margin); */
padding: var(--margin);
padding: var(--margin) calc( 1.5 * var(--margin));
transition: inherit;
display: none;
}
@@ -360,6 +360,10 @@ html {
background: #adadad46;
}
.customBackground {
background: var(--custom-background);
}
/****************/
/** ANIMATIONS **/
/****************/