Bots Home
|
Create an App
scrumptious multibot
Author:
scrumptious
Description
Source Code
Launch Bot
Current Users
Created by:
Scrumptious
// scrumptious multibot // CB app settings cb.settings_choices = [ { name: 'doColoring', type: 'choice', label: 'Change text and background coloring for members and heroes (choose colours below)?', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes' }, { name: 'doText', type: 'choice', label: 'Add text labels in front of members and heros messages (choose text below)?', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes' }, // slang {name: 'slang1', type: 'str', minLength: 1, maxLength: 255, required: false}, {name: 'replace', type: 'str', minLength: 1, maxLength: 255, required: false}, {name: 'slang2', type: 'str', minLength: 1, maxLength: 255, required: false}, {name: 'replace2', type: 'str', minLength: 1, maxLength: 255, required: false}, {name: 'slang3', type: 'str', minLength: 1, maxLength: 255, required: false}, {name: 'replace3', type: 'str', minLength: 1, maxLength: 255, required: false}, {name: 'slang4', type: 'str', minLength: 1, maxLength: 255, required: false}, {name: 'replace4', type: 'str', minLength: 1, maxLength: 255, required: false}, {name: 'slang5', type: 'str', minLength: 1, maxLength: 255, required: false}, {name: 'replace5', type: 'str', minLength: 1, maxLength: 255, required: false}, {name: 'slang6', type: 'str', minLength: 1, maxLength: 255, required: false}, {name: 'replace6', type: 'str', minLength: 1, maxLength: 255, required: false}, {name: 'slang7', type: 'str', minLength: 1, maxLength: 255, required: false}, {name: 'replace7', type: 'str', minLength: 1, maxLength: 255, required: false}, {name: 'slang8', type: 'str', minLength: 1, maxLength: 255, required: false}, {name: 'replace8', type: 'str', minLength: 1, maxLength: 255, required: false}, {name: 'slang9', type: 'str', minLength: 1, maxLength: 255, required: false}, {name: 'replace9', type: 'str', minLength: 1, maxLength: 255, required: false}, {name: 'slang10', type: 'str', minLength: 1, maxLength: 255, required: false}, {name: 'replace10', type: 'str', minLength: 1, maxLength: 255, required: false}, // Pervs Group {name: 'peText', label: 'Text to put in front of Pervs messages (e.g. Pervs), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: 'Perv'}, {name: 'peTextColor', label: 'Pervs text color - HTML colour code without starting \'#\' e.g. (939393 is grey)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '939393'}, {name: 'peBGColor', label: 'Pervs background color - HTML colour code without starting \'#\' e.g. (FFDEAD is orangeish)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'FFDEAD'}, {name: 'peMinTip', label: 'Minimum tip to become a Pervs', type: 'int', minValue: 1, defaultValue: 555}, {name: 'peAnnounce', label: 'Text to show when someone tips to become a Perv, the text MEMBERNAME will be replaced with the username of the new member (Note: graphics don\'t work in this text)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'MEMBERNAME just got outed as a Perv!'}, {name: 'peMemberList', label: 'List of current Pervs, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'peRainText', label: 'Text to use for Pervs rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'U PERV !!!'}, {name: 'peRainCount', label: 'Number of lines for Pervs', type: 'int', minValue: 1, maxValue: 15, defaultValue: 5}, // Brinaholics Group {name: 'briText', label: 'Text to put in front of Brinaholics messages (e.g. Brinaholic)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: 'Brinaholic'}, {name: 'briTextColor', label: 'Brinaholics text color - HTML colour code without starting \'#\' e.g. (FF89DC is pink)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'FF89DC'}, {name: 'briBGColor', label: 'Brinaholics background color - HTML colour code without starting \'#\' e.g. (F5B608 is orangey/gold)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '7F1D7C'}, {name: 'briMinTip', label: 'Minimum tip to become a Brinaholic', type: 'int', minValue: 1, defaultValue: 1111}, {name: 'briAnnounce', label: 'Text to show when someone tips to become a Brinaholic, the text MEMBERNAME will be replaced with the username of the new member (Note: graphics don\'t work in this text)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'MEMBERNAME just became a Brinaholic'}, {name: 'briMemberList', label: 'List of current Brinaholics, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'briRainText', label: 'Text to use for Brinaholics rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'welcome at the anonymous Brinaholics'}, {name: 'briRainCount', label: 'Number of lines of Brinaholics rain', type: 'int', minValue: 1, maxValue: 20, defaultValue: 7}, // Hulk {name: 'huText', label: 'Text to put in front of Hulk messages (e.g. Hulk)', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: 'Hulk'}, {name: 'huTextColor', label: 'Hulk text color - HTML colour code without starting \'#\' e.g. (7D268B is purple)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '7D268B'}, {name: 'huBGColor', label: 'Hulk background color - HTML colour code without starting \'#\' e.g. (93CB3E is green)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '93CB3E'}, {name: 'huMinTip', label: 'Minimum tip to become Hulk', type: 'int', minValue: 1, defaultValue: 3333}, {name: 'huAnnounce', label: 'Text to show when someone tips to become Hulk, the text MEMBERNAME will be replaced with the username of the new member (Note: graphics don\'t work in this text)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'dont make MEMBERNAME angry ... he turns into Hulk'}, {name: 'huMemberList', label: 'List of current Hulks, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'huRainText', label: 'Text to use for Hulk rain lines', type: 'str', minLength: 0, maxLength: 180, required: false, defaultValue: 'dont make me angry!!! grrrrr '}, {name: 'huRainCount', label: 'Number of lines of Hulk rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 10}, // Unicorn Group {name: 'uniText', label: 'Text to put in front of Unicorn messages (e.g. Unicorn)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: 'Unicorn'}, {name: 'uniTextColor', label: 'Unicorn text color - HTML colour code without starting \'#\' e.g. (10106F is blue)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '10106F'}, {name: 'uniBGColor', label: 'Unicorn background color - HTML colour code without starting \'#\' e.g. (DD012E is red)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'DD012E'}, {name: 'uniMinTip', label: 'Minimum tip to become a Unicorn', type: 'int', minValue: 1, defaultValue: 22222}, {name: 'uniAnnounce', label: 'Text to show when someone tips to become a Unicorn, the text MEMBERNAME will be replaced with the username of the new member (Note: graphics don\'t work in this text)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'always wanted a pet Unicorn ... MEMBERNAME just turned into mine'}, {name: 'uniMemberList', label: 'List of current Unicorn, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'uniRainText', label: 'Text to use for Unicorn rain lines', type: 'str', minLength: 0, maxLength: 180, required: false, defaultValue: 'unicorns i love them ... unicorns i love them'}, {name: 'uniRainCount', label: 'Number of lines of Unicorn rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 15}, // Batman Group {name: 'batText', label: 'Text to put in front of Batman messages (e.g. Batman)', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: 'Batman'}, {name: 'batTextColor', label: 'Batman text color - HTML colour code without starting \'#\' e.g. (FFF30E is yellow)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'FFF30E'}, {name: 'batBGColor', label: 'Batman background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000'}, {name: 'batMinTip', label: 'Minimum tip to become a Batman', type: 'int', minValue: 1, defaultValue: 5555}, {name: 'batAnnounce', label: 'Text to show when someone tips to Join Batman, the text MEMBERNAME will be replaced with the username of the new member (Note: graphics don\'t work in this text)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'watch out MEMBERNAME has now dangerous skills ... hes also known as Batman!'}, {name: 'batMemberList', label: 'List of current Batman, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'batRainText', label: 'Text to use for Batman rain lines', type: 'str', minLength: 0, maxLength: 180, required: false, defaultValue: 'i wear a mask ... that mask is not to hide who i am, but to create what i am - i am Batman!!'}, {name: 'batRainCount', label: 'Number of lines of Batman rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 10}, // Iron Man Group {name: 'iroText', label: 'Text to put in front of Iron Man messages (e.g. Iron Man)', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: 'Iron Man'}, {name: 'iroTextColor', label: 'Iron Man text color - HTML colour code without starting \'#\' e.g. (FFD609 is gold)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'FFD609'}, {name: 'iroBGColor', label: 'Iron Man background color - HTML colour code without starting \'#\' e.g. (C40000 is red)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'C40000'}, {name: 'iroMinTip', label: 'Minimum tip to become a Iron Man', type: 'int', minValue: 1, defaultValue: 8888}, {name: 'iroAnnounce', label: 'Text to show when someone tips to Join Iron Man, the text MEMBERNAME will be replaced with the username of the new member (Note: graphics don\'t work in this text)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'hide ur drinks and ur ladies ... Iron Man MEMBERNAME is in the house'}, {name: 'iroMemberList', label: 'List of current Iron Man, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'iroRainText', label: 'Text to use for Iron Man rain lines', type: 'str', minLength: 0, maxLength: 180, required: false, defaultValue: 'genius .. billionaire .. playboy .. philanthropist ... more to say?!'}, {name: 'iroRainCount', label: 'Number of lines of Iron Man rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 20}, // Superman Group {name: 'suText', label: 'Text to put in front of Supermans messages (e.g. Superman)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: 'Superman'}, {name: 'suTextColor', label: 'Supermans text color - HTML colour code without starting \'#\' e.g. (CE0303 is red)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'CE0303'}, {name: 'suBGColor', label: 'Supermans background color - HTML colour code without starting \'#\' e.g. (0000A0 is blue)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '0000A0'}, {name: 'suMinTip', label: 'Minimum tip to become a Superman', type: 'int', minValue: 1, defaultValue: 11111}, {name: 'suAnnounce', label: 'Text to show when someone tips to become a Superman, the text MEMBERNAME will be replaced with the username of the new member (Note: graphics don\'t work in this text)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'Superman MEMBERNAME is here to save the day!'}, {name: 'suMemberList', label: 'List of current Supermans, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'suRainText', label: 'Text to use for Supermans rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'well hello mister superman let me be ur kryptonite'}, {name: 'suRainCount', label: 'Number of lines of Supermans rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 10}, { name: 'print_on_tip', type: 'choice', choice1: 'always', choice2: 'only if the top 3 changed', choice3: 'never', defaultValue: 'only if the top 3 changed', label: "Print top 3 after tips" }, { name: 'print_interval', type: 'int', minValue: 0, defaultValue: 10, label: "Print top 3 at least once every (minutes, 0 to disable)", required: true },{ name: 'highlight', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'no', label: "Highlight tip leader in chat" }]; var peMembers = {}; var briMembers = {}; var huMembers = {}; var uniMembers = {}; var batMembers = {}; var iroMembers = {}; var suMembers = {}; var VERSION = '.scrumptious', COMMAND_SHOW_LEADERBOARD = '!lb', CONFIG_COLOR_LEADER = '#380B61', INTERVAL_MULTIPLIER = 60000, UPDATE_TIME = 5000, NL = '\n', user_total_tips = {}, user_last_tip_time = {}, last_top3 = '', leader_username, update_counter = 0, interval_counter = 0, silent_room = true; // handlers cb.onTip(function (tip) { handleTip(tip.amount, tip.from_user); scheduleUpdate(); silent_room = false; }); // For auto-silencing at least some of token_wh*re_c*nts usernames var twcRegex = /t.?k.?n.?wh.?r.?_c.?nt.?/i; cb.onMessage(function (msg) { // handle user commands if ((msg.m.indexOf(COMMAND_SHOW_LEADERBOARD) == 0) && !msg['X-Spam']) { sendLeaderboard(true, msg.user); msg['X-Spam'] = true; } // vars for ease of use var u = msg['user']; if ( ispe(u) ) { msg['background'] = '#' + cb.settings.peBGColor; msg['c'] = '#' + cb.settings.peTextColor; msg['m'] = "[" + cb.settings.peText + "] " + msg['m']; } else if ( isiro(u) ) { msg['background'] = '#' + cb.settings.iroBGColor; msg['c'] = '#' + cb.settings.iroTextColor; msg['m'] = "[" + cb.settings.iroText + "] " + msg['m']; } else if ( isbri(u) ) { msg['background'] = '#' + cb.settings.briBGColor; msg['c'] = '#' + cb.settings.briTextColor; msg['m'] = "[" + cb.settings.briText + "] " + msg['m']; } else if ( issu(u) ) { msg['background'] = '#' + cb.settings.suBGColor; msg['c'] = '#' + cb.settings.suTextColor; msg['m'] = "[" + cb.settings.suText + "] " + msg['m']; } else if ( isuni(u) ) { msg['background'] = '#' + cb.settings.uniBGColor; msg['c'] = '#' + cb.settings.uniTextColor; msg['m'] = "[" + cb.settings.uniText + "] " + msg['m']; } else if ( ishu(u) ) { msg['background'] = '#' + cb.settings.huBGColor; msg['c'] = '#' + cb.settings.huTextColor; msg['m'] = "[" + cb.settings.huText + "] " + msg['m']; } else if ( isbat(u) ) { msg['background'] = '#' + cb.settings.batBGColor; msg['c'] = '#' + cb.settings.batTextColor; msg['m'] = "[" + cb.settings.batText + "] " + msg['m']; } var st=1; if (st>0) { x="Good day"; var n2=msg.m.replace("fuck","fuck").replace(cb.settings.slang1,cb.settings.replace).replace(cb.settings.slang1,cb.settings.replace).replace(cb.settings.slang2,cb.settings.replace2).replace(cb.settings.slang3,cb.settings.replace3).replace(cb.settings.slang4,cb.settings.replace4).replace(cb.settings.slang5,cb.settings.replace5).replace(cb.settings.slang6,cb.settings.replace6).replace(cb.settings.slang7,cb.settings.replace7).replace(cb.settings.slang8,cb.settings.replace8).replace(cb.settings.slang9,cb.settings.replace9).replace(cb.settings.slang10,cb.settings.replace10).replace(cb.settings.slang1,cb.settings.replace).replace(cb.settings.slang1,cb.settings.replace).replace(cb.settings.slang1,cb.settings.replace).replace(cb.settings.slang1,cb.settings.replace).replace(cb.settings.slang1,cb.settings.replace).replace(cb.settings.slang1,cb.settings.replace).replace(cb.settings.slang1,cb.settings.replace).replace(cb.settings.slang1,cb.settings.replace).replace(cb.settings.slang1,cb.settings.replace).replace(cb.settings.slang2,cb.settings.replace2).replace(cb.settings.slang1,cb.settings.replace); msg.m = n2; } // highlight leader if ((cb.settings.highlight == 'yes') && (msg.user == leader_username)) { msg.background = CONFIG_COLOR_LEADER; } // schedule interval if (update_counter == 0){ scheduleInterval(); } if (!msg['X-Spam']){ silent_room = false; } return msg; }); cb.onTip(function (tip) { handleTip(tip.amount, tip.from_user); scheduleUpdate(); silent_room = false; var amountTipped = parseInt(tip['amount']); if (amountTipped == cb.settings.briMinTip && !isbri(tip['from_user'])) { // Make Brinaholic and announce it var announcement = cb.settings.briAnnounce.replace("MEMBERNAME", tip['from_user']); makebri(tip['from_user']); for (var i = 0; i < cb.settings.briRainCount; i++) { cb.sendNotice(cb.settings.briRainText); } cb.sendNotice(announcement); } if (amountTipped == cb.settings.peMinTip) { // Make Perv and announce it var announcement = cb.settings.peAnnounce.replace("MEMBERNAME", tip['from_user']); makepe(tip['from_user']); for (var i = 0; i < cb.settings.peRainCount; i++) { cb.sendNotice(cb.settings.peRainText); } cb.sendNotice(announcement); } if (amountTipped == cb.settings.spiMinTip) { // Make Unicorn and announce it var announcement = cb.settings.suniAnnounce.replace("MEMBERNAME", tip['from_user']); makeuni(tip['from_user']); for (var i = 0; i < cb.settings.uniRainCount; i++) { cb.sendNotice(cb.settings.uniRainText); } cb.sendNotice(announcement); } if (amountTipped == cb.settings.suMinTip) { // Make Superman and announce it var announcement = cb.settings.suAnnounce.replace("MEMBERNAME", tip['from_user']); makesu(tip['from_user']); for (var i = 0; i < cb.settings.suRainCount; i++) { cb.sendNotice(cb.settings.suRainText); } cb.sendNotice(announcement); } if (amountTipped == cb.settings.batMinTip) { // Make Batman and announce it var announcement = cb.settings.batAnnounce.replace("MEMBERNAME", tip['from_user']); makebat(tip['from_user']); for (var i = 0; i < cb.settings.batRainCount; i++) { cb.sendNotice(cb.settings.batRainText); } cb.sendNotice(announcement); } if (amountTipped == cb.settings.iroMinTip) { // Make Iron Man and announce it var announcement = cb.settings.iroAnnounce.replace("MEMBERNAME", tip['from_user']); makeiro(tip['from_user']); for (var i = 0; i < cb.settings.iroRainCount; i++) { cb.sendNotice(cb.settings.iroRainText); } cb.sendNotice(announcement); } if (amountTipped == cb.settings.huMinTip) { // Make Hulk and announce it var announcement = cb.settings.huAnnounce.replace("MEMBERNAME", tip['from_user']); makehu(tip['from_user']); for (var i = 0; i < cb.settings.huRainCount; i++) { cb.sendNotice(cb.settings.huRainText); } cb.sendNotice(announcement); } }); cb.onEnter(function(user) { cb.sendNotice('welcome in my room, ' + user['user'] + '. please take a moment and check out my bio below and have a look on my rules ... my room is a tip to talk room ... ive my reasons for that', user['user'], '#Ff99cc', '', 'bold'); }); // functions function handleTip(amount, user) { user_total_tips[user] = (user_total_tips[user] || 0) + amount; user_last_tip_time[user] = new Date().valueOf(); } function sortLeaderboard(){ var lb = []; for (var user in user_total_tips) { if (user_total_tips.hasOwnProperty(user)){ lb.push([user_total_tips[user], -user_last_tip_time[user], user]); } } if (lb.length > 0){ lb.sort(function(a, b){ var r,i; for (i=0; i < a.length; i++){ if (a[i] < b[i]){ return 1; } if (a[i] > b[i]){ return -1; } } return 0; }); leader_username = lb[0][2]; } return lb; } function formatRanking(leaderboard, rank){ if (rank < leaderboard.length) { var p = leaderboard[rank]; return p[2] + ' (' + p[0] + ' token' + (p[0]!=1 ? 's' : '') + ')'; } else { return '--'; } } function getTop3(leaderboard){ var rank, result=''; for (rank=0; rank<3; rank++){ if (rank>0){ result += '|'; } if (rank < leaderboard.length){ result += leaderboard[rank][2]; } } return result; } function sendLeaderboard(force, to_user) { var lb = sortLeaderboard(), l = to_user ? lb.length : 3, out = 'Tippers leaderboard'; if (!force) { var top3 = getTop3(lb); if (top3 == last_top3){ return; } last_top3 = top3; } if (l<3) { l=3; } if (l < lb.length) { out += ' top 3 (Type !lb to see the full leaderboard)'; } if (to_user){ out += ' [v' + VERSION+']'; } for (var rank=0; rank<l; rank++) { out += NL + '' + (rank+1) + '. ' + formatRanking(lb, rank); } cb.chatNotice(out, to_user); if (!to_user){ scheduleInterval(); } } function scheduleUpdate(){ var print_on_tip = cb.settings.print_on_tip; if (print_on_tip != 'never') { var counter = ++update_counter; cb.setTimeout(function(){ if (update_counter == counter){ sendLeaderboard(print_on_tip == 'always'); } }, UPDATE_TIME); } } function scheduleInterval(){ var interval = cb.settings.print_interval; if (interval > 0) { var counter = ++interval_counter; cb.setTimeout(function(){ if (interval_counter == counter){ sendLeaderboard(!silent_room); } }, interval*INTERVAL_MULTIPLIER); silent_room = true; } } function init(){ } function isbri(username) { return (username in briMembers); } function ispe(username) { return (username in peMembers); } function isuni(username) { return (username in uniMembers); } function issu(username) { return (username in suMembers); } function isbat(username) { return (username in batMembers); } function isiro(username) { return (username in iroMembers); } function ishu(username) { return (username in huMembers); } function makebri(username) { briMembers[username] = {'u': 1}; } function makepe(username) { peMembers[username] = {'u': 1}; } function makeuni(username) { uniMembers[username] = {'u': 1}; } function makesu(username) { suMembers[username] = {'u': 1}; } function makebat(username) { batMembers[username] = {'u': 1}; } function makeiro(username) { iroMembers[username] = {'u': 1}; } function makehu(username) { huMembers[username] = {'u': 1}; } function grabSettings() { cb.log("starting grabbing settings"); // Get Perv members if (cb.settings.peMemberList) { var peMemberSettings = cb.settings.peMemberList.split(','); for (var ii = 0; ii < peMemberSettings.length; ii++) { var clean = peMemberSettings[ii].toLowerCase().replace(/ /g,""); peMembers[clean] = {'u': 1}; } } // Get Brinaholics if (cb.settings.briMemberList) { var briMemberSettings = cb.settings.briMemberList.split(','); for (var ii = 0; ii < briMemberSettings.length; ii++) { var clean = briMemberSettings[ii].toLowerCase().replace(/ /g,""); briMembers[clean] = {'u': 1}; } } // Get Unicorn if (cb.settings.uniMemberList) { var uniMemberSettings = cb.settings.uniMemberList.split(','); for (var ii = 0; ii < uniMemberSettings.length; ii++) { var clean = uniMemberSettings[ii].toLowerCase().replace(/ /g,""); uniMembers[clean] = {'u': 1}; } } // Get Superman if (cb.settings.suMemberList) { var suMemberSettings = cb.settings.suMemberList.split(','); for (var ii = 0; ii < suMemberSettings.length; ii++) { var clean = suMemberSettings[ii].toLowerCase().replace(/ /g,""); suMembers[clean] = {'u': 1}; } } // Get Batman if (cb.settings.batMemberList) { var batMemberSettings = cb.settings.batMemberList.split(','); for (var ii = 0; ii < batMemberSettings.length; ii++) { var clean = batMemberSettings[ii].toLowerCase().replace(/ /g,""); batMembers[clean] = {'u': 1}; } } // Get Iron Man if (cb.settings.iroMemberList) { var iroMemberSettings = cb.settings.iroMemberList.split(','); for (var ii = 0; ii < iroMemberSettings.length; ii++) { var clean = iroMemberSettings[ii].toLowerCase().replace(/ /g,""); iroMembers[clean] = {'u': 1}; } } // Get Hulk if (cb.settings.huMemberList) { var huMemberSettings = cb.settings.huMemberList.split(','); for (var ii = 0; ii < huMemberSettings.length; ii++) { var clean = huMemberSettings[ii].toLowerCase().replace(/ /g,""); huMembers[clean] = {'u': 1}; } } cb.log("finished grabbing settings"); } grabSettings();
© Copyright Chaturbate 2011- 2026. All Rights Reserved.