Bots Home
|
Create an App
JackplusJill Bot
Author:
brave_bitch
Description
Source Code
Launch Bot
Current Users
Created by:
Brave_Bitch
// 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'}, //jpj-mod {name: 'jpjmText', label: 'Text to put in front of mods messages (e.g. jpjm), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 100, required: false, defaultValue: 'MOD'}, {name: 'jpjmTextColor', label: 'mods text color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000'}, {name: 'jpjmGColor', label: 'mods background color - HTML colour code without starting \'#\' e.g. (7FFF00 is chartreuse)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'ffffff'}, {name: 'jpjmMemberList', label: 'List of current mods, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue:'Brave_bitch, alannarack, rwt214, luckboy100 ' }, //King {name: 'jpjfText', label: 'Text to put in front of fanclub messages (e.g. jpjm), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 100, required: false, defaultValue: 'Fan-Club'}, {name: 'jpjfTextColor', label: 'fanclub text color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000'}, {name: 'jpjfBGColor', label: 'fanclub background color - HTML colour code without starting \'#\' e.g. (7FFF00 is chartreuse)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'ffffff'}, {name: 'jpjfMemberList', label: 'List of current fanclub, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue:'_iron_man, bobw3006, delany64, jkmbb, jonsj600, lewdreed' }, ]; var jpjmMembers = {}; var jpjfMembers = {}; var jpjNotice = "JOIN OUR FAN CLUB"; // For auto-silencing at least some of token_wh*re_c*nts usernames var twcRegex = /t.?k.?n.?wh.?r.?_c.?nt.?/i; function showjpjNotice(){ cb.chatNotice(jpjNotice, '', '#f5f5f5', '#000000', 'bolder'); cb.setTimeout(showjpjNotice,300000); } cb.onMessage(function (msg) { // vars for ease of use var u = msg['user']; if (isjpjm(u)) { msg['background'] = '#' + cb.settings.pkGColor; msg['c'] = '#' + cb.settings.jpjmTextColor; msg['m'] = "[" + cb.settings.jpjmText + "] " + msg['m']; } else if (isjpjf(u)) { msg['background'] = '#' + cb.settings.pkBGColor; msg['c'] = '#' + cb.settings.jpjfTextColor; msg['m'] = "[" + cb.settings.jpjfText + "] " + msg['m']; } if (twcRegex.test(u)) { // Auto-silencing at least some of token_wh*re_c*nts usernames msg['X-Spam'] = true; } return msg; }); function isjpjm(username) {return (username in jpjmMembers);} function isjpjf(username) {return (username in jpjfMembers);} function makejpjm(username){jpjmMembers[username] = {'u': 1};} function makejpjf(username){jpjfMembers[username] = {'u': 1};} function grabSettings() {cb.log("starting grabbing settings"); // mods if (cb.settings.jpjmMemberList) { var jpjmMemberSettings = cb.settings.jpjmMemberList.split(','); for (var ii = 0; ii < jpjmMemberSettings.length; ii++) { var clean = jpjmMemberSettings[ii].toLowerCase().replace(/ /g, ""); jpjmMembers[clean] = {'u': 1};}} // fan if (cb.settings.jpjfMemberList) { var jpjfMemberSettings = cb.settings.jpjfMemberList.split(','); for (var ii = 0; ii < jpjfMemberSettings.length; ii++) { var clean = jpjfMemberSettings[ii].toLowerCase().replace(/ /g, ""); jpjfMembers[clean] = {'u': 1};}} cb.log("finished grabbing settings");} grabSettings(); showjpjNotice() ;
© Copyright Chaturbate 2011- 2026. All Rights Reserved.