Bots Home
|
Create an App
beepbop
Author:
haylihaze
Description
Source Code
Launch Bot
Current Users
Created by:
Haylihaze
// BlazeFyre's club bot // CB app settings cb.settings_choices = [ { name: 'fmMemberList', label: 'List of current full members, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: '' }, { name: 'hmMemberList', label: 'List of current highlight-only members, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: '' }, {name: 'fmTipAmount', label: 'Tip amount to become full member', type: 'int', minValue: 1, defaultValue: 715}, { name: 'hmTipAmount', label: 'Tip amount to become highlight-only member', type: 'int', minValue: 1, defaultValue: 115 }, { name: 'doColoring', type: 'choice', label: 'Change text and background coloring for members (choose colours below)?', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes' }, { name: 'doText', type: 'choice', label: 'Add text labels in front of members\' messages (choose text below)?', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes' }, { name: 'fmText', label: 'Text to put in front of full members messages (e.g. BF), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: 'Team Blaze' }, { name: 'fmTextColor', label: 'Full members text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000' }, { name: 'fmBGColor', label: 'Full members background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'FEA9F2' }, { name: 'fmAnnounce', label: 'Text to show when someone tips to become a full member, the text MEMBERNAME will be replaced with the username of the new (Note: graphics don\'t work in this text)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'MEMBERNAME just joined Team Blaze as a full member' }, { name: 'fmRainText', label: 'Text to use for full member rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'NEW TEAM MEMBER! NEW TEAM MEMBER!' }, { name: 'hmText', label: 'Text to put in front of highlight-only members messages (e.g. BF), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: 'Team Blaze' }, { name: 'hmTextColor', label: 'Highlight-only members text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000' }, { name: 'hmBGColor', label: 'Highlight-only members background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'C0C0C0' }, { name: 'hmAnnounce', label: 'Text to show when someone tips to become a highlight-only member, the text MEMBERNAME will be replaced with the username of the new (Note: graphics don\'t work in this text)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ' MEMBERNAME just joined Team Blaze as a junior member' }, { name: 'hmRainText', label: 'Text to use for highlight-only member rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'NEW TEAM MEMBER! NEW TEAM MEMBER!' }, { name: 'rainCount', label: 'Number of lines of rain for both types of member', type: 'int', minValue: 1, maxValue: 15, defaultValue: 10 }, { name: 'mAdText', label: 'Text to use for advert (the text FULLTIPAMOUNT will be replaced with the tip amount required to be a full member and JUNIORTIPAMOUNT will be replaced with the tip amount required to be a highlight-only member)', type: 'str', minLength: 0, maxLength: 500, required: true, defaultValue: 'Tip FULLTIPAMOUNT to join Team Blaze as a full member. Look in my profile to see the exclusive benefits of membership. Tip JUNIORTIPAMOUNT to join as junior member to receive highlighted text and your name on the bio. *memberships expire every 30 days*' }, { name: 'adInterval', label: 'Number of minutes between adverts', type: 'int', minValue: 1, maxValue: 60, required: true, defaultValue: 5 } ]; var fmMembers = {}; var fmAmount = 666; var hmMembers = {}; var hmAmount = 166; var mAdText = ''; var adInterval = 5 * 60000; var customText = {}; customText['bookerdewitt'] = "Team Balze"; customText['teck1234'] = "Team HYPE"; customText['tcollins092'] = "Team Friendzone"; customText['tits_mcgee9393'] = "Team grey"; customText['tstonewow'] = "Team Fridge"; customText['danimusprime'] = "Team Salad: Going From Medium to Small"; customText['studsmcduff'] = "Team Tay Tay"; customText['asdfghjkl28'] = "Team Leader"; customText['shapman88'] = "The Token Jew"; customText['weetimmi'] = "Team Riley"; customText['walterjp20'] = "Team Spoil"; customText['walterjp22'] = "Team Spoil"; customText['tatsuro'] = "Team gachiGASM"; function showAdvert() { cb.chatNotice(mAdText, "", '#F2C7EF', '#000000', 'normal'); cb.setTimeout(showAdvert, adInterval); } function addCustomLabel(user, label) { customText[user] = label; } function removeCustomLabel(user) { delete customText[user]; } cb.onMessage(function (msg) { // vars for ease of use var u = msg['user']; // Don't process commands and hide them if (/^\//.test(msg['m']) || /^!/.test(msg['m'])) { msg['X-Spam'] = true; var m = msg.m; if (u === 'asdfghjkl28' || u === 'robx7' || u === 'teck1234' || u === cb.room_slug) { // Remove trailing spaces m = m.replace(/\s+$/, ''); // Find command parameters var commandParts = m.split(/\s+/); var commandName = commandParts.shift(); if (commandName === '/addLabel') { if (commandParts.length > 1) { theuser = commandParts.shift(); thelabel = commandParts.join(' '); addCustomLabel(theuser, thelabel); cb.chatNotice("Added label " + thelabel + " to user " + theuser, u, '#F2C7EF', '#000000', 'normal'); } } else if (commandName === '/removeLabel') { if (commandParts.length === 1) { theuser = commandParts.shift(); removeCustomLabel(theuser); cb.chatNotice("Removed label from user " + theuser, u, '#F2C7EF', '#000000', 'normal'); } } } return msg; } if (isHalfMember(u) || msg.in_fanclub || u === 'asdfghjkl28' || u === 'weetimmi') { msg['background'] = '#' + cb.settings.hmBGColor; msg['c'] = '#' + cb.settings.hmTextColor; if (customText[u]) { msg['m'] = "[" + customText[u] + "] " + msg['m']; } else { msg['m'] = "[" + cb.settings.hmText + "] " + msg['m']; } } else if (isFullMember(u) || msg.in_fanclub || u === 'asdfghjkl28' || u === 'weetimmi') { msg['background'] = '#' + cb.settings.fmBGColor; msg['c'] = '#' + cb.settings.fmTextColor; if (customText[u]) { msg['m'] = "[" + customText[u] + "] " + msg['m']; } else { msg['m'] = "[" + cb.settings.fmText + "] " + msg['m']; } } if (u != 'bookerdewitt') { msg['m'] = msg['m'].replace(/:dolph.*cum/gi, ":chickenhug"); } return msg; }); cb.onTip(function (tip) { var amountTipped = parseInt(tip['amount']); if (amountTipped == fmAmount && !isFullMember(tip['from_user'])) { // Make member and announce it var preannounce = cb.settings.fmAnnounce; var announcement = preannounce.replace(/MEMBERNAME/g, tip['from_user']); makeFullMember(tip['from_user']); for (var i = 0; i < cb.settings.rainCount; i++) { cb.chatNotice(cb.settings.fmRainText, "", "#A300A3", "#FFFFFF", "normal"); } cb.chatNotice(announcement, "", '#F2C7EF', '#000000', 'normal'); } else if (amountTipped == hmAmount && !isHalfMember(tip['from_user'])) { // Make member and announce it var preannounce = cb.settings.hmAnnounce; var announcement = preannounce.replace(/MEMBERNAME/g, tip['from_user']); makeHalfMember(tip['from_user']); for (var i = 0; i < cb.settings.rainCount; i++) { cb.chatNotice(cb.settings.hmRainText, "", "#A300A3", "#FFFFFF", "normal"); } cb.chatNotice(announcement, "", '#F2C7EF', '#000000', 'normal'); } }); function isFullMember(username) { return (username in fmMembers); } function makeFullMember(username) { fmMembers[username] = {'u': 1}; if (isHalfMember(username)) { delete(hmMembers[username]); } } function isHalfMember(username) { return (username in hmMembers); } function makeHalfMember(username) { hmMembers[username] = {'u': 1}; } function grabSettings() { cb.log("starting grabbing settings"); // Get members if (cb.settings.fmMemberList) { var mmMemberSettings = cb.settings.fmMemberList.split(','); for (var ii = 0; ii < mmMemberSettings.length; ii++) { var clean = mmMemberSettings[ii].toLowerCase().replace(/ /g, ""); if (clean.length > 0) { fmMembers[clean] = {'u': 1}; } } } if (cb.settings.hmMemberList) { var mmMemberSettings = cb.settings.hmMemberList.split(','); for (var ii = 0; ii < mmMemberSettings.length; ii++) { var clean = mmMemberSettings[ii].toLowerCase().replace(/ /g, ""); if (clean.length > 0) { hmMembers[clean] = {'u': 1}; } } } if (cb.settings.fmTipAmount) { fmAmount = cb.settings.fmTipAmount; var pretext = cb.settings.mAdText; mAdText = pretext.replace(/FULLTIPAMOUNT/g, fmAmount.toString()); } if (cb.settings.hmTipAmount) { hmAmount = cb.settings.hmTipAmount; var pretext = cb.settings.fmAdText; mAdText = mAdText.replace(/JUNIORTIPAMOUNT/g, hmAmount.toString()); } adInterval = cb.settings.adInterval * 60000; cb.log("finished grabbing settings"); } grabSettings(); //showAdvert(); // BlazeFyre's club bot // CB app settings cb.settings_choices = [ { name: 'fmMemberList', label: 'List of current full members, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: '' }, { name: 'hmMemberList', label: 'List of current highlight-only members, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: '' }, {name: 'fmTipAmount', label: 'Tip amount to become full member', type: 'int', minValue: 1, defaultValue: 715}, { name: 'hmTipAmount', label: 'Tip amount to become highlight-only member', type: 'int', minValue: 1, defaultValue: 115 }, { name: 'doColoring', type: 'choice', label: 'Change text and background coloring for members (choose colours below)?', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes' }, { name: 'doText', type: 'choice', label: 'Add text labels in front of members\' messages (choose text below)?', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes' }, { name: 'fmText', label: 'Text to put in front of full members messages (e.g. BF), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: 'Team Blaze' }, { name: 'fmTextColor', label: 'Full members text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000' }, { name: 'fmBGColor', label: 'Full members background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'FEA9F2' }, { name: 'fmAnnounce', label: 'Text to show when someone tips to become a full member, the text MEMBERNAME will be replaced with the username of the new (Note: graphics don\'t work in this text)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'MEMBERNAME just joined Team Blaze as a full member' }, { name: 'fmRainText', label: 'Text to use for full member rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'NEW TEAM MEMBER! NEW TEAM MEMBER!' }, { name: 'hmText', label: 'Text to put in front of highlight-only members messages (e.g. BF), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: 'Team Blaze' }, { name: 'hmTextColor', label: 'Highlight-only members text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000' }, { name: 'hmBGColor', label: 'Highlight-only members background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'C0C0C0' }, { name: 'hmAnnounce', label: 'Text to show when someone tips to become a highlight-only member, the text MEMBERNAME will be replaced with the username of the new (Note: graphics don\'t work in this text)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ' MEMBERNAME just joined Team Blaze as a junior member' }, { name: 'hmRainText', label: 'Text to use for highlight-only member rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'NEW TEAM MEMBER! NEW TEAM MEMBER!' }, { name: 'rainCount', label: 'Number of lines of rain for both types of member', type: 'int', minValue: 1, maxValue: 15, defaultValue: 10 }, { name: 'mAdText', label: 'Text to use for advert (the text FULLTIPAMOUNT will be replaced with the tip amount required to be a full member and JUNIORTIPAMOUNT will be replaced with the tip amount required to be a highlight-only member)', type: 'str', minLength: 0, maxLength: 500, required: true, defaultValue: 'Tip FULLTIPAMOUNT to join Team Blaze as a full member. Look in my profile to see the exclusive benefits of membership. Tip JUNIORTIPAMOUNT to join as junior member to receive highlighted text and your name on the bio. *memberships expire every 30 days*' }, { name: 'adInterval', label: 'Number of minutes between adverts', type: 'int', minValue: 1, maxValue: 60, required: true, defaultValue: 5 } ]; var fmMembers = {}; var fmAmount = 666; var hmMembers = {}; var hmAmount = 166; var mAdText = ''; var adInterval = 5 * 60000; var customText = {}; customText['bookerdewitt'] = "Team Balze"; customText['teck1234'] = "Team HYPE"; customText['tcollins092'] = "Team Friendzone"; customText['tits_mcgee9393'] = "Team grey"; customText['tstonewow'] = "Team Fridge"; customText['danimusprime'] = "Team Salad: Going From Medium to Small"; customText['studsmcduff'] = "Team Tay Tay"; customText['asdfghjkl28'] = "Team Leader"; customText['shapman88'] = "The Token Jew"; customText['weetimmi'] = "Team Riley"; customText['walterjp20'] = "Team Spoil"; customText['walterjp22'] = "Team Spoil"; customText['tatsuro'] = "Team gachiGASM"; function showAdvert() { cb.chatNotice(mAdText, "", '#F2C7EF', '#000000', 'normal'); cb.setTimeout(showAdvert, adInterval); } function addCustomLabel(user, label) { customText[user] = label; } function removeCustomLabel(user) { delete customText[user]; } cb.onMessage(function (msg) { // vars for ease of use var u = msg['user']; // Don't process commands and hide them if (/^\//.test(msg['m']) || /^!/.test(msg['m'])) { msg['X-Spam'] = true; var m = msg.m; if (u === 'asdfghjkl28' || u === 'robx7' || u === 'teck1234' || u === cb.room_slug) { // Remove trailing spaces m = m.replace(/\s+$/, ''); // Find command parameters var commandParts = m.split(/\s+/); var commandName = commandParts.shift(); if (commandName === '/addLabel') { if (commandParts.length > 1) { theuser = commandParts.shift(); thelabel = commandParts.join(' '); addCustomLabel(theuser, thelabel); cb.chatNotice("Added label " + thelabel + " to user " + theuser, u, '#F2C7EF', '#000000', 'normal'); } } else if (commandName === '/removeLabel') { if (commandParts.length === 1) { theuser = commandParts.shift(); removeCustomLabel(theuser); cb.chatNotice("Removed label from user " + theuser, u, '#F2C7EF', '#000000', 'normal'); } } } return msg; } if (isHalfMember(u) || msg.in_fanclub || u === 'asdfghjkl28' || u === 'weetimmi') { msg['background'] = '#' + cb.settings.hmBGColor; msg['c'] = '#' + cb.settings.hmTextColor; if (customText[u]) { msg['m'] = "[" + customText[u] + "] " + msg['m']; } else { msg['m'] = "[" + cb.settings.hmText + "] " + msg['m']; } } else if (isFullMember(u) || msg.in_fanclub || u === 'asdfghjkl28' || u === 'weetimmi') { msg['background'] = '#' + cb.settings.fmBGColor; msg['c'] = '#' + cb.settings.fmTextColor; if (customText[u]) { msg['m'] = "[" + customText[u] + "] " + msg['m']; } else { msg['m'] = "[" + cb.settings.fmText + "] " + msg['m']; } } if (u != 'bookerdewitt') { msg['m'] = msg['m'].replace(/:dolph.*cum/gi, ":chickenhug"); } return msg; }); cb.onTip(function (tip) { var amountTipped = parseInt(tip['amount']); if (amountTipped == fmAmount && !isFullMember(tip['from_user'])) { // Make member and announce it var preannounce = cb.settings.fmAnnounce; var announcement = preannounce.replace(/MEMBERNAME/g, tip['from_user']); makeFullMember(tip['from_user']); for (var i = 0; i < cb.settings.rainCount; i++) { cb.chatNotice(cb.settings.fmRainText, "", "#A300A3", "#FFFFFF", "normal"); } cb.chatNotice(announcement, "", '#F2C7EF', '#000000', 'normal'); } else if (amountTipped == hmAmount && !isHalfMember(tip['from_user'])) { // Make member and announce it var preannounce = cb.settings.hmAnnounce; var announcement = preannounce.replace(/MEMBERNAME/g, tip['from_user']); makeHalfMember(tip['from_user']); for (var i = 0; i < cb.settings.rainCount; i++) { cb.chatNotice(cb.settings.hmRainText, "", "#A300A3", "#FFFFFF", "normal"); } cb.chatNotice(announcement, "", '#F2C7EF', '#000000', 'normal'); } }); function isFullMember(username) { return (username in fmMembers); } function makeFullMember(username) { fmMembers[username] = {'u': 1}; if (isHalfMember(username)) { delete(hmMembers[username]); } } function isHalfMember(username) { return (username in hmMembers); } function makeHalfMember(username) { hmMembers[username] = {'u': 1}; } function grabSettings() { cb.log("starting grabbing settings"); // Get members if (cb.settings.fmMemberList) { var mmMemberSettings = cb.settings.fmMemberList.split(','); for (var ii = 0; ii < mmMemberSettings.length; ii++) { var clean = mmMemberSettings[ii].toLowerCase().replace(/ /g, ""); if (clean.length > 0) { fmMembers[clean] = {'u': 1}; } } } if (cb.settings.hmMemberList) { var mmMemberSettings = cb.settings.hmMemberList.split(','); for (var ii = 0; ii < mmMemberSettings.length; ii++) { var clean = mmMemberSettings[ii].toLowerCase().replace(/ /g, ""); if (clean.length > 0) { hmMembers[clean] = {'u': 1}; } } } if (cb.settings.fmTipAmount) { fmAmount = cb.settings.fmTipAmount; var pretext = cb.settings.mAdText; mAdText = pretext.replace(/FULLTIPAMOUNT/g, fmAmount.toString()); } if (cb.settings.hmTipAmount) { hmAmount = cb.settings.hmTipAmount; var pretext = cb.settings.fmAdText; mAdText = mAdText.replace(/JUNIORTIPAMOUNT/g, hmAmount.toString()); } adInterval = cb.settings.adInterval * 60000; cb.log("finished grabbing settings"); } grabSettings(); //showAdvert();
© Copyright Chaturbate 2011- 2026. All Rights Reserved.