Bots Home
|
Create an App
Mferbot
Author:
thatmfer
Description
Source Code
Launch Bot
Current Users
Created by:
Thatmfer
// CB app settings cb.settings_choices = [ {name: 'doColoring', type: 'choice', label: 'Change text and background coloring for members (choose colors 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'}, //Team Blaze {name: 'tbText', label: 'Text to put in front of Team Blaze messages (e.g. tb), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'Team Blaze'}, {name: 'tbTextColor', label: 'Team Blaze text color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000'}, {name: 'tbBGColor', label: 'Team Blaze background color - HTML colour code without starting \'#\' e.g. (7FFF00 is chartreuse)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'fdc7df'}, {name: 'tbMinTip', label: 'Minimum tip to become Team Blaze', type: 'int', minValue: 1, defaultValue: 420}, {name: 'tbAnnounce', label: 'Text to show when someone tips to become a Team Blaze, 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 Blew My Mind!'}, {name: 'tbMemberList', label: 'List of current Team Blaze, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue:'alvorton, buckwild3, joemco, shadowninja22855, jmoore007, bhr8149, txsweetheart11, muffinman860, dragoon4you, sargesm, mike_d1987, jenko205, chaoslordwot, hawaii_in_pdx, danthony011, trix_eater, thepepesilvia, englishgent86, larthon, peace_rude, sirstickenz, jaybird32323, teck1234, alannarack, muffinman86, frost_bite42, lilbrent12, charlesking, hustleman2000, jon_jon89, RASERDOR, RIZALT, REDBONES74, SENBLUTARSKY69, AUSSIEMOTHERBITCH, THORIN00007, ITZTHETY, THORIN007, WACKYSMACKS, SIRXR6T, THEBIGASSHOLE, GABI_BRASIL, RANDYRHODESLIVES, SWIFTEE1, BRISTOLTEMPLEMEADS, BUTTERKING69, TONY3841, WHODEY07, METALSHEEP, BLASTYBLAST, NCGRAD2011, MIKEY2279, SHIVAN40, FAST_EDDIE_78, MEMO281, NATIVEPRIDE1986, NUMB_NUTS, FOR_I_AM_THE_D, PAVELCZ, RANDOMGUY111111, YORETLAH, DARRYPRODUCTS, ALDOGABD, DVSONE118, LONGDONGSILVERS2015, PANDABEAR2285, SPANKME352, THEBRANDON85, BLVCK, AMPSON1, CGYFLAME, MASTERLEOS, WIMSY12345, HARDNSHAVED27, GENNEANNA, GABNERD HUSTLEMAN2000, FILLERUPWITHTOYS1' }, {name: 'tbRainText', label: 'Text to use for 420 Club rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'WOW!! Thank you!!!!'}, {name: 'tbRainCount', label: 'Number of lines of Team Blaze rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 7}, //King Club {name: 'kcText', label: 'Text to put in front of King Club messages (e.g. kc)', type: 'str', minLength: 0, maxLength: 12, required: false, defaultValue: 'King'}, {name: 'kcTextColor', label: 'King Club text color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000'}, {name: 'kcBGColor', label: 'King Club background color - HTML colour code without starting \'#\' e.g. (1E90FF is dodger blue)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '1E90FF'}, {name: 'kcMinTip', label: 'Minimum tip to become a King Club', type: 'int', minValue: 1, defaultValue: 1000}, {name: 'kcAnnounce', label: 'Text to show when someone tips to become a King Club, 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 Mother Fucking KING!'}, {name: 'kcMemberList', label: 'List of current King Club, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'kcRainText', label: 'Text to use for King Club rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'KING KING KING FUCK YEAH!'}, {name: 'kcRainCount', label: 'Number of lines of King Club rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 6}, //God Club {name: 'gcText', label: 'Text to put in front of God messages (e.g. gc)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: 'God'}, {name: 'gcTextColor', label: 'God text color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000'}, {name: 'gcBGColor', label: 'God background color - HTML colour code without starting \'#\' e.g. (CD8EFF is purple)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'CD8EFF'}, {name: 'gcMinTip', label: 'Minimum tip to become God', type: 'int', minValue: 1, defaultValue: 5000}, {name: 'gcAnnounce', label: 'Text to show when someone tips to become a God, 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 Room God! FUCK YEAH!'}, {name: 'gcMemberList', label: 'List of current Gods, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'Sirkasm'}, {name: 'gcRainText', label: 'Text to use for God rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'Room God Room God Room God FUCK YEAH!'}, {name: 'gcRainCount', label: 'Number of lines of Gods rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 15}, //EpicGod Club {name: 'egcText', label: 'Text to put in front of God messages (e.g. egc)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: 'EpicGod'}, {name: 'egcTextColor', label: 'God text color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000'}, {name: 'egcBGColor', label: 'God background color - HTML colour code without starting \'#\' e.g. (CD8EFF is purple)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'CD8EFF'}, {name: 'egcMinTip', label: 'Minimum tip to become God', type: 'int', minValue: 1, defaultValue: 10000}, {name: 'egcAnnounce', label: 'Text to show when someone tips to become a EpicGod, 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 Epic God! FUCK YEAH!'}, {name: 'egcMemberList', label: 'List of current EpicGods, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'Disturbed13'}, {name: 'egcRainText', label: 'Text to use for God rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'Room God Room God Room God FUCK YEAH!'}, {name: 'egcRainCount', label: 'Number of lines of Gods rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 15}, ]; var tbMembers = {}; var kcMembers = {}; var gcMembers = {}; var egcMembers = {}; var tbNotice = "Join MFer’s militia for 420 tokens and/or fanclub membership or become a general for 999 tokens"; // For auto-silencing at least some of token_wh*re_c*nts usernames var twcRegex = /t.?k.?n.?wh.?r.?_c.?nt.?/i; function showtbNotice(){ cb.chatNotice(tbNotice); cb.setTimeout(showtbNotice,900000); } cb.onMessage(function (msg) { // vars for ease of use var u = msg['user']; if (isTB(u)) { msg['background'] = '#' + cb.settings.tbBGColor; msg['c'] = '#' + cb.settings.tbTextColor; msg['m'] = "[" + cb.settings.tbText + "] " + msg['m']; } else if (isKC(u)) { msg['background'] = '#' + cb.settings.kcBGColor; msg['c'] = '#' + cb.settings.kcTextColor; msg['m'] = "[" + cb.settings.kcText + "] " + msg['m']; } else if (isGC(u)) { msg['background'] = '#' + cb.settings.gcBGColor; msg['c'] = '#' + cb.settings.gcTextColor; msg['m'] = "[" + cb.settings.gcText + "] " + msg['m']; } else if (isEGC(u)) { msg['background'] = '#' + cb.settings.egcBGColor; msg['c'] = '#' + cb.settings.egcTextColor; msg['m'] = "[" + cb.settings.egcText + "] " + msg['m']; } if (twcRegex.test(u)) { // Auto-silencing at least some of token_wh*re_c*nts usernames msg['X-Spam'] = true; } return msg; }); cb.onTip(function (tip) { var amountTipped = parseInt(tip['amount']); if (amountTipped == cb.settings.tbMinTip && !isTB(tip['from_user'])) { // Make Team Blaze and announce it var announcement = cb.settings.tbAnnounce.replace("MEMBERNAME", tip['from_user']); makeTB(tip['from_user']); for (var i = 0; i < cb.settings.tbRainCount; i++) { cb.sendNotice(cb.settings.tbRainText); } cb.sendNotice(announcement); } else if (amountTipped == cb.settings.kcMinTip && !isKC(tip['from_user'])) { // Make Kings Club and announce it var announcement = cb.settings.kcAnnounce.replace("MEMBERNAME", tip['from_user']); makeKC(tip['from_user']); for (var i = 0; i < cb.settings.kcRainCount; i++) { cb.sendNotice(cb.settings.kcRainText); } cb.sendNotice(announcement); } else if (amountTipped == cb.settings.gcMinTip && !isGC(tip['from_user'])) { // Make God Club and announce it var announcement = cb.settings.gcAnnounce.replace("MEMBERNAME", tip['from_user']); makeGC(tip['from_user']); for (var i = 0; i < cb.settings.gcRainCount; i++) { cb.sendNotice(cb.settings.gcRainText); } cb.sendNotice(announcement); } else if (amountTipped == cb.settings.egcMinTip && !isEGC(tip['from_user'])) { // Make Epic God Club and announce it var announcement = cb.settings.egcAnnounce.replace("MEMBERNAME", tip['from_user']); makeEGC(tip['from_user']); for (var i = 0; i < cb.settings.egcRainCount; i++) { cb.sendNotice(cb.settings.egcRainText); } cb.sendNotice(announcement); } }); function isTB(username) {return (username in tbMembers);} function isKC(username) {return (username in kcMembers);} function isGC(username) {return (username in gcMembers);} function isEGC(username) {return (username in egcMembers);} function makeTB(username){tbMembers[username] = {'u': 1};} function makeKC(username){kcMembers[username] = {'u': 1};} function makeGC(username){gcMembers[username] = {'u': 1};} function makeEGC(username){EgcMembers[username] = {'u': 1};} function grabSettings() {cb.log("starting grabbing settings"); // Get Team Blaze if (cb.settings.tbMemberList) { var tbMemberSettings = cb.settings.tbMemberList.split(','); for (var ii = 0; ii < tbMemberSettings.length; ii++) { var clean = tbMemberSettings[ii].toLowerCase().replace(/ /g, ""); tbMembers[clean] = {'u': 1};}} // Get King Club if (cb.settings.kcMemberList) { var kcMemberSettings = cb.settings.kcMemberList.split(','); for (var ii = 0; ii < kcMemberSettings.length; ii++) { var clean = kcMemberSettings[ii].toLowerCase().replace(/ /g, ""); kcMembers[clean] = {'u': 1};}} // Get God Club if (cb.settings.gcMemberList) { var gcMemberSettings = cb.settings.gcMemberList.split(','); for (var ii = 0; ii < gcMemberSettings.length; ii++) { var clean = gcMemberSettings[ii].toLowerCase().replace(/ /g, ""); gcMembers[clean] = {'u': 1};}} // Get Epic God Club if (cb.settings.egcMemberList) { var egcMemberSettings = cb.settings.egcMemberList.split(','); for (var ii = 0; ii < egcMemberSettings.length; ii++) { var clean = egcMemberSettings[ii].toLowerCase().replace(/ /g, ""); egcMembers[clean] = {'u': 1};}} cb.log("finished grabbing settings");} grabSettings(); showtbNotice();
© Copyright Chaturbate 2011- 2026. All Rights Reserved.