Apps Home
|
Create an App
White Rabbit Club
Author:
nymph3tamine
Description
Source Code
Launch App
Current Users
Created by:
Nymph3tamine
// Ashleyvex bot // CB app settings cb.settings_choices = [ { name: 'doColoring', type: 'choice', label: 'Change text and background coloring for Unicorns & Unicornland (choose colours below)?', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes' }, { name: 'doText', type: 'choice', label: 'Add text labels in front of Unicorns & Unicornland messages (choose text below)?', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes' }, { name: 'aaText', label: 'Text to put in front of Unicornland members messages (e.g. Unicornland), the text will be put inside square brackets [ ]', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'Unicornland' }, { name: 'aaIcon', label: 'Icon to put in front of Unicornland members messages', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'smile' }, { name: 'aaMinTip', label: 'Minimum tip to become Unicornland member', type: 'int', minValue: 1, defaultValue: 999 }, { name: 'aaAnnounce', label: 'Text to show when someone tips to become a Unicornland 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 Unicornland <3 <3' }, { name: 'aaRainText', label: 'Text to use for Unicornland rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: '<3 <3 999 <3 <3 UNICORNLAND <3 <3 999 <3 <3' }, { name: 'aaRainCount', label: 'Number of lines of Unicornland rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 10 }, { name: 'aaTextColor', label: 'Unicornland members text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000' }, { name: 'aaBGColor', label: 'Unicornland members background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'CCCCFF' }, { name: 'aaMemberList', label: 'List of current Unicornland members, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: '' }, { name: 'abText', label: 'Text to put in front of Queen Unicorns messages (e.g. QU), the text will be put inside square brackets [ ]', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'Queen Unicorn' }, { name: 'abIcon', label: 'Icon to put in front of Queen Unicorn members messages', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'smile' }, { name: 'abTextColor', label: 'Queen Unicorns text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000' }, { name: 'abBGColor', label: 'Queen Unicorns background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'fbccff' }, { name: 'abMemberList', label: 'List of current Queen Unicorns users, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'ashleyvex' }, { name: 'acText', label: 'Text to put in front of Golden Unicorns messages (e.g. GU), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'Golden Unicorn' }, { name: 'acIcon', label: 'Icon to put in front of Golden Unicorn members messages', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'smile' }, { name: 'acMinTip', label: 'Minimum tip to become Golden Unicorns member', type: 'int', minValue: 1, defaultValue: 999 }, { name: 'acAnnounce', label: 'Text to show when someone tips to become a Golden Unicorns 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 Golden Unicorns <3 <3' }, { name: 'acRainText', label: 'Text to use for Golden Unicorns rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: '<3 <3 9999 <3 <3 Golden Unicorns <3 <3 9999 <3 <3' }, { name: 'acRainCount', label: 'Number of lines of Golden Unicorns rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 10 }, { name: 'acTextColor', label: 'Golden Unicorns text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000' }, { name: 'acBGColor', label: 'Golden Unicorns background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'ffefcc' }, { name: 'acMemberList', label: 'List of current Golden Unicorns users, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'wowguy1165' }, { name: 'adText', label: 'Text to put in front of Invited messages (e.g. GU), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'Invited' }, { name: 'adIcon', label: 'Icon to put in front of Invited members messages', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'smile' }, { name: 'adMinTip', label: 'Minimum tip to become Invited member', type: 'int', minValue: 1, defaultValue: 999 }, { name: 'adAnnounce', label: 'Text to show when someone tips to become a Invited 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 Invited <3 <3' }, { name: 'adRainText', label: 'Text to use for Invited rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: '<3 <3 1244 <3 <3 Invited <3 <3 1244 <3 <3' }, { name: 'adRainCount', label: 'Number of lines of Invited rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 10 }, { name: 'adTextColor', label: 'Invited text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000' }, { name: 'adBGColor', label: 'Invited background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'ffefcc' }, { name: 'adMemberList', label: 'List of current Invited users, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: '' }, { name: 'aeText', label: 'Text to put in front of VIP messages (e.g. GU), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'VIP' }, { name: 'aeIcon', label: 'Icon to put in front of VIP members messages', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'smile' }, { name: 'aeMinTip', label: 'Minimum tip to become VIP member', type: 'int', minValue: 1, defaultValue: 999 }, { name: 'aeAnnounce', label: 'Text to show when someone tips to become a VIP 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 VIP <3 <3' }, { name: 'aeRainText', label: 'Text to use for VIP rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: '<3 <3 2444 <3 <3 VIP <3 <3 2444 <3 <3' }, { name: 'aeRainCount', label: 'Number of lines of VIP rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 10 }, { name: 'aeTextColor', label: 'VIP text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000' }, { name: 'aeBGColor', label: 'VIP background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'ffefcc' }, { name: 'aeMemberList', label: 'List of current VIP users, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: '' }, { name: 'afText', label: 'Text to put in front of Custom One messages (e.g. GU), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'Custom One' }, { name: 'afIcon', label: 'Icon to put in front of Custom One members messages', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'smile' }, { name: 'afTextColor', label: 'Custom One text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000' }, { name: 'afBGColor', label: 'Custom One background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'ffefcc' }, { name: 'afMemberList', label: 'List of current Custom One users, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: '' }, { name: 'agText', label: 'Text to put in front of Custom Two messages (e.g. GU), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'Custom Two' }, { name: 'agIcon', label: 'Icon to put in front of Custom Two members messages', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'smile' }, { name: 'agTextColor', label: 'Custom Two text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000' }, { name: 'agBGColor', label: 'Custom Two background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'ffefcc' }, { name: 'agMemberList', label: 'List of current Custom Two users, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: '' }, { name: 'ahText', label: 'Text to put in front of Custom Three messages (e.g. GU), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'Custom Three' }, { name: 'ahIcon', label: 'Icon to put in front of Custom Three members messages', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'smile' }, { name: 'ahTextColor', label: 'Custom Three text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000' }, { name: 'ahBGColor', label: 'Custom Three background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'ffefcc' }, { name: 'ahMemberList', label: 'List of current Custom Three users, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: '' }, { name: 'aiText', label: 'Text to put in front of Custom Four messages (e.g. GU), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'Custom Four' }, { name: 'aiIcon', label: 'Icon to put in front of Custom Four members messages', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'smile' }, { name: 'aiTextColor', label: 'Custom Four text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000' }, { name: 'aiBGColor', label: 'Custom Four background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'ffefcc' }, { name: 'aiMemberList', label: 'List of current Custom Four users, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: '' }, { name: 'ajText', label: 'Text to put in front of Custom Five messages (e.g. GU), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'Custom Five' }, { name: 'ajIcon', label: 'Icon to put in front of Custom Five members messages', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'smile' }, { name: 'ajTextColor', label: 'Custom Five text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000' }, { name: 'ajBGColor', label: 'Custom Five background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'ffefcc' }, { name: 'ajMemberList', label: 'List of current Custom Five users, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: '' }, { name: 'akText', label: 'Text to put in front of Custom Six messages (e.g. GU), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'Custom Six' }, { name: 'akIcon', label: 'Icon to put in front of Custom six members messages', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'smile' }, { name: 'akTextColor', label: 'Custom Six text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000' }, { name: 'akBGColor', label: 'Custom Six background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'ffefcc' }, { name: 'akMemberList', label: 'List of current Custom Six users, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: '' }, { name: 'alText', label: 'Text to put in front of Custom 7 messages (e.g. GU), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'Custom 7' }, { name: 'alIcon', label: 'Icon to put in front of Custom 7 members messages', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'smile' }, { name: 'alTextColor', label: 'Custom 7 text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000' }, { name: 'alBGColor', label: 'Custom 7 background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'ffefcc' }, { name: 'alMemberList', label: 'List of current Custom 7 users, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: '' }, { name: 'amText', label: 'Text to put in front of Custom 8 messages (e.g. GU), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'Custom 8' }, { name: 'amIcon', label: 'Icon to put in front of Custom 8 members messages', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'smile' }, { name: 'amTextColor', label: 'Custom 8 text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000' }, { name: 'amBGColor', label: 'Custom 8 background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'ffefcc' }, { name: 'amMemberList', label: 'List of current Custom 8 users, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: '' }, { name: 'anText', label: 'Text to put in front of Ashley Fans messages (e.g. GU), the text will be put inside square brackets []', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'Unicorn' }, { name: 'anIcon', label: 'Icon to put in front ofAshley Fans messages', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: 'smile' }, { name: 'anTextColor', label: 'Ashley Fans text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '000000' }, { name: 'anBGColor', label: 'Ashley Fans background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'ffcccc' }, { name: 'anMemberList', label: 'List of current Ashley Fans, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: '' }, { name: 'bothTextColor', label: 'Unicornland & Invited text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '041C05' }, { name: 'bothBGColor', label: 'Unicornland & Invited background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '36BA38' }, { name: 'tripTextColor', label: 'Unicornland & Invited & VIP text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '041C05' }, { name: 'tripBGColor', label: 'Unicornland & Invited & VIP background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '36BA38' }, { name: 'quadTextColor', label: 'Unicornland & Invited & VIP & Gold text color - HTML colour code without starting \'#\' e.g. (FFFFFF is white)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '041C05' }, { name: 'quadBGColor', label: 'Unicornland & Invited & VIP & Gold background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '36BA38' }, { name: 'min_start_tokens', type: 'int', minValue: 1, maxValue: 1000, defaultValue: 100, label: "Cost to Join Before Show Starts" }, { name: 'min_join_tokens', type: 'int', minValue: 0, maxValue: 1000, defaultValue: 150, label: "Cost to Join During Show. Set to 0 to Disable Joining During Show." }, { name: 'hide_message', label: 'Cam Message', type: 'str', minLength: 1, maxLength: 256, defaultValue: 'Secret Show in progress! Tip at least 150 tokens to join in on the fun! animals just need to say Hi' }, {name: 'show_notifications', label: 'Show notification when show access is made?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes' }, {name: 'fan_clubs_in', label: 'Are fan club members always in?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes' } ]; var aaMembers = {}; var abMembers = {}; var acMembers = {}; var adMembers = {}; var aeMembers = {}; var afMembers = {}; var agMembers = {}; var ahMembers = {}; var aiMembers = {}; var ajMembers = {}; var akMembers = {}; var alMembers = {}; var amMembers = {}; var anMembers = {}; // var CONFIG_AD_MINUTES = 8; // var CONFIG_ADS_MINUTES = 5; // 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) { // vars for ease of use var u = msg['user']; var message = msg['m']; var user = msg['user']; var username = ""; if (cb.room_slug === user && message == '/start' && !cb.limitCam_isRunning()) { output(cb.room_slug + ' has started the show!'); // cb.changeRoomSubject(cb.settings.hide_message); cb.limitCam_start(cb.settings.hide_message); } if (cb.room_slug === user && message == '/stop' && cb.limitCam_isRunning()) { output(cb.room_slug + ' has stopped the show!'); cb.limitCam_stop(); } if (cb.room_slug === user && message.substring(0, 7) == '/remove' && cb.limitCam_allUsersWithAccess().length > 0 ) { username = message.substring(8, message.length); if (cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), username)) { cb.limitCam_removeUsers([username]); output(cb.room_slug + ' has removed ' + username + ' from the show!'); } } if (cb.room_slug === user && message.substring(0, 4) == '/add') { username = message.substring(5, message.length); if (cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), username)) {} else { cb.limitCam_addUsers([username]); cb.chatNotice('Added ' + username + ' to secret show', username); cb.chatNotice('Added ' + username + ' to secret show', cb.room_slug); } } if (cb.room_slug === user && message.substring(0, 6) == '/check') { username = message.substring(7, message.length); if (cb.limitCam_userHasAccess(username)) { output(username + " is in the show!"); } else { output(username + " is not in the show!"); } } if (cb.room_slug === user && message === '/list') { var userlist = cb.limitCam_allUsersWithAccess(); if (userlist.length > 0) { output("" + userlist.length + (userlist.length > 1 ? " users" : " user") + " in show: " + cbjs.arrayJoin(userlist, ", ")); } else { output("No users in show."); } } if ( isUL(u) && isAF(u) ) { msg['background'] = '#' + cb.settings.bothBGColor; msg['c'] = '#' + cb.settings.bothTextColor; msg['m'] = "[" +cb.settings.ulText+" / "+ cb.settings.afText + "] " + msg['m']; if (cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), user)) { } else { cb.limitCam_addUsers([user]); if (cb.settings.show_notifications == 'Yes' ){ cb.chatNotice('Added ' + username + ' to secret show', username); cb.chatNotice('Added ' + username + ' to secret show', cb.room_slug); }; } } else if ( isUL(u) ) { msg['background'] = '#' + cb.settings.ulBGColor; msg['c'] = '#' + cb.settings.ulTextColor; msg['m'] = "[" + cb.settings.ulText + "] " + msg['m']; if (cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), user)) { } else { cb.limitCam_addUsers([user]); if (cb.settings.show_notifications == 'Yes' ){ cb.chatNotice('Added ' + username + ' to secret show', username); cb.chatNotice('Added ' + username + ' to secret show', cb.room_slug); }; } } else if ( isAV(u) ) { msg['background'] = '#' + cb.settings.avBGColor; msg['c'] = '#' + cb.settings.avTextColor; msg['m'] = "[" + cb.settings.avText + "] " + msg['m']; if (cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), user)) { } else { cb.limitCam_addUsers([user]); if (cb.settings.show_notifications == 'Yes' ){ cb.chatNotice('Added ' + username + ' to secret show', username); cb.chatNotice('Added ' + username + ' to secret show', cb.room_slug); }; } } else if ( isWG(u) ) { msg['background'] = '#' + cb.settings.wgBGColor; msg['c'] = '#' + cb.settings.wgTextColor; msg['m'] = "[" + cb.settings.wgText + "] " + msg['m']; if (cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), user)) { } else { cb.limitCam_addUsers([user]); if (cb.settings.show_notifications == 'Yes' ){ cb.chatNotice('Added ' + username + ' to secret show', username); cb.chatNotice('Added ' + username + ' to secret show', cb.room_slug); }; } } else if ( isAF(u) ) { if (cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), user)) { } else { cb.limitCam_addUsers([user]); if (cb.settings.show_notifications == 'Yes' ){ cb.chatNotice('Added ' + username + ' to secret show', username); cb.chatNotice('Added ' + username + ' to secret show', cb.room_slug); }; } msg['background'] = '#' + cb.settings.afBGColor; msg['c'] = '#' + cb.settings.afTextColor; msg['m'] = "[" + cb.settings.afText + "] " + msg['m']; } if (twcRegex.test(u)){ // Auto-silencing at least some of token_wh*re_c*nts usernames msg['X-Spam'] = true; } if (message[0] == '/') { msg['X-Spam'] = true; } return msg; }); cb.onTip(function (tip) { var amountTipped = parseInt(tip['amount']); if (!cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), tip['from_user'])) { if(!cb.limitCam_isRunning() && parseInt(tip['amount']) >= cb.settings.min_start_tokens) { cb.limitCam_addUsers([tip['from_user']]); if (cb.settings.show_notifications == 'Yes' ){ output('Added '+ tip['from_user'] + ' to secret show!'); } } if(cb.limitCam_isRunning() && parseInt(tip['amount']) >= cb.settings.min_join_tokens && cb.settings.min_join_tokens > 0) { cb.limitCam_addUsers([tip['from_user']]); if (cb.settings.show_notifications == 'Yes' ){ output('Added '+ tip['from_user'] + ' to secret show!'); } } } if (amountTipped == cb.settings.ulMinTip) { // Make WhiteRabbitClub and announce it var announcement = cb.settings.ulAnnounce.replace("MEMBERNAME", tip['from_user']); makeUL(tip['from_user']); for (var i = 0; i < cb.settings.ulRainCount; i++) { cb.chatNotice(cb.settings.ulRainText); } cb.chatNotice(announcement); } }); cb.onMessage(function (msg) { // vars for ease of use var u = msg['user']; if ( isAN(u) ) { msg['background'] = '#' + cb.settings.anBGColor; msg['c'] = '#' + cb.settings.anTextColor; msg['m'] = ':' + cb.settings.anIcon + " " + msg['m']; } else if ( isAM(u) ) { msg['background'] = '#' + cb.settings.amBGColor; msg['c'] = '#' + cb.settings.amTextColor; msg['m'] = ':' + cb.settings.amIcon + " " + msg['m']; } else if ( isAL(u) ) { msg['background'] = '#' + cb.settings.alBGColor; msg['c'] = '#' + cb.settings.alTextColor; msg['m'] = ':' + cb.settings.alIcon + " " + msg['m']; } else if ( isAK(u) ) { msg['background'] = '#' + cb.settings.akBGColor; msg['c'] = '#' + cb.settings.akTextColor; msg['m'] = ':' + cb.settings.akIcon + " " + msg['m']; } else if ( isAJ(u) ) { msg['background'] = '#' + cb.settings.ajBGColor; msg['c'] = '#' + cb.settings.ajTextColor; msg['m'] = ':' + cb.settings.ajIcon + " " + msg['m']; } else if ( isAI(u) ) { msg['background'] = '#' + cb.settings.aiBGColor; msg['c'] = '#' + cb.settings.aiTextColor; msg['m'] = ':' + cb.settings.aiIcon + " " + msg['m']; } else if ( isAH(u) ) { msg['background'] = '#' + cb.settings.ahBGColor; msg['c'] = '#' + cb.settings.ahTextColor; msg['m'] = ':' + cb.settings.ahIcon + " " + msg['m']; } else if ( isAG(u) ) { msg['background'] = '#' + cb.settings.agBGColor; msg['c'] = '#' + cb.settings.agTextColor; msg['m'] = ':' + cb.settings.agIcon + " " + msg['m']; } else if ( isAF(u) ) { msg['background'] = '#' + cb.settings.afBGColor; msg['c'] = '#' + cb.settings.afTextColor; msg['m'] = ':' + cb.settings.afIcon + " " + msg['m']; } else if ( isAE(u) ) { msg['background'] = '#' + cb.settings.aeBGColor; msg['c'] = '#' + cb.settings.aeTextColor; msg['m'] = ':' + cb.settings.aeIcon + " " + msg['m']; } else if ( isAD(u) ) { msg['background'] = '#' + cb.settings.adBGColor; msg['c'] = '#' + cb.settings.adTextColor; msg['m'] = ':' + cb.settings.adIcon + " " + msg['m']; } else if ( isAC(u) ) { msg['background'] = '#' + cb.settings.acBGColor; msg['c'] = '#' + cb.settings.acTextColor; msg['m'] = ':' + cb.settings.acIcon + " " + msg['m']; } else if ( isAB(u) ) { msg['background'] = '#' + cb.settings.abBGColor; msg['c'] = '#' + cb.settings.abTextColor; msg['m'] = ':' + cb.settings.abIcon + " " + msg['m']; } else if ( isAA(u) ) { msg['background'] = '#' + cb.settings.aaBGColor; msg['c'] = '#' + cb.settings.aaTextColor; msg['m'] = ':' + cb.settings.aaIcon + " " + 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.aaMinTip) { // Make Unicornland and announce it var announcement = cb.settings.aaAnnounce.replace("MEMBERNAME", tip['from_user']); makeAA(tip['from_user']); for (var i = 0; i < cb.settings.aaRainCount; i++) { cb.sendNotice(cb.settings.aaRainText); } cb.sendNotice(announcement); } }); function isAA(username) { return (username in aaMembers); } function isAB(username) { return (username in abMembers); } function isAC(username) { return (username in acMembers); } function isAD(username) { return (username in adMembers); } function isAE(username) { return (username in aeMembers); } function isAF(username) { return (username in afMembers); } function isAG(username) { return (username in agMembers); } function isAH(username) { return (username in ahMembers); } function isAI(username) { return (username in aiMembers); } function isAJ(username) { return (username in ajMembers); } function isAK(username) { return (username in akMembers); } function isAL(username) { return (username in alMembers); } function isAM(username) { return (username in amMembers); } function isAN(username) { return (username in anMembers); } function makeAA(username) { aaMembers[username] = {'u': 1}; } function makeAB(username) { abMembers[username] = {'u': 1}; } function makeAC(username) { acMembers[username] = {'u': 1}; } function makeAD(username) { adMembers[username] = {'u': 1}; } function makeAE(username) { aeMembers[username] = {'u': 1}; } function makeAF(username) { afMembers[username] = {'u': 1}; } function makeAG(username) { agMembers[username] = {'u': 1}; } function makeAH(username) { ahMembers[username] = {'u': 1}; } function makeAI(username) { aiMembers[username] = {'u': 1}; } function makeAJ(username) { ajMembers[username] = {'u': 1}; } function makeAK(username) { akMembers[username] = {'u': 1}; } function makeAL(username) { alMembers[username] = {'u': 1}; } function makeAM(username) { amMembers[username] = {'u': 1}; } function makeAN(username) { anMembers[username] = {'u': 1}; } function grabSettings() { cb.log("starting grabbing settings"); // Get Unicornland members if (cb.settings.aaMemberList) { var aaMemberSettings = cb.settings.aaMemberList.split(','); for (var ii = 0; ii < aaMemberSettings.length; ii++) { var clean = aaMemberSettings[ii].toLowerCase().replace(/ /g,""); aaMembers[clean] = {'u': 1}; } } // Get Queen Unicorns if (cb.settings.abMemberList) { var abMemberSettings = cb.settings.abMemberList.split(','); for (var ii = 0; ii < abMemberSettings.length; ii++) { var clean = abMemberSettings[ii].toLowerCase().replace(/ /g,""); abMembers[clean] = {'u': 1}; } } // Get Golden Unicorns if (cb.settings.acMemberList) { var acMemberSettings = cb.settings.acMemberList.split(','); for (var ii = 0; ii < acMemberSettings.length; ii++) { var clean = acMemberSettings[ii].toLowerCase().replace(/ /g,""); acMembers[clean] = {'u': 1}; } } // Get Invited Members if (cb.settings.adMemberList) { var adMemberSettings = cb.settings.adMemberList.split(','); for (var ii = 0; ii < adMemberSettings.length; ii++) { var clean = adMemberSettings[ii].toLowerCase().replace(/ /g,""); adMembers[clean] = {'u': 1}; } } // Get VIP Members if (cb.settings.aeMemberList) { var aeMemberSettings = cb.settings.aeMemberList.split(','); for (var ii = 0; ii < aeMemberSettings.length; ii++) { var clean = aeMemberSettings[ii].toLowerCase().replace(/ /g,""); aeMembers[clean] = {'u': 1}; } } // Get Custom 1 if (cb.settings.afMemberList) { var afMemberSettings = cb.settings.afMemberList.split(','); for (var ii = 0; ii < afMemberSettings.length; ii++) { var clean = afMemberSettings[ii].toLowerCase().replace(/ /g,""); afMembers[clean] = {'u': 1}; } } cb.log("finished grabbing settings"); } function output(message) { cb.chatNotice(message); } grabSettings();
© Copyright Chaturbate 2011- 2026. All Rights Reserved.