Bots Home
|
Create an App
Sherm's 18yoc Test
Author:
sherminator68b
Description
Source Code
Launch Bot
Current Users
Created by:
Sherminator68b
var FLAG = { price: cb['settings']['buyin'] != null, advance: cb['settings']['advance'] == 'Yes', email: cb['settings']['email'] == 'Yes', initialize: false, invalidCodeDetected: false, isYOC: cb['room_slug'] == '19yearoldcouple' || cb['room_slug'] == '18yearoldcouple' || cb['room_slug'] == '119yearoldcouple' || cb['room_slug'] == '219yearoldcouple' }; var RN = { switchToRN2: cb['settings']['switch1'] == 'Yes', switchToRN3: cb['settings']['switch2'] == 'Yes', switchOFFRN3: cb['settings']['switch3'] == 'Yes', rn1: true, rn2: false, rn3: false, notifierMessage: cb['settings']['spamMessage'], msgTimeOut: Number['parseFloat'](cb['settings']['messagetimeout']), msgTimeOut2: Number['parseFloat'](cb['settings']['messagetimeout2']), msgTimeOut3: Number['parseFloat'](cb['settings']['messagetimeout3']), R1: 1, R2: 1, R3: 1 }; var COMMAND = { CN: '/cn', CNH: '/cnh', CND: '/cnd', CNDH: '/cndh', BC: '/bc', TM: '/tm', TBM: '/tbm', TV: '/tv', CNHELP: '/cnhelp', TPRICE: '/tprice', NEXT: '/next', ADD: '/add', AU: '/au', DEL: '/del', DU: '/du', TLIST: '/tlist', ADDLIST: '/addlist', EMAIL: '/email', EMLIST: '/emlist', SIL: '/sil', UNSIL: '/unsil', SLIST: '/slist', EXPORT: '/export', PRELIST: '/prelist', STARTSHOW: '/startshow', SAVE: '/save', LOAD: '/load', RN1START: '/rn1start', RN1STOP: '/rn1stop', RN2START: '/rn2start', RN2STOP: '/rn2stop', RN3START: '/rn3start', RN3STOP: '/rn3stop', RN1TO2: '/rn1to2', RN2TO3: '/rn2to3' }; var COLOR = { DEVELOPER: '#D9F7F7', NOTICE: '#6900CC', RED: '#FF1407', MRED: '#D80A00', HLRED: '#FFE5E5', HILITE: '#EEE5FF', SYNTAX: '#995B00', AMBER: '#E56B00', MOD: '#DC0000', HVTEXT: '#D80A00', BCTEXT: '#FFFFFF', BCBACK: '#B600E3', HVBACK: '#FFFFBF', TBMBACK: '#E0EEFF', TBMTEXT: '#12447A', HELP: '#144D8C', INFO: '#144D8C', MAG: '#E509E5', BLI: '#DDFFCC', BF: '#FFE0EA', BLUE: '#000099', EZ: '#ffddf4', USTARTCOLOR: '#007BFF', DEFAULT: '#ffddf4', HTAT: '#ffddf4', MSG: '#ffddf4', HILITE: '#ffddf4', ROTATE: ['#9900cc', '#6666ff', '#00cc66', '#cccc00', '#ffb84d', '#ff6666', '#ff99ff'] }; var APP = { NAME: '"18yearoldcouple\'s UltraBot"', VERSION: '2.3', BUILD: '.001', DATE: 'OCT 18, 2016', YOC: '18yearoldcouple', ROOMHOST: cb['room_slug'] }; var CRAZY = { TICKETLIST: ['18yearoldcouple'], SILLIST: [], TICKETPRICE: parseInt(cb['settings']['buyin'], 10), TICKETPRICE2: parseInt(cb['settings']['buyin2'], 10), TICKETPRICE2SAFE: 2, TICKETPRICE3: parseInt(cb['settings']['buyin3'], 10), TICKETPRICE3SAFE: 2, TICKETNUMBER: parseInt(cb['settings']['preNumber1'], 10), TICKETNUMBER2: parseInt(cb['settings']['preNumber2'], 10), STAGEPRICE: 1, PRENOTE: true }; var emList = { name: [], email: [] }; var GROUP = { TIPPER: [], NUMTIPPERS: 0, MOD: [], EMOD: [], SILLYMOD: [], NICE: [], GREY: [], FREETICKET: [], BLOCKMSG: [], NINJA: [], SILENCE: [], SILENCELEVEL: 0, IGNORE: [], NUMIGNORERS: 0, WHISPER: [], NUMWHISPER: 0, GRAPHICLEVEL: 0 }; var tipperList = { name: [], amount: [] }; var BTIME = { STARTTIME: 0, DURATION: 0, ADDED: 0 }; var CTTIME = { STARTTIME: 0, DURATION: 0, ADDED: 0, CRAZYTICKETTIMER: parseInt(cb['settings']['crazyTicketStartTimer'], 10) }; var LB = { kingTip: 0, kingTimer: Number['parseFloat'](cb['settings']['kingTimer']), leaderTimer: Number['parseFloat'](cb['settings']['leaderTimer']), currentKing: '', htAllTime: cb['settings']['htat'], kingTipper: cb['settings']['kingTipper'] == 'Yes', kingTipperSpam: cb['settings']['kingTipperSpam'] == 'Yes', notifierSpamTGL: cb['settings']['notifierSpam'] == 'Yes', leaderboardSpam: cb['settings']['leaderBoardSpam'] == 'Yes', wordListTgl: cb['settings']['wordlistToggle'] == 'Yes', wordListNtc: cb['settings']['wordlistNotice'] == 'Yes' }; String['prototype']['capitalize'] = function() { return this['charAt'](0)['toUpperCase']() + this['slice'](1) }; String['prototype']['repeat'] = function(_0xb6b5xd) { return new Array(_0xb6b5xd + 1)['join'](this) }; String['prototype']['equals'] = function(_0xb6b5xe) { var _0xb6b5xf = new RegExp(_0xb6b5xe); return this['match'](_0xb6b5xf) != null }; String['prototype']['equalsIgnoreCase'] = function(_0xb6b5xe) { var _0xb6b5xf = new RegExp(_0xb6b5xe, 'i'); return this['match'](_0xb6b5xf) != null }; var dashLine3 = '------------------------------------------------------------'; var dashLine2 = '\u2014' ['repeat'](28); var dashLine = new Array(61)['join']('-'); var bubbles = 'OoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoOoO'; cb['settings_choices'] = [{ name: '902', label: 'HEY ' + cb['room_slug']['toUpperCase']() + ' ~~~ If you have app suggestions/bugs, email me... or need your bio done... or cammer advice.. you know. the usual.', required: !1, type: 'choice' }, { name: '002', label: bubbles + '--------------------------------------------------------------------------------------------------- ' + '--------------------> Everything is disabled by default :) <------------------------ ' + '-------------------> ' + APP['NAME']['toUpperCase']() + ' <----------------------- ' + '--------------------------------------> BUILD ' + APP['VERSION'] + ' <----------------------------------------- ' + '----------------------------------> ' + APP['DATE'] + ' <-------------------------------------- ' + '----------------------------------------------------------------------------------------------------- ' + bubbles, required: !1, type: 'choice' }, { name: '900', label: '', required: !1, type: 'choice' }, { name: '000', label: '>>> RECENT UPDATE: Fixed Leaderboard & King Tipper Announcements, and Timer 1 minute loop. <<<', required: !1, type: 'choice' }, { name: '901', label: '', required: !1, type: 'choice' }, { name: '001', label: bubbles + '------------------------------> PRE-SALE <------------------------------------------- ' + bubbles, required: !1, type: 'choice' }, { name: 'advance', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'No', label: 'Want to sell advanced "CrazyTickets"?' }, { name: 'buyin', type: 'int', label: 'Enter ticket price ONLY if used for advance ticket sales.' + 'HINT: If you aren\'t sure if you\'re doing a show today yet, set to 9999 and then use /tprice command to lower price later.', required: false }, { name: '003', label: bubbles + '------------------------------> ADVANCED PRE-SALE <------------------------ ' + bubbles, required: !1, type: 'choice' }, { name: 'preNumber1', type: 'int', defaultValue: 0, label: 'How many FIRST pre-sale tickets until auto switch to SECOND Pre-sale Price (leave 0 for unlimited pre-sale tickets, manually switch with "/tprice" command)', required: true }, { name: 'switch1', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'No', label: 'Automatically switch to second rotating notifier when first presale tickets sell out?' }, { name: 'buyin2', type: 'int', minValue: 1, defaultValue: 75, label: 'Second Presale Ticket Price (optional, this is the 2nd highest price.)', required: false }, { name: 'preNumber2', type: 'int', defaultValue: 0, label: 'How many Second pre-sale tickets until auto switch to Full Price (optional, leave 0 to skip directly to Full Price)', required: true }, { name: 'switch2', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'No', label: 'Automatically switch to third rotating notifier when second pre-sale tickets sell out?' }, { name: 'buyin3', type: 'int', minValue: 1, defaultValue: 100, label: 'Final Ticket Price (optional, this is the highest price.)', required: false }, { name: 'crazyTicketStartTimer', type: 'int', defaultValue: 0, label: 'How long until show starts after Last Presale Tickets Sold out? (optional, leave 0 to disable auto timer)', required: true }, { name: 'switch3', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'No', label: 'Automatically switch OFF third rotating notifier when timer ends?' }, { name: 'email', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'No', label: 'Record ticket buyer\'s email address if including a bonus in ticket price?' }, { name: '004', label: bubbles + '------------------------------> COLORS <----------------------------------------- ' + bubbles, required: !1, type: 'choice' }, { name: 'generalBgColor', label: 'Enter the hex color code you would like to use for the general background highlight. ' + 'Shortened hex codes (e.g. #3ff) are also accepted.', type: 'str', maxLength: 7, defaultValue: '#01a9db' }, { name: 'ubstartcolor', label: 'Ultra-Bot start-up message text color. ', type: 'str', maxLength: 7, defaultValue: '#007BFF' }, { name: 'lbtextcolor', label: 'LEADERBOARD text color (enter hex code). ', type: 'str', maxLength: 7, defaultValue: '#111111' }, { name: 'lbbackcolor', label: 'LEADERBOARD background color (enter hex code). ', type: 'str', maxLength: 7, defaultValue: '#88FFBB' }, { name: 'messagecolor', type: 'str', label: 'Message text color for rotating notices (default: dark red, HTML color code #9f000f).', defaultValue: '#9f000f' }, { name: 'messagehilite', type: 'str', label: 'Message background color for rotating notices (default: salmon-ish pink, HTML color code #ffcccc).', defaultValue: '#ffcccc' }, { name: 'htat_color', label: 'Highest tipper of all time - highlight color (put color code - with or without starting # - here).', type: 'str', required: false }, { name: '005', label: bubbles + '------------------------------> VIEWER PRIVLAGES <------------------------- ' + bubbles, required: !1, type: 'choice' }, { name: 'capsToggle', label: 'Would you like the bot to convert all capital messages to all lowercase messages?', type: 'choice', choice1: 'Yes (for all users)', choice2: 'Yes (only for grays)', choice3: 'No', defaultValue: 'Yes (only for grays)' }, { name: 'allowGrayChatAfterStartup', label: 'Would you like gray users to have chat privileges after the bot starts?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes' }, { name: 'allowGrayGraphicsAfterStartup', label: 'Would you like gray users to have graphic usage privileges after the bot starts? (Note: This option is automatically disabled if the option above is set to "No".)', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'No' }, { name: 'wordlistToggle', label: 'Would you like to use the gray wordlist feature?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'No' }, { name: 'wordlistNotice', label: 'Would you like to notify the sender when a message gets blocked by the gray wordlist?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes' }, { name: 'invalidToggle', label: 'Would you like the bot to send the user a message when an invalid command is entered?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'No' }, { name: '006', label: bubbles + '------------------------------> TIPPER PERKS <----------------------------- ' + bubbles, required: !1, type: 'choice' }, { name: 'tipTitles', label: 'Do you want to display users\' tip totals as titles?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'No' }, { name: 'kingTipper', label: 'Do you want to use the "King Tipper" feature?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'No' }, { name: 'kingTipperSpam', label: 'Do you want to periodically announce the tip required to become King?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'No' }, { name: 'kingMin', label: 'Enter the minimum tip level for a user to become King:', type: 'int', minValue: 1, maxValue: 1000000, defaultValue: 25 }, { name: 'kingTimer', label: 'Change this value if you would like the King announcement to happen at a different interval:', type: 'str', defaultValue: '20' }, { name: 'leaderBoard', label: 'Would you like to use the Leader Board feature?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'No' }, { name: 'lbhilite', label: 'Would you like to hilite leaderboard members?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes' }, { name: 'leaderBoardSpam', label: 'Do you want to periodically announce the top five tippers?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'No' }, { name: 'leaderTimer', label: 'Change this value if you would like the Leaderboard announcement to happen at a different interval:', type: 'str', defaultValue: '15' }, { name: '007', label: bubbles + '------------------------------> SPECIAL NOTICES <-------------------------- ' + bubbles, required: !1, type: 'choice' }, { name: 'notifierEnter', label: 'Would you like to display a message for users when they enter the room?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'No' }, { name: 'enterMessage', label: 'Enter the message you would like to display.', type: 'str', minLength: 1, maxLength: 1000, defaultValue: 'Welcome to my room!' }, { name: 'notifierSpam', label: 'Would you like to periodicaly send a message to the room?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'No' }, { name: 'spamMessage', label: 'Enter the message you would like to display.', type: 'str', minLength: 1, maxLength: 1000, defaultValue: 'Check out our Amazon Wishlist!' }, { name: 'spamTimer', label: 'Change this value if you would like the room announcement to happen at a different interval:', type: 'int', minValue: 1, maxValue: 60, defaultValue: 12 }, { name: 'notifierTip', label: 'Would you like to display a message when a user tips?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'No' }, { name: 'notifierPrivate', label: 'Send Tip Thank you Public or Private?', type: 'choice', choice1: 'Public', choice2: 'Private', defaultValue: 'Public' }, { name: 'tipMessage', label: 'Enter the message you would like to display.', type: 'str', minLength: 1, maxLength: 1000, defaultValue: 'Thank you!' }, { name: 'tipMessageMin', label: 'Enter the minimum tip amount that you would like to trigger the message', type: 'int', minValue: 1, maxValue: 1000000, defaultValue: 10 }, { name: '008', label: bubbles + '------------------------------> LISTS & CLUBS <---------------------------- ' + bubbles, required: !1, type: 'choice' }, { name: 'grayList', label: 'Enter the names of any users you would like to subject to the gray wordlist, regardless of the silence and graphic levels, separated by spaces, or by commas with or without spaces.', type: 'str', minLength: 1, maxLength: 1000, required: false }, { name: 'niceList', label: 'Enter the names of any users you would like to guarantee voice and graphic usage privileges, regardless of the silence and graphic levels, separated by spaces, or by commas with or without spaces.', type: 'str', minLength: 1, maxLength: 1000, required: false }, { name: 'vipList', label: 'Enter the names of any users you would like to grant free access to a future "CrazyTicket" show, separated by spaces, or by commas with or without spaces. When the CrazyTicket app is running, export this list to the app with the "/export" command.', type: 'str', minLength: 1, maxLength: 2048, required: false }, { name: 'htat', label: 'Highest tipper of all time (put his/her username here).', type: 'str', required: false }, { name: 'rotnot_header', label: '**** Rotating notifier settings ****', type: 'choice', choice1: '', choice2: '', required: false }, { name: '009', label: bubbles + '------------------------------> ROTATING NOTIFIERS <-------------------- ' + bubbles, required: !1, type: 'choice' }, { name: 'use_rn1', label: 'Would you like to use Rotating Notifiers? ' + 'NOTE: Only the first rotating notifier will start with the bot. ' + 'Use commands /rn1start, /rn1stop, /rn2start, /rn2stop, /rn3start, /rn3stop, /rn1to2, /rn2to3 to control notifiers in show', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'No' }, { name: 'msg1onentry', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes', label: 'Display Message 1 of Rotating Notifier 1 privately on entry? (Disable this function for busy rooms, in order to avoid bot crashes.)' }, { name: 'message1', label: 'RN(1) ---> Message 1', type: 'str', required: false, defaultValue: 'Welcome and Follow us!' }, { name: 'message2', label: 'RN(1) ---> Message 2', type: 'str', required: false }, { name: 'message3', label: 'RN(1) ---> Message 3', type: 'str', required: false }, { name: 'message4', label: 'RN(1) ---> Message 4', type: 'str', required: false }, { name: 'message5', label: 'RN(1) ---> Message 5', type: 'str', required: false }, { name: 'message6', label: 'RN(1) ---> Message 6', type: 'str', required: false }, { name: 'message7', label: 'RN(1) ---> Message 7', type: 'str', required: false }, { name: 'message8', label: 'RN(1) ---> Message 8', type: 'str', required: false }, { name: 'message9', label: 'RN(1) ---> Message 9', type: 'str', required: false }, { name: 'message10', label: 'RN(1) ---> Message 10', type: 'str', required: false }, { name: 'rotnot_header22', label: '**** Rotating Notifier 2: ****', type: 'choice', choice1: '', choice2: '', required: false }, { name: 'rotnot_header2', label: 'NOTE: Only the first rotating notifier will start with the bot. Use commands /rn1start, /rn1stop, /rn2start, /rn2stop, /rn3start, /rn3stop, /rn1to2, /rn2to3 to control notifiers in show', type: 'choice', choice1: '', choice2: '', required: false }, { name: 'msg1onentry_', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes', label: 'Display Message 1 of Rotating Notifier 2 privately on entry? (Disable this function for busy rooms, in order to avoid bot crashes.)' + 'PS: Will only send welcome message while RN2 is active. Activate with /rn2start or /rn1to2' }, { name: 'messageb1', label: 'RN(2) ---> Message 1', type: 'str', required: false, defaultValue: 'Welcome and Follow us!' }, { name: 'messageb2', label: 'RN(2) ---> Message 2', type: 'str', required: false }, { name: 'messageb3', label: 'RN(2) ---> Message 3', type: 'str', required: false }, { name: 'messageb4', label: 'RN(2) ---> Message 4', type: 'str', required: false }, { name: 'messageb5', label: 'RN(2) ---> Message 5', type: 'str', required: false }, { name: 'messageb6', label: 'RN(2) ---> Message 6', type: 'str', required: false }, { name: 'messageb7', label: 'RN(2) ---> Message 7', type: 'str', required: false }, { name: 'messageb8', label: 'RN(2) ---> Message 8', type: 'str', required: false }, { name: 'messageb9', label: 'RN(2) ---> Message 9', type: 'str', required: false }, { name: 'messageb10', label: 'RN(2) ---> Message 10', type: 'str', required: false }, { name: 'rotnot_header33', label: '**** Rotating Notifier 3: ****', type: 'choice', choice1: '', choice2: '', required: false }, { name: 'rotnot_header3', label: 'NOTE: Only the first rotating notifier will start with the bot. Use commands /rn1start, /rn1stop, /rn2start, /rn2stop, /rn3start, /rn3stop, /rn1to2, /rn2to3 to control notifiers in show', type: 'choice', choice1: '', choice2: '', required: false }, { name: 'msg1onentryc', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes', label: 'Display Message 1 of Rotating Notifier 3 privately on entry? (Disable this function for busy rooms, in order to avoid bot crashes.)' + 'PS: Will only send welcome message while RN3 is active. Activate with /rn3start or /rn2to3' }, { name: 'messagec1', label: 'RN(3) ---> Message 1', type: 'str', required: false, defaultValue: 'Welcome and Follow us!' }, { name: 'messagec2', label: 'RN(3) ---> Message 2', type: 'str', required: false }, { name: 'messagec3', label: 'RN(3) ---> Message 3', type: 'str', required: false }, { name: 'messagec4', label: 'RN(3) ---> Message 4', type: 'str', required: false }, { name: 'messagec5', label: 'RN(3) ---> Message 5', type: 'str', required: false }, { name: 'messagec6', label: 'RN(3) ---> Message 6', type: 'str', required: false }, { name: 'messagec7', label: 'RN(3) ---> Message 7', type: 'str', required: false }, { name: 'messagec8', label: 'RN(3) ---> Message 8', type: 'str', required: false }, { name: 'messagec9', label: 'RN(3) ---> Message 9', type: 'str', required: false }, { name: 'messagec10', label: 'RN(3) ---> Message 10', type: 'str', required: false }, { name: 'messagetimeout', type: 'str', label: 'Rotating Notifier 1\'s Delay (in minutes) between notices being displayed. Fractions (seconds) are accepted, e.g. "0.5" for 30 seconds.', defaultValue: '3' }, { name: 'messagetimeout2', type: 'str', label: 'Rotating Notifier 2\'s Delay (in minutes) between notices being displayed. Fractions (seconds) are accepted, e.g. "0.5" for 30 seconds.', defaultValue: '2' }, { name: 'messagetimeout3', type: 'str', label: 'Rotating Notifier 3\'s Delay (in minutes) between notices being displayed. Fractions (seconds) are accepted, e.g. "0.5" for 30 seconds.', defaultValue: '2' }]; function chatCleanUp() { var _0xb6b5x15 = '* Cleaning up chat...'; var _0xb6b5x16 = '*'; cb['sendNotice'](_0xb6b5x15, '', '', COLOR.NOTICE, 'bold'); for (var _0xb6b5x17 = 1; _0xb6b5x17 <= 30; _0xb6b5x17++) { cb['sendNotice'](_0xb6b5x16, '', '', COLOR.NOTICE, 'bold') }; return cb['sendNotice']('* Chat cleaned up.', '', '', COLOR.NOTICE, 'bold') } function user(_0xb6b5x19, user, _0xb6b5x1a) { if ((_0xb6b5x19 == 'add') && (!cbjs['arrayContains'](CRAZY.TICKETLIST, user))) { CRAZY['TICKETLIST']['push'](user) }; if ((_0xb6b5x19 == 'del') && (cbjs['arrayContains'](CRAZY.TICKETLIST, user))) { cbjs['arrayRemove'](CRAZY.TICKETLIST, user) } } function init() { var _0xb6b5x1c = dashLine + '\x0A* ' + APP['NAME'] + ' by 18yearoldcouple\x0A* Version: ' + APP['VERSION'] + APP['BUILD'] + ' (' + APP['DATE'] + ')'; _0xb6b5x1c += '\x0A* Type "/ubhelp commands" for a list of available commands.\x0A\x0A* Email: "' + APP['YOC'] + '" for help & bugs.\x0A' + dashLine; cb['sendNotice'](_0xb6b5x1c, APP.ROOMHOST, '', COLOR.INFO, 'bold'); this['callCbHandlers'] = (function() { cb['onEnter'](function(_0xb6b5x1d) { onEnterHandler(_0xb6b5x1d) }); cb['onTip'](function(_0xb6b5x1e) { onTipHandler(_0xb6b5x1e) }); cb['onMessage'](function(_0xb6b5x1f) { onMessageHandler(_0xb6b5x1f) }) })(); var _0xb6b5x20 = ''; if (FLAG['price']) { _0xb6b5x20 += '\x0A* Backup mode for "CrazyTicket" is enabled.' }; if (FLAG['advance']) { _0xb6b5x20 += '\x0A* Advance ticket sales are enabled.' }; if (FLAG['email']) { _0xb6b5x20 += '\x0A* Email address recording is enabled.' }; if (_0xb6b5x20) { cb['sendNotice'](dashLine + _0xb6b5x20 + '\x0A' + dashLine, APP.ROOMHOST, COLOR.HVBACK, COLOR.HVTEXT, 'bold') }; cb['sendNotice'](dashLine + '\x0A* Broadcaster "' + APP['ROOMHOST'] + '" is running ' + APP['NAME'] + '.\x0A\x0A* Type /cnhelp for a list of available commands.\x0A* NEW COMMAND: /tbm\x0A' + dashLine, '', '', COLOR.NOTICE, 'bold', 'red') } function tipperPopulate(user) { GROUP['TIPPER'][GROUP['NUMTIPPERS']] = []; GROUP['TIPPER'][GROUP['NUMTIPPERS']][0] = user; GROUP['TIPPER'][GROUP['NUMTIPPERS']][1] = 0; GROUP['NUMTIPPERS']++ } function tipperListPopulate(user, _0xb6b5x1e) { tipperList['name']['push'](user); tipperList['amount']['push'](_0xb6b5x1e) } function findTipper(user) { for (var _0xb6b5x17 = 0; _0xb6b5x17 < GROUP['TIPPER']['length']; _0xb6b5x17++) { if (GROUP['TIPPER'][_0xb6b5x17][0] == user) { break } }; if (_0xb6b5x17 == GROUP['TIPPER']['length']) { tipperPopulate(user); findTipper(user) }; return _0xb6b5x17 } function modPopulate(user) { if (!cbjs['arrayContains'](GROUP.MOD, user)) { GROUP['MOD']['push'](user) } else { return } } function emodPopulate(user) { if (!cbjs['arrayContains'](GROUP.EMOD, user)) { GROUP['EMOD']['push'](user) } else { return } } function sillyPopulate(user) { if (!cbjs['arrayContains'](GROUP.SILLYMOD, user)) { GROUP['SILLYMOD']['push'](user) } else { return } } function nicePopulate(user) { if (!cbjs['arrayContains'](GROUP.NICE, user)) { GROUP['NICE']['push'](user) } else { return } } function greyPopulate(user) { if (!cbjs['arrayContains'](GROUP.GREY, user)) { GROUP['GREY']['push'](user) } else { return } } function freeticketPopulate(user) { if (!cbjs['arrayContains'](GROUP.FREETICKET, user)) { GROUP['FREETICKET']['push'](user) } else { return } } function blockmsgPopulate(user) { if (!cbjs['arrayContains'](GROUP.BLOCKMSG, user)) { GROUP['BLOCKMSG']['push'](user) } else { return } } function ninjaPopulate(user) { if (!cbjs['arrayContains'](GROUP.NINJA, user)) { GROUP['NINJA']['push'](user) } else { return } } function silencePopulate(user) { if (!cbjs['arrayContains'](GROUP.SILENCE, user)) { GROUP['SILENCE']['push'](user) } else { return } } function ignorePopulate(user) { GROUP['IGNORE'][GROUP['NUMIGNORERS']] = []; GROUP['IGNORE'][GROUP['NUMIGNORERS']][0] = user; GROUP['IGNORE'][GROUP['NUMIGNORERS']][1] = 0; GROUP['NUMIGNORERS']++ } function findIgnorer(user) { for (var _0xb6b5x17 = 0; _0xb6b5x17 < GROUP['IGNORE']['length']; _0xb6b5x17++) { if (GROUP['IGNORE'][_0xb6b5x17][0] == user) { break } }; if (_0xb6b5x17 == GROUP['IGNORE']['length']) { ignorePopulate(user); findIgnorer(user) }; return _0xb6b5x17 } function whisperPopulate(user) { GROUP['WHISPER'][GROUP['NUMWHISPER']] = []; GROUP['WHISPER'][GROUP['NUMWHISPER']][0] = user; GROUP['WHISPER'][GROUP['NUMWHISPER']][1] = ''; GROUP['NUMWHISPER']++ } function findWhisper(user) { for (var _0xb6b5x17 = 0; _0xb6b5x17 < GROUP['WHISPER']['length']; _0xb6b5x17++) { if (GROUP['WHISPER'][_0xb6b5x17][0] == user) { break } }; if (_0xb6b5x17 == GROUP['WHISPER']['length']) { whisperPopulate(user); findWhisper(user) }; return _0xb6b5x17 } function rotateNotices() { if (cb['settings']['use_rn1'] == 'Yes') { var _0xb6b5x1f; while (cb['settings']['message' + RN['R1']] == 0) { RN['R1']++; if (RN['R1'] > 10) { RN['R1'] = 1 } }; _0xb6b5x1f = cb['settings']['message' + RN['R1']]; _0xb6b5x1f = _0xb6b5x1f['replace'](/{newline}/g, '\x0A'); RN['R1']++; if (RN['R1'] > 10) { RN['R1'] = 1 }; if (RN['rn1']) { cb['sendNotice'](_0xb6b5x1f, '', COLOR.HILITE, COLOR.MSG, 'bold') }; cb['setTimeout'](rotateNotices, (RN['msgTimeOut'] * 60000)) } } cb['setTimeout'](rotateNotices, (RN['msgTimeOut'] * 60000)); function rotateNotices2() { var _0xb6b5x33; while (cb['settings']['messageb' + RN['R2']] == 0) { RN['R2']++; if (RN['R2'] > 10) { RN['R2'] = 1 } }; _0xb6b5x33 = cb['settings']['messageb' + RN['R2']]; _0xb6b5x33 = _0xb6b5x33['replace'](/{newline}/g, '\x0A'); if (RN['rn2']) { RN['R2']++ }; if (RN['R2'] > 10) { RN['R2'] = 1 }; if (RN['rn2']) { cb['sendNotice'](_0xb6b5x33, '', COLOR.HILITE, COLOR.MSG, 'bold') }; cb['setTimeout'](rotateNotices2, (RN['msgTimeOut2'] * 60000)) } cb['setTimeout'](rotateNotices2, (RN['msgTimeOut2'] * 60000)); function rotateNotices3() { var _0xb6b5x35; while (cb['settings']['messagec' + RN['R3']] == 0) { RN['R3']++; if (RN['R3'] > 10) { RN['R3'] = 1 } }; _0xb6b5x35 = cb['settings']['messagec' + RN['R3']]; _0xb6b5x35 = _0xb6b5x35['replace'](/{newline}/g, '\x0A'); if (RN['rn3']) { RN['R3']++ }; if (RN['R3'] > 10) { RN['R3'] = 1 }; if (RN['rn3']) { cb['sendNotice'](_0xb6b5x35, '', COLOR.HILITE, COLOR.MSG, 'bold') }; cb['setTimeout'](rotateNotices3, (RN['msgTimeOut3'] * 60000)) } cb['setTimeout'](rotateNotices3, (RN['msgTimeOut3'] * 60000)); function setSilenceLevel(_0xb6b5x37, _0xb6b5x38) { if (_0xb6b5x37 != null) { var _0xb6b5x39 = Number['parseInt'](_0xb6b5x37, 10); if (_0xb6b5x39 >= 0 && _0xb6b5x39 <= 5) { GROUP['SILENCELEVEL'] = _0xb6b5x39; cb['sendNotice']('The silence level has been set to ' + _0xb6b5x39 + '.', cb['room_slug'], COLOR.DEFAULT); cb['sendNotice']('The silence level has been set to ' + _0xb6b5x39 + '.', '', COLOR.DEFAULT, '', '', 'red'); switch (_0xb6b5x39) { case 0: cb['sendNotice']('All members can talk in chat.', cb['room_slug'], COLOR.DEFAULT); cb['sendNotice']('All members can talk in chat.', '', COLOR.DEFAULT, '', '', 'red'); break; case 1: cb['sendNotice']('Only members with tokens can talk in chat.', cb['room_slug'], COLOR.DEFAULT); cb['sendNotice']('Only members with tokens can talk in chat.', '', COLOR.DEFAULT, '', '', 'red'); break; case 2: cb['sendNotice']('Only members who have tipped can talk in chat.', cb['room_slug'], COLOR.DEFAULT); cb['sendNotice']('Only members who have tipped can talk in chat.', '', COLOR.DEFAULT, '', '', 'red'); break; case 3: cb['sendNotice']('Only members who have tipped at least 10 tokens can talk in chat.', cb['room_slug'], COLOR.DEFAULT); cb['sendNotice']('Only members who have tipped at least 10 tokens can talk in chat.', '', COLOR.DEFAULT, '', '', 'red'); break; case 4: cb['sendNotice']('Only members who have tipped at least 100 tokens can talk in chat.', cb['room_slug'], COLOR.DEFAULT); cb['sendNotice']('Only members who have tipped at least 100 tokens can talk in chat.', '', COLOR.DEFAULT, '', '', 'red'); break; case 5: cb['sendNotice']('Only moderators, emergency moderators, and fan club members can talk in chat.', cb['room_slug'], COLOR.DEFAULT); cb['sendNotice']('Only moderators, emergency moderators, and fan club members can talk in chat.', '', COLOR.DEFAULT, '', '', 'red'); break } } else { cb['sendNotice'](_0xb6b5x39 + ' is not a valid setting.\x0AType "/ubhelp silencelevel" to see how to use /silencelevel.', _0xb6b5x38, '#fee') } } else { cb['sendNotice']('The current silence level is ' + GROUP['SILENCELEVEL'] + '.\x0AType "/ubhelp silencelevel" to see how to use /silencelevel.', _0xb6b5x38, COLOR.DEFAULT) } } function setGraphicLevel(_0xb6b5x37, _0xb6b5x38) { if (_0xb6b5x37 != null) { var _0xb6b5x39 = Number['parseInt'](_0xb6b5x37); if (_0xb6b5x39 >= 0 && _0xb6b5x39 <= 5) { GROUP['GRAPHICLEVEL'] = _0xb6b5x39; cb['sendNotice']('The graphic level has been set to ' + _0xb6b5x39 + '.', cb['room_slug'], COLOR.DEFAULT); cb['sendNotice']('The graphic level has been set to ' + _0xb6b5x39 + '.', '', COLOR.DEFAULT, '', '', 'red'); switch (_0xb6b5x39) { case 0: cb['sendNotice']('All members can use graphics in chat.', cb['room_slug'], COLOR.DEFAULT); cb['sendNotice']('All members can use graphics in chat.', '', COLOR.DEFAULT, '', '', 'red'); break; case 1: cb['sendNotice']('Only members with tokens can use graphics in chat.', cb['room_slug'], COLOR.DEFAULT); cb['sendNotice']('Only members with tokens can use graphics in chat.', '', COLOR.DEFAULT, '', '', 'red'); break; case 2: cb['sendNotice']('Only members who have tipped can use graphics in chat.', cb['room_slug'], COLOR.DEFAULT); cb['sendNotice']('Only members who have tipped can use graphics in chat.', '', COLOR.DEFAULT, '', '', 'red'); break; case 3: cb['sendNotice']('Only members who have tipped at least 10 tokens can use graphics in chat.', cb['room_slug'], COLOR.DEFAULT); cb['sendNotice']('Only members who have tipped at least 10 tokens can use graphics in chat.', '', COLOR.DEFAULT, '', '', 'red'); break; case 4: cb['sendNotice']('Only members who have tipped at least 100 tokens can use graphics in chat.', cb['room_slug'], COLOR.DEFAULT); cb['sendNotice']('Only members who have tipped at least 100 tokens can use graphics in chat.', '', COLOR.DEFAULT, '', '', 'red'); break; case 5: cb['sendNotice']('Only moderators, emergency moderators, and fan club members can use graphics in chat.', cb['room_slug'], COLOR.DEFAULT); cb['sendNotice']('Only moderators, emergency moderators, and fan club members can use graphics in chat.', '', COLOR.DEFAULT, '', '', 'red'); break } } else { cb['sendNotice'](_0xb6b5x39 + ' is not a valid setting.\x0AType "/ubhelp graphiclevel" to see how to use /graphiclevel.', _0xb6b5x38, '#fee') } } else { cb['sendNotice']('The current graphic level is ' + GROUP['GRAPHICLEVEL'] + '.\x0AType "/ubhelp graphiclevel" to see how to use /graphiclevel.', _0xb6b5x38, COLOR.DEFAULT) } } function silence(user, _0xb6b5x38) { if (user != null && (user != '' || user != ' ' || user != '\xA0')) { if (arguments[2] == 'regular') { if (cbjs['arrayContains'](GROUP.SILENCE, user)) { cb['sendNotice'](user + ' has already been silenced.', _0xb6b5x38, COLOR.DEFAULT) } else { if (user != _0xb6b5x38) { if (user != cb['room_slug']) { if (!(cbjs['arrayContains'](GROUP.MOD, user) || cbjs['arrayContains'](GROUP.EMOD, user))) { silencePopulate(user); cb['sendNotice'](_0xb6b5x38 + ' has silenced ' + user + '.', '', COLOR.DEFAULT, '', '', 'red'); if (_0xb6b5x38 == cb['room_slug']) { cb['sendNotice']('You have silenced ' + user + '.', _0xb6b5x38, COLOR.DEFAULT) }; cb['sendNotice']('You have been silenced by ' + _0xb6b5x38 + '.', user, '#fee') } else { cb['sendNotice']('You can\'t silence moderators or emergency moderators!', _0xb6b5x38, '#fee') } } else { cb['sendNotice']('You can\'t silence the room host!', _0xb6b5x38, '#fee') } } else { cb['sendNotice']('You can\'t silence yourself. Please go to a doctor as soon as possible.', _0xb6b5x38, '#fee') } } } else { if (arguments[2] == 'ninja') { if (cbjs['arrayContains'](GROUP.NINJA, user)) { cb['sendNotice'](user + ' has already been silenced.', _0xb6b5x38, COLOR.DEFAULT) } else { if (user != _0xb6b5x38) { if (user != cb['room_slug']) { if (!(cbjs['arrayContains'](GROUP.MOD, user) || cbjs['arrayContains'](GROUP.EMOD, user))) { ninjaPopulate(user); if (_0xb6b5x38 == cb['room_slug']) { cb['sendNotice']('You have ninja-silenced ' + user + '.', _0xb6b5x38, COLOR.DEFAULT) }; cb['sendNotice'](_0xb6b5x38 + ' used /ninjasil on ' + user + '.', 'dehaan_') } else { cb['sendNotice']('You can\'t silence moderators or emergency moderators!', _0xb6b5x38, '#fee') } } else { cb['sendNotice']('You can\'t silence the room host!', _0xb6b5x38, '#fee') } } else { cb['sendNotice']('You can\'t silence yourself. Please go to a doctor as soon as possible.', _0xb6b5x38, '#fee') } } } } } else { if (arguments[2] == 'ninja') { cb['sendNotice']('You didn\'t specify who you want to ninja-silence.\x0AType "/ubhelp ninja" to see how to use /ninja.', _0xb6b5x38, '#fee') } else { cb['sendNotice']('You didn\'t specify who you want to silence.\x0AType "/ubhelp silence" to see how to use /silence.', _0xb6b5x38, '#fee') } } } function unsilence(user, _0xb6b5x38) { if (user != null && (user != '' || user != ' ' || user != '\xA0')) { if (arguments[2] == 'regular') { if (cbjs['arrayContains'](GROUP.SILENCE, user)) { cbjs['arrayRemove'](GROUP.SILENCE, user); cb['sendNotice'](_0xb6b5x38 + ' has unsilenced ' + user + '.', '', COLOR.DEFAULT, '', '', 'red'); if (_0xb6b5x38 == cb['room_slug']) { cb['sendNotice']('You have unsilenced ' + user + '.', _0xb6b5x38, COLOR.DEFAULT) }; cb['sendNotice']('You have been unsilenced by ' + _0xb6b5x38 + '. Be nice and don\'t make demands. :smile', user, COLOR.DEFAULT) } else { cb['sendNotice'](user + ' does not need to be unsilenced.', _0xb6b5x38, COLOR.DEFAULT) } } else { if (arguments[2] == 'ninja') { if (cbjs['arrayContains'](GROUP.NINJA, user)) { cbjs['arrayRemove'](GROUP.NINJA, user); cb['sendNotice']('You have unsilenced ' + user + '.', _0xb6b5x38, COLOR.DEFAULT) } else { cb['sendNotice'](user + ' does not need to be unsilenced.', _0xb6b5x38, COLOR.DEFAULT) } } } } else { if (arguments[2] == 'ninja') { cb['sendNotice']('You didn\'t specify who you want to unsilence.\x0AType "/ubhelp unninja" to see how to use /unninja.', _0xb6b5x38, '#fee') } else { cb['sendNotice']('You didn\'t specify who you want to unsilence.\x0AType "/ubhelp unsilence" to see how to use /unsilence.', _0xb6b5x38, '#fee') } } } function BnewTimer(_0xb6b5x3e, _0xb6b5x38) { if (BTIME['STARTTIME'] == 0 && BTIME['ADDED'] == 0) { if (_0xb6b5x3e >= 0 && _0xb6b5x3e.toString()['indexOf']('.') == -1) { BTIME['DURATION'] = _0xb6b5x3e; if (_0xb6b5x38 != null) { cb['sendNotice'](_0xb6b5x38 + ' has set a timer for ' + BTIME['DURATION'] + ' minutes!', '', COLOR.DEFAULT, '') }; var _0xb6b5x3f = BTIME['DURATION'] * 60000; var _0xb6b5x40 = _0xb6b5x3f - 300000; var _0xb6b5x41 = _0xb6b5x3f - 180000; var _0xb6b5x42 = _0xb6b5x3f - 120000; var _0xb6b5x43 = _0xb6b5x3f - 60000; cb['setTimeout'](timer, _0xb6b5x3f); if (_0xb6b5x40 > 0) { cb['setTimeout'](fiveMinuteWarning, _0xb6b5x40) }; if (_0xb6b5x41 > 0) { cb['setTimeout'](threeMinuteWarning, _0xb6b5x41) }; if (_0xb6b5x42 > 0) { cb['setTimeout'](twoMinuteWarning, _0xb6b5x42) }; cb['setTimeout'](oneMinuteWarning, _0xb6b5x43); BTIME['STARTTIME'] = new Date() } else { if (_0xb6b5x3e != null) { cb['sendNotice'](_0xb6b5x3e + ' is not a valid option for /starttimer.\x0AType /ubhelp starttimer to see how to use /starttimer.', _0xb6b5x38, '#fee') } else { if (_0xb6b5x3e == null) { cb['sendNotice']('You did not enter a valid option for /starttimer.\x0AType /ubhelp starttimer to see how to use /starttimer.', _0xb6b5x38, '#fee') } } } } else { if (BTIME['STARTTIME'] != 0 && BTIME['ADDED'] != 0 && _0xb6b5x38 == null) { cb['log']('IN BnewTimer(t, mod)..... BTIME.ADDED: ' + BTIME['ADDED'] + ' BTIME.STARTTIME: ' + BTIME['STARTTIME'] + ' BTIME.DURATION: ' + BTIME['DURATION']); BTIME['ADDED'] = 0; BTIME['DURATION'] = _0xb6b5x3e; var _0xb6b5x3f = BTIME['DURATION'] * 60000; var _0xb6b5x40 = _0xb6b5x3f - 300000; var _0xb6b5x41 = _0xb6b5x3f - 180000; var _0xb6b5x42 = _0xb6b5x3f - 120000; var _0xb6b5x43 = _0xb6b5x3f - 60000; cb['setTimeout'](timer, _0xb6b5x3f); if (_0xb6b5x40 > 0) { cb['setTimeout'](fiveMinuteWarning, _0xb6b5x40) }; cb['setTimeout'](oneMinuteWarning, _0xb6b5x43) } else { if (BTIME['STARTTIME'] != 0 && BTIME['ADDED'] == 0 || BTIME['STARTTIME'] != 0 && BTIME['ADDED'] != 0 && _0xb6b5x38 != null) { cb['sendNotice']('There is a timer running already.', _0xb6b5x38, '#fee') } } } } function CTnewTimer(_0xb6b5x3e, _0xb6b5x38) { if (CTTIME['STARTTIME'] == 0 && CTTIME['ADDED'] == 0) { if (_0xb6b5x3e >= 0 && _0xb6b5x3e.toString()['indexOf']('.') == -1) { CTTIME['DURATION'] = _0xb6b5x3e; if (_0xb6b5x38 != null) { cb['sendNotice'](_0xb6b5x38 + ' has set a timer for ' + CTTIME['DURATION'] + ' minutes!', '', COLOR.DEFAULT, '') }; CTstartNotice(_0xb6b5x3e, _0xb6b5x38); var _0xb6b5x45 = 60000; CTTIME['STARTTIME'] = new Date(); cb['setTimeout'](minuteWarning, _0xb6b5x45) } else { if (_0xb6b5x3e != null) { cb['sendNotice'](_0xb6b5x3e + ' is not a valid option for /starttimer.\x0AType /ubhelp starttimer to see how to use /starttimer.', _0xb6b5x38, '#fee') } else { if (_0xb6b5x3e == null) { cb['sendNotice']('You did not enter a valid option for /starttimer.\x0AType /ubhelp starttimer to see how to use /starttimer.', _0xb6b5x38, '#fee') } } } } else { CTTIME['STARTTIME'] = 0; CTTIME['ADDED'] = 0; cb['sendNotice']('There was already an older timer running, but we stopped it and started yours instead.', _0xb6b5x38, '#fee'); CTnewTimer(_0xb6b5x3e, _0xb6b5x38) } } function timer() { cb['log']('IN timer()..... BTIME.ADDED: ' + BTIME['ADDED'] + ' BTIME.STARTTIME: ' + BTIME['STARTTIME'] + ' BTIME.DURATION: ' + BTIME['DURATION']); if (BTIME['ADDED'] == 0) { cb['sendNotice']('Time is up!', '', COLOR.DEFAULT, ''); BTIME['STARTTIME'] = 0; BTIME['DURATION'] = 0 } else { if (BTIME['ADDED'] == 5) { cb['sendNotice']('There are 5 minutes remaining!', '', COLOR.DEFAULT, '') }; BnewTimer(BTIME.ADDED) } } function CTtimerIsUp() { cb['sendNotice']('\u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \x0A \u25B7 \u25B7 \u25B7 \u25B7 TIME IS UP! GET READY!! \u25C1 \u25C1 \u25C1 \u25C1 \x0A \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022', '', '#ff4d4d', '#b3ffcc', 'bolder'); CTTIME['STARTTIME'] = 0; CTTIME['DURATION'] = 0; if (RN['switchOFFRN3']) { RN['rn3'] = false } } function CTstartNotice(_0xb6b5x49, _0xb6b5x38) { cb['sendNotice']('\u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \x0A ' + _0xb6b5x38 + ' STARTED THE TIMER, THE SHOW STARTS IN ' + _0xb6b5x49 + ' MINS!! ', '', '#ff4d4d', '#b3ffcc', 'bolder'); if (FLAG['isYOC']) { cb['sendNotice'](' \u25B7 \u25B7 \u25B7 \u25B7 TICKETS ARE ' + CRAZY['TICKETPRICE'] + ' TOKENS \u25C1 \u25C1 \u25C1 \u25C1', '', '#b3ffcc', '#ff4d4d', 'bolder') }; cb['sendNotice']('\u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022', '', '#ff4d4d', '#b3ffcc', 'bolder') } function CTminsLeftNotice(_0xb6b5x49) { cb['log']('we hit CTminsLeftNotice with mins: ' + _0xb6b5x49); cb['sendNotice']('\u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \x0A THERE ARE ' + _0xb6b5x49 + ' MINS REMAINING UNTIL SHOW STARTS! ', '', '#ff4d4d', '#b3ffcc', 'bolder'); if (FLAG['isYOC']) { cb['sendNotice'](' \u25B7 \u25B7 \u25B7 \u25B7 TICKETS ARE ' + CRAZY['TICKETPRICE'] + ' TOKENS \u25C1 \u25C1 \u25C1 \u25C1', '', '#b3ffcc', '#ff4d4d', 'bolder') }; cb['sendNotice']('\u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022', '', '#ff4d4d', '#b3ffcc', 'bolder') } function CTminLeftNotice(_0xb6b5x49) { cb['log']('we hit CTminLeftNotice with mins: ' + _0xb6b5x49); cb['sendNotice']('\u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \x0A THERE IS JUST ONE MINUTE REMAINING! OMGERD!! ', '', '#ff4d4d', '#b3ffcc', 'bolder'); if (FLAG['isYOC']) { cb['sendNotice'](' \u25B7 \u25B7 \u25B7 \u25B7 TICKETS ARE ' + CRAZY['TICKETPRICE'] + ' TOKENS \u25C1 \u25C1 \u25C1 \u25C1', '', '#b3ffcc', '#ff4d4d', 'bolder') }; cb['sendNotice']('\u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022', '', '#ff4d4d', '#b3ffcc', 'bolder') } function fiveMinuteWarning() { if (BTIME['ADDED'] == 0) { cb['sendNotice']('There are 5 minutes remaining!', '', COLOR.DEFAULT, '') } } function threeMinuteWarning() { if (BTIME['ADDED'] == 0) { cb['sendNotice']('There are 3 minutes remaining!', '', COLOR.DEFAULT, '') } } function twoMinuteWarning() { if (BTIME['ADDED'] == 0) { cb['sendNotice']('There are 2 minutes remaining!', '', COLOR.DEFAULT, '') } } function oneMinuteWarning() { if (BTIME['ADDED'] == 0) { cb['sendNotice']('There is 1 minute remaining!', '', COLOR.DEFAULT, '') } } function minuteWarning() { var _0xb6b5x49 = CTminsLeft(); var _0xb6b5x51 = [2, 3, 4, 5, 7, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60]; cb['log']('minuteWarning mins: ' + _0xb6b5x49); if (_0xb6b5x51['indexOf'](_0xb6b5x49) >= 0) { CTminsLeftNotice(_0xb6b5x49) }; if (_0xb6b5x49 == 1) { CTminLeftNotice(_0xb6b5x49) }; if (_0xb6b5x49 != 0) { cb['setTimeout'](minuteWarning, 60000) } else { CTtimerIsUp() } } function CTminsLeft() { if (CTTIME['STARTTIME'] != 0) { var _0xb6b5x53 = new Date(); CTTIME['DURATION'] = parseInt(CTTIME.DURATION, 10); var timeLeft = CTTIME['STARTTIME']['getHours']() * 3600 + CTTIME['STARTTIME']['getMinutes']() * 60 + CTTIME['STARTTIME']['getSeconds']() + CTTIME['DURATION'] * 60 - _0xb6b5x53['getHours']() * 3600 - _0xb6b5x53['getMinutes']() * 60 - _0xb6b5x53['getSeconds'](); timeLeft = parseInt(timeLeft, 10) / 60; timeLeft = parseInt(timeLeft, 10); cb['log']('1 mins: ' + timeLeft); cb['log']('2 mins: ' + timeLeft); cb['log']('3 mins: ' + timeLeft); cb['log']('4 mins: ' + timeLeft); CTTIME['ADDED'] = parseInt(CTTIME.ADDED, 10); timeLeft = timeLeft + CTTIME['ADDED']; cb['log']('5 mins: ' + timeLeft); timeLeft = parseInt(timeLeft, 10); cb['log']('6 mins: ' + timeLeft); cb['log']('CTminsLeft mins: ' + timeLeft); cb['log'](_0xb6b5x53['getHours']() * 60 + ' ' + _0xb6b5x53['getMinutes']() + ' ' + CTTIME['STARTTIME']['getHours']() * 60 + ' ' + CTTIME['STARTTIME']['getMinutes']()); cb['log'](CTTIME['ADDED'] + ' ' + CTTIME['DURATION']); return timeLeft } } function timeLeft(user) { if (BTIME['STARTTIME'] != 0) { var _0xb6b5x53 = new Date(); var timeLeft = BTIME['STARTTIME']['getHours']() * 3600 + BTIME['STARTTIME']['getMinutes']() * 60 + BTIME['STARTTIME']['getSeconds']() + BTIME['DURATION'] * 60 - _0xb6b5x53['getHours']() * 3600 - _0xb6b5x53['getMinutes']() * 60 - _0xb6b5x53['getSeconds'](); var _0xb6b5x55 = timeLeft / 3600; _0xb6b5x55 = Math['floor'](_0xb6b5x55); var _0xb6b5x56 = (timeLeft - _0xb6b5x55 * 3600) / 60; _0xb6b5x56 = Math['floor'](_0xb6b5x56); var _0xb6b5x57 = timeLeft - _0xb6b5x55 * 3600 - _0xb6b5x56 * 60; _0xb6b5x56 += BTIME['ADDED']; if (_0xb6b5x55 < 0) { _0xb6b5x55 = 0; _0xb6b5x56 = 0 }; if (_0xb6b5x55 > 0) { if (_0xb6b5x55 > 9) { if (_0xb6b5x56 > 9 && _0xb6b5x57 > 9) { cb['sendNotice']('Time Remaining: ' + _0xb6b5x55 + ':' + _0xb6b5x56 + ':' + _0xb6b5x57, user, COLOR.DEFAULT) } else { if (_0xb6b5x56 > 9 && _0xb6b5x57 <= 9) { cb['sendNotice']('Time Remaining: ' + _0xb6b5x55 + ':' + _0xb6b5x56 + ':0' + _0xb6b5x57, user, COLOR.DEFAULT) } else { if (_0xb6b5x56 <= 9 && _0xb6b5x57 > 9) { cb['sendNotice']('Time Remaining: ' + _0xb6b5x55 + ':' + _0xb6b5x56 + ':' + _0xb6b5x57, user, COLOR.DEFAULT) } else { if (_0xb6b5x56 <= 9 && _0xb6b5x57 <= 9) { cb['sendNotice']('Time Remaining: ' + _0xb6b5x55 + ':' + _0xb6b5x56 + ':0' + _0xb6b5x57, user, COLOR.DEFAULT) } } } } } else { if (_0xb6b5x56 > 9 && _0xb6b5x57 > 9) { cb['sendNotice']('Time Remaining: 0' + _0xb6b5x55 + ':' + _0xb6b5x56 + ':' + _0xb6b5x57, user, COLOR.DEFAULT) } else { if (_0xb6b5x56 > 9 && _0xb6b5x57 <= 9) { cb['sendNotice']('Time Remaining: 0' + _0xb6b5x55 + ':' + _0xb6b5x56 + ':0' + _0xb6b5x57, user, COLOR.DEFAULT) } else { if (_0xb6b5x56 <= 9 && _0xb6b5x57 > 9) { cb['sendNotice']('Time Remaining: 0' + _0xb6b5x55 + ':' + _0xb6b5x56 + ':' + _0xb6b5x57, user, COLOR.DEFAULT) } else { if (_0xb6b5x56 <= 9 && _0xb6b5x57 <= 9) { cb['sendNotice']('Time Remaining: 0' + _0xb6b5x55 + ':' + _0xb6b5x56 + ':0' + _0xb6b5x57, user, COLOR.DEFAULT) } } } } } } else { if (_0xb6b5x55 == 0 && _0xb6b5x56 > 0) { if (_0xb6b5x56 > 9 && _0xb6b5x57 > 9) { cb['sendNotice']('Time Remaining: 00:' + _0xb6b5x56 + ':' + _0xb6b5x57, user, COLOR.DEFAULT) } else { if (_0xb6b5x56 > 9 && _0xb6b5x57 <= 9) { cb['sendNotice']('Time Remaining: 00:' + _0xb6b5x56 + ':0' + _0xb6b5x57, user, COLOR.DEFAULT) } else { if (_0xb6b5x56 <= 9 && _0xb6b5x57 > 9) { cb['sendNotice']('Time Remaining: 00:0' + _0xb6b5x56 + ':' + _0xb6b5x57, user, COLOR.DEFAULT) } else { if (_0xb6b5x56 <= 9 && _0xb6b5x57 <= 9) { cb['sendNotice']('Time Remaining: 00:0' + _0xb6b5x56 + ':0' + _0xb6b5x57, user, COLOR.DEFAULT) } } } } } else { if (_0xb6b5x55 == 0 && _0xb6b5x56 == 0 && _0xb6b5x57 > 0) { if (_0xb6b5x57 > 9) { cb['sendNotice']('Time Remaining: 00:00' + ':' + _0xb6b5x57, user, COLOR.DEFAULT) } else { cb['sendNotice']('Time Remaining: 00:00' + ':0' + _0xb6b5x57, user, COLOR.DEFAULT) } } else { cb['sendNotice']('hours: ' + _0xb6b5x55 + '\x0Aminutes: ' + _0xb6b5x56 + '\x0Aseconds: ' + _0xb6b5x57) } } } } else { cb['sendNotice']('There is no timer running.', user, '#fee') } } function addTime(_0xb6b5x3e, _0xb6b5x38) { if (_0xb6b5x3e.toString()['indexOf']('.') == -1) { if (BTIME['STARTTIME'] != 0) { BTIME['ADDED'] = Number['parseInt'](_0xb6b5x3e, 10); if (BTIME['ADDED'] == 1) { cb['sendNotice'](_0xb6b5x38 + ' has added 1 minute to the timer!', '', COLOR.DEFAULT, '') } else { cb['sendNotice'](_0xb6b5x38 + ' has added ' + BTIME['ADDED'] + ' minutes to the timer!', '', COLOR.DEFAULT, '') } } else { cb['sendNotice']('There is no timer running.', _0xb6b5x38, '#fee') } } else { if (_0xb6b5x3e != null) { cb['sendNotice'](_0xb6b5x3e + ' is not a valid option for /addtime.\x0AType /ubhelp addtime to see how to use /addtime.', _0xb6b5x38, '#fee') } else { if (_0xb6b5x3e == null) { cb['sendNotice']('You did not enter a valid option for /addtime.\x0AType /ubhelp addtime to see how to use /addtime.', _0xb6b5x38, '#fee') } } } } function CTaddTime(_0xb6b5x3e, _0xb6b5x38) { if (_0xb6b5x3e.toString()['indexOf']('.') == -1) { if (CTTIME['STARTTIME'] != 0) { CTTIME['ADDED'] = Number['parseInt'](_0xb6b5x3e, 10); if (CTTIME['ADDED'] == 1) { cb['sendNotice'](_0xb6b5x38 + ' has added 1 minute to the timer!', '', COLOR.DEFAULT, '') } else { cb['sendNotice'](_0xb6b5x38 + ' has added ' + CTTIME['ADDED'] + ' minutes to the timer!', '', COLOR.DEFAULT, '') } } else { cb['sendNotice']('There is no timer running.', _0xb6b5x38, '#fee') } } else { if (_0xb6b5x3e != null) { cb['sendNotice'](_0xb6b5x3e + ' is not a valid option for /addtime.\x0AType /ubhelp addtime to see how to use /addtime.', _0xb6b5x38, '#fee') } else { if (_0xb6b5x3e == null) { cb['sendNotice']('You did not enter a valid option for /addtime.\x0AType /ubhelp addtime to see how to use /addtime.', _0xb6b5x38, '#fee') } } } } function sendWhisper(_0xb6b5x5b, _0xb6b5x5c, _0xb6b5x38, _0xb6b5x5d) { var _0xb6b5x5e = _0xb6b5x5b[1]; if (_0xb6b5x5e != '' && _0xb6b5x5e != ' ' && _0xb6b5x5e != '' && _0xb6b5x5e != ' ') { if (_0xb6b5x5e == 'thewholecrew') { _0xb6b5x5e = '' }; if (_0xb6b5x5e != _0xb6b5x5c) { if (!cbjs['arrayContains'](GROUP['IGNORE'][findIgnorer(_0xb6b5x5e)], _0xb6b5x5c) || _0xb6b5x38 == 'true') { switch (Number['parseInt'](GROUP['IGNORE'][findIgnorer(_0xb6b5x5e)][1])) { case 0: var _0xb6b5xf = _0xb6b5x5c + ': '; for (var _0xb6b5x17 = 2; _0xb6b5x17 < _0xb6b5x5b['length']; _0xb6b5x17++) { if (_0xb6b5x17 == 2) { _0xb6b5xf += _0xb6b5x5b[_0xb6b5x17] } else { _0xb6b5xf += ' ' + _0xb6b5x5b[_0xb6b5x17] } }; GROUP['WHISPER'][findWhisper(_0xb6b5x5e)][1] = _0xb6b5x5c; cb['sendNotice'](_0xb6b5xf, _0xb6b5x5e, COLOR.DEFAULT); break; case 1: if (_0xb6b5x5d || _0xb6b5x38) { var _0xb6b5xf = _0xb6b5x5c + ': '; for (var _0xb6b5x17 = 2; _0xb6b5x17 < _0xb6b5x5b['length']; _0xb6b5x17++) { if (_0xb6b5x17 == 2) { _0xb6b5xf += _0xb6b5x5b[_0xb6b5x17] } else { _0xb6b5xf += ' ' + _0xb6b5x5b[_0xb6b5x17] } }; GROUP['WHISPER'][findWhisper(_0xb6b5x5e)][1] = _0xb6b5x5c; cb['sendNotice'](_0xb6b5xf, _0xb6b5x5e, COLOR.DEFAULT) } else { cb['sendNotice'](_0xb6b5x5e + ' is ignoring whispers from all members who don\'t have tokens.', _0xb6b5x5c, '#fee') }; break; case 2: if (Number['parseInt'](GROUP['TIPPER'][findTipper(_0xb6b5x5c)][1], 10) > 0 || _0xb6b5x38) { var _0xb6b5xf = _0xb6b5x5c + ': '; for (var _0xb6b5x17 = 2; _0xb6b5x17 < _0xb6b5x5b['length']; _0xb6b5x17++) { if (_0xb6b5x17 == 2) { _0xb6b5xf += _0xb6b5x5b[_0xb6b5x17] } else { _0xb6b5xf += ' ' + _0xb6b5x5b[_0xb6b5x17] } }; GROUP['WHISPER'][findWhisper(_0xb6b5x5e)][1] = _0xb6b5x5c; cb['sendNotice'](_0xb6b5xf, _0xb6b5x5e, COLOR.DEFAULT) } else { cb['sendNotice'](_0xb6b5x5e + ' is ignoring whispers from all members who haven\'t tipped any tokens.', _0xb6b5x5c, '#fee') }; break; case 3: if (Number['parseInt'](GROUP['TIPPER'][findTipper(_0xb6b5x5c)][1], 10) > 10 || _0xb6b5x38) { var _0xb6b5xf = _0xb6b5x5c + ': '; for (var _0xb6b5x17 = 2; _0xb6b5x17 < _0xb6b5x5b['length']; _0xb6b5x17++) { if (_0xb6b5x17 == 2) { _0xb6b5xf += _0xb6b5x5b[_0xb6b5x17] } else { _0xb6b5xf += ' ' + _0xb6b5x5b[_0xb6b5x17] } }; GROUP['WHISPER'][findWhisper(_0xb6b5x5e)][1] = _0xb6b5x5c; cb['sendNotice'](_0xb6b5xf, _0xb6b5x5e, COLOR.DEFAULT) } else { cb['sendNotice'](_0xb6b5x5e + ' is ignoring whispers from all members who haven\'t tipped at least 10 tokens.', _0xb6b5x5c, '#fee') }; break; case 4: if (Number['parseInt'](GROUP['TIPPER'][findTipper(_0xb6b5x5c)][1], 10) > 100 || _0xb6b5x38) { var _0xb6b5xf = _0xb6b5x5c + ': '; for (var _0xb6b5x17 = 2; _0xb6b5x17 < _0xb6b5x5b['length']; _0xb6b5x17++) { if (_0xb6b5x17 == 2) { _0xb6b5xf += _0xb6b5x5b[_0xb6b5x17] } else { _0xb6b5xf += ' ' + _0xb6b5x5b[_0xb6b5x17] } }; GROUP['WHISPER'][findWhisper(_0xb6b5x5e)][1] = _0xb6b5x5c; cb['sendNotice'](_0xb6b5xf, _0xb6b5x5e, COLOR.DEFAULT) } else { cb['sendNotice'](_0xb6b5x5e + ' is ignoring whispers from all members who haven\'t tipped at least 100 tokens.', _0xb6b5x5c, '#fee') }; break; case 5: cb['sendNotice'](_0xb6b5x5e + ' is ignoring whispers from everyone.', _0xb6b5x5c, '#fee'); break } } else { cb['sendNotice'](_0xb6b5x5b[1] + ' is ignoring whispers from you. Your message was not sent.', _0xb6b5x5c, '#fee') } } else { cb['sendNotice']('Talking to yourself is a little odd...', _0xb6b5x5c, '#fee') } } else { cb['sendNotice']('Now lets be real here... youve been caught.. caught as fuck. Try that PM again, now without the extra spaces in the front.', _0xb6b5x5c, '#fee') } } function sendReply(_0xb6b5x5b, _0xb6b5x5c) { if (!cbjs['arrayContains'](GROUP['IGNORE'][findIgnorer(GROUP['WHISPER'][findWhisper(_0xb6b5x5c)][1])], _0xb6b5x5c)) { if (GROUP['WHISPER'][findWhisper(_0xb6b5x5c)][1] != '') { var _0xb6b5xf = _0xb6b5x5c + ': '; for (var _0xb6b5x17 = 1; _0xb6b5x17 < _0xb6b5x5b['length']; _0xb6b5x17++) { if (_0xb6b5x17 == 1) { _0xb6b5xf += _0xb6b5x5b[_0xb6b5x17] } else { _0xb6b5xf += ' ' + _0xb6b5x5b[_0xb6b5x17] } }; GROUP['WHISPER'][findWhisper(GROUP['WHISPER'][findWhisper(_0xb6b5x5c)][1])][1] = _0xb6b5x5c; cb['sendNotice'](_0xb6b5xf, GROUP['WHISPER'][findWhisper(_0xb6b5x5c)][1], COLOR.DEFAULT) } else { cb['sendNotice']('No one has whispered you.', _0xb6b5x5c, '#fee') } } else { cb['sendNotice'](GROUP['WHISPER'][findWhisper(_0xb6b5x5c)][1] + ' is ignoring whispers from you. Your message was not sent.', _0xb6b5x5c, '#fee') } } function ignoreUser(user, _0xb6b5x5c) { if (user != null && (user != '' || user != ' ' || user != '\xA0')) { if (cbjs['arrayContains'](GROUP['IGNORE'][findIgnorer(_0xb6b5x5c)], user)) { if (user == _0xb6b5x5c) { cb['sendNotice']('You can\'t ignore yourself. I advise you to go to a therapist.', _0xb6b5x5c, '#fee') } else { cb['sendNotice']('You are already ignoring that user\'s whispers.', _0xb6b5x5c, '#fee') } } else { GROUP['IGNORE'][findIgnorer(_0xb6b5x5c)][GROUP['IGNORE'][findIgnorer(_0xb6b5x5c)]['length']] = user; cb['sendNotice']('You are now ignoring whispers from ' + user + '.', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('Remember, the room host, moderators, and fan club members will always be able to whisper you!', user, COLOR.DEFAULT) } } else { cb['sendNotice']('You didn\'t specify who you want to ignore.\x0AType "/ubhelp ignore" to see how to use /ignore.', user, '#fee') } } function unignoreUser(user, _0xb6b5x5c) { if (user != null && (user != '' || user != ' ' || user != '\xA0')) { if (user == _0xb6b5x5c) { cb['sendNotice']('Are you trying to un-ignore yourself? You really are a weird one, mate.', _0xb6b5x5c, '#fee') } else { if (cbjs['arrayContains'](GROUP['IGNORE'][findIgnorer(_0xb6b5x5c)], user)) { cbjs['arrayRemove'](GROUP['IGNORE'][findIgnorer(_0xb6b5x5c)], user); cb['sendNotice']('You are no longer ignoring whispers from ' + user, _0xb6b5x5c, COLOR.DEFAULT) } else { cb['sendNotice'](user + ' is not being ignored. There is no need to unignore ' + user, _0xb6b5x5c, '#fee') } } } else { cb['sendNotice']('You didn\'t specify who you want to un-ignore.\x0AType "/ubhelp ignore" to see how to use /unignore.', user, '#fee') } } function setIgnoreLevel(_0xb6b5x63, user) { GROUP['IGNORE'][findIgnorer(user)][1] = _0xb6b5x63; switch (Number['parseInt'](_0xb6b5x63, 10)) { case 0: cb['sendNotice']('You have set your whisper ignore level to ' + _0xb6b5x63 + '.\x0AYou are accepting whispers from everyone.', user, COLOR.DEFAULT); break; case 1: cb['sendNotice']('You have set your whisper ignore level to ' + _0xb6b5x63 + '.\x0AYou are accepting whispers from everyone who has tokens.', user, COLOR.DEFAULT); break; case 2: cb['sendNotice']('You have set your whisper ignore level to ' + _0xb6b5x63 + '.\x0AYou are accepting whispers from everyone who has tipped at least 1 token.', user, COLOR.DEFAULT); break; case 3: cb['sendNotice']('You have set your whisper ignore level to ' + _0xb6b5x63 + '.\x0AYou are accepting whispers from everyone who has tipped at least 10 tokens.', user, COLOR.DEFAULT); break; case 4: cb['sendNotice']('You have set your whisper ignore level to ' + _0xb6b5x63 + '.\x0AYou are accepting whispers from everyone who has tipped at least 100 tokens.', user, COLOR.DEFAULT); break; case 5: cb['sendNotice']('You have set your whisper ignore level to ' + _0xb6b5x63 + '.\x0AYou aren\'t accepting whispers from anyone.', user, COLOR.DEFAULT); break }; cb['sendNotice']('Remember, the room host, moderators, and fan club members will always be able to whisper you!', user, COLOR.DEFAULT) } function eMod(_0xb6b5x65, user, _0xb6b5x5c) { if (user != null && (user != '' || user != ' ')) { if (_0xb6b5x65 == 'add') { if (!cbjs['arrayContains'](GROUP.MOD, user)) { if (!cbjs['arrayContains'](GROUP.EMOD, user)) { emodPopulate(user); cb['sendNotice']('Emergency moderator powers have been granted to ' + user, _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('You have been granted emergency moderator powers by ' + _0xb6b5x5c, user, '#efe') } else { cb['sendNotice'](user + ' has already been granted emergency moderator powers.', _0xb6b5x5c, '#fee') } } else { cb['sendNotice']('This user is already a regular moderator or the room host.', _0xb6b5x5c, '#fee') } } else { if (_0xb6b5x65 == 'remove') { if (cbjs['arrayContains'](GROUP.EMOD, user)) { cbjs['arrayRemove'](GROUP.EMOD, user); cb['sendNotice']('Emergency moderator powers have been removed from ' + user, _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('Your emergency moderator powers have been removed by ' + _0xb6b5x5c, user, '#fee') } else { cb['sendNotice'](user + ' has not been granted emergency moderator powers.', _0xb6b5x5c, '#fee') } } else { cb['sendNotice'](_0xb6b5x65 + ' is not a valid option for /emod. Type "/ubhelp emod" to see how to use /emod.', _0xb6b5x5c, '#fee') } } } else { cb['sendNotice']('You didn\'t specify who should have emergency moderator powers granted to or revoked from.\x0AType "/ubhelp emod" to see how to use /emod.', _0xb6b5x5c, '#fee') } } function sillyMod(_0xb6b5x65, user, _0xb6b5x5c) { if (user != null && (user != '' || user != ' ')) { if (_0xb6b5x65 == 'add') { if (!cbjs['arrayContains'](GROUP.MOD, user)) { if (!cbjs['arrayContains'](GROUP.SILLYMOD, user)) { sillyPopulate(user); cb['sendNotice']('Silly moderator powers have been granted to ' + user, _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('PS: ' + user + ' has not been notified of this.. It\'s a secret! Muhahaha', _0xb6b5x5c, COLOR.DEFAULT) } else { cb['sendNotice'](user + ' has already been granted silly moderator powers.', _0xb6b5x5c, '#fee') } } else { cb['sendNotice']('This user is already a regular moderator or the room host.', _0xb6b5x5c, '#fee') } } else { if (_0xb6b5x65 == 'remove') { if (cbjs['arrayContains'](GROUP.SILLYMOD, user)) { cbjs['arrayRemove'](GROUP.SILLYMOD, user); cb['sendNotice']('Silly moderator powers have been removed from ' + user, _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('PS: ' + user + ' has not been notified of this.. It\'s a secret! Muhahaha', _0xb6b5x5c, COLOR.DEFAULT) } else { cb['sendNotice'](user + ' has not been granted silly moderator powers, so you cant remove them.', _0xb6b5x5c, '#fee') } } else { cb['sendNotice'](_0xb6b5x65 + ' is not a valid option for /sillymod. Type "/ubhelp sillymod" to see how to use /sillymod.', _0xb6b5x5c, '#fee') } } } else { cb['sendNotice']('You didn\'t specify who should have silly moderator powers granted to or revoked from.\x0AType "/ubhelp sillymod" to see how to use /sillymod.', _0xb6b5x5c, '#fee') } } function help(_0xb6b5x68, _0xb6b5x5c) { var _0xb6b5x69 = false; if (_0xb6b5x68 == null) { _0xb6b5x68 = '' }; switch (_0xb6b5x68) { case '': _0xb6b5x69 = true; cb['sendNotice']('Ultra Bot Help Menu', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('Type /ubhelp x, where x is one of the following choices, for more detailed information.' + '\x0AEx: /ubhelp commands', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('commands\x0A' + 'nicelist\x0A' + 'graylist\x0A' + 'about', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'commands': _0xb6b5x69 = true; cb['sendNotice']('Ultra Bot Command List', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('Type /ubhelp x, where x is one of the following commands, for more detailed information.' + '\x0AEx: /ubhelp silencelevel', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/cn' + '\x0A/cnd' + '\x0A/cndh' + '\x0A/cnh' + '\x0A/bc' + '\x0A/tm' + '\x0A/tbm' + '\x0A/tv' + '\x0A/tprice' + '\x0A/next' + '\x0A/presaleon' + '\x0A/presaleoff' + '\x0A/tlist' + '\x0A/addlist' + '\x0A/email' + '\x0A/emlist' + '\x0A/rn1start' + '\x0A/rn2start' + '\x0A/rn1stop' + '\x0A/rn2stop' + '\x0A/rn1to2' + '\x0A/rn3start' + '\x0A/rn3stop' + '\x0A/rn2to3' + '\x0A/silencelevel' + '\x0A/graphiclevel' + '\x0A/silence' + '\x0A/unsilence' + '\x0A/ninja' + '\x0A/unninja' + '\x0A/starttimer' + '\x0A/ctstarttimer' + '\x0A/addtime' + '\x0A/ctaddtime' + '\x0A/timeleft' + '\x0A/cttimeleft' + '\x0A/whisper' + '\x0A/reply' + '\x0A/ignore' + '\x0A/unignore' + '\x0A/ignorelevel' + '\x0A/emod' + '\x0A/sillymod' + '\x0A/addnice' + '\x0A/removenice' + '\x0A/addgray' + '\x0A/removegray' + '\x0A/leaderboard' + '\x0A/tippers' + '\x0A/kingtipper' + '\x0A/kingspam' + '\x0A/notifierspam' + '\x0A/wordlist' + '\x0A/blocknotice' + '\x0A/ubhelp', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'kingtipper': _0xb6b5x69 = true; cb['sendNotice']('/kingtipper Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/kingtipper is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using kingtipper is /kingtipper x, where x is either on or off. ' + 'Using this command toggles the message "We have a new King! All hail x!"', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'addlist': _0xb6b5x69 = true; cb['sendNotice']('/addlist Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/addlist is a command that is usable by moderators and room hosts.' + 'Using this command lists all ticktholders with /add in-front', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'rn1start': _0xb6b5x69 = true; cb['sendNotice']('/rn1start Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/rn1start is a command that is usable by moderators and room hosts.' + 'Using this command starts the first roatating notifier', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'rn1stop': _0xb6b5x69 = true; cb['sendNotice']('/rn1stop Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/rn1stop is a command that is usable by moderators and room hosts.' + 'Using this command stops the first roatating notifier', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'rn2start': _0xb6b5x69 = true; cb['sendNotice']('/rn2startstart Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/rn2start is a command that is usable by moderators and room hosts.' + 'Using this command starts the second roatating notifier', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'rn2stop': _0xb6b5x69 = true; cb['sendNotice']('/rn2stop Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/rn2stop is a command that is usable by moderators and room hosts.' + 'Using this command stops the second roatating notifier', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'rn1to2': _0xb6b5x69 = true; cb['sendNotice']('/rn1to2 Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/rn1to2 is a command that is usable by moderators and room hosts.' + 'Using this command stops the first roatating notifier and starts the second', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'rn3start': _0xb6b5x69 = true; cb['sendNotice']('/rn3startstart Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/rn3start is a command that is usable by moderators and room hosts.' + 'Using this command starts the third roatating notifier', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'rn3stop': _0xb6b5x69 = true; cb['sendNotice']('/rn3stop Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/rn3stop is a command that is usable by moderators and room hosts.' + 'Using this command stops the third roatating notifier', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'rn2to3': _0xb6b5x69 = true; cb['sendNotice']('/rn2to3 Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/rn2to3 is a command that is usable by moderators and room hosts.' + 'Using this command stops the first roatating notifier and starts the third', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'wordlist': _0xb6b5x69 = true; cb['sendNotice']('/wordlist Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/wordlist is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using wordlist is /wordlist x, where x is either on or off. ' + 'Using this command toggles the Gray Wordlist.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'blocknotice': _0xb6b5x69 = true; cb['sendNotice']('/blocknotice Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/blocknotice is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using blocknotice is /blocknotice x, where x is either on or off. ' + 'Using this command toggles the "Your message has been flagged by the wordlist" warning.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'cn': ; case 'sendnotice': _0xb6b5x69 = true; cb['sendNotice']('/cn Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/cn is a command that is usable by moderators and room hosts.\x0A' + 'The syntax for this command is /cn x, where x is the message you want to send to the main chat.\x0A' + 'Using "/cn r x" - where x is the message to be sent - will send the message in red ' + 'instead of the default color for notices.\x0A' + '/sendnotice is also a command that will send notices to the chat.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'cnd': _0xb6b5x69 = true; cb['sendNotice']('/cnd Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/cnd is a command that is usable by moderators and room hosts.\x0A' + 'The syntax for this command is /cnd x, where x is the message you want to send to the main chat.\x0A' + 'The message will be sent with divider lines.\x0A' + 'Using "/cnd r x" - where x is the message to be sent - will send the message in red ' + 'instead of the default color for notices.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'cndh': _0xb6b5x69 = true; cb['sendNotice']('/cndh Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/cndh is a command that is usable by moderators and room hosts.\x0A' + 'The syntax for this command is /cndh x, where x is the message you want to send to the main chat.\x0A' + 'The message will be sent highlighted and with divider lines.\x0A' + 'Using "/cndh r x" - where x is the message to be sent - will send the message in red ' + 'instead of the default color for notices.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'cnh': _0xb6b5x69 = true; cb['sendNotice']('/cnh Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/cnh is a command that is usable by moderators and room hosts.\x0A' + 'The syntax for this command is /cnh x, where x is the message you want to send to the main chat.\x0A' + 'The message will be sent highlighted.\x0A' + 'Using "/cnh r x" - where x is the message to be sent - will send the message in red ' + 'instead of the default color for notices.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'bc': ; case 'pmm': _0xb6b5x69 = true; cb['sendNotice']('/bc Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/bc is a command that is usable by moderators.\x0A' + 'The syntax for this command is /bc x, where x is the message you want to send privately to the room host.\x0A' + 'This can also be done using /pmm x.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'tm': _0xb6b5x69 = true; cb['sendNotice']('/tm Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/tm is a command that is usable by moderators and room hosts.\x0A' + 'The syntax for this command is /tm x, where x is the message you want to send privately to ' + 'all moderators as a group.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'tbm': _0xb6b5x69 = true; cb['sendNotice']('/tbm Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/tm is a command that is usable by moderators and room hosts.\x0A' + 'The syntax for this command is /tm x, where x is the message you want to send privately to ' + 'all moderators as a group and the room host.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'tv': _0xb6b5x69 = true; cb['sendNotice']('/tv Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/tv is a command that is usable by moderators and room hosts.\x0A' + 'The syntax for this command is /tv x y, where x is the user who will receive the message, ' + 'and y is the message to be sent.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'nicelist': _0xb6b5x69 = true; cb['sendNotice']('The Nice List', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('Sometimes, there are users whose comments are desirable, ' + 'but they either do not have tokens or do not tip frequently. ' + 'When rooms get rowdy, hosts and mods are forced to do things like ' + 'silence users without tokens or who have not tipped and those groups ' + 'often include the users whose comments hosts would like to see. ' + 'To fix this problem, hosts and mods can add users to the Nice List. ' + 'Users who are on the nice list can send messages regardless of the global silence setting.\x0A' + 'To show the nice list at any time, type /nicelist.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'graylist': ; case 'greylist': _0xb6b5x69 = true; cb['sendNotice']('The "Gray" List', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('Sometimes, there are users whose comments are there are users whose comments are annoying, ' + 'in spite of the fact that they may have tokens or even tip. ' + 'It isn\'t always desirable to silence these people entirely, especially if they\'ve been tipping, ' + 'but it can be useful to apply the same word list restrictions that apply to gray users ' + 'so that the more annoying messages don\'t get through to the room. ' + 'To fix this problem, hosts and mods can add users to the "Gray" List. ' + 'Users who are on the Gray List will have their messages subjected to the wordlists that apply to grays.\x0A' + 'To show the gray list at any time, type /graylist or /greylist.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'viplist': _0xb6b5x69 = true; cb['sendNotice']('The VIP List', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('Sometimes, there\'re users who are trusted regulars, and then the room host decides to do a "CrazyTicket" show, ' + 'but these users don\'t have tokens to buy a ticket. ' + 'It isn\'t always desirable (and it may even seem unfair) to leave these users out of the show. ' + 'To fix this problem, hosts and mods can add these users to the VIP List. ' + 'Users who are on the VIP List will have free access to any future CrazyTicket show, provided the list is exported to the app via the "/export" command.\x0A' + 'To show the VIP list at any time, type /viplist.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'about': _0xb6b5x69 = true; cb['sendNotice']('About Ultra Bot', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('"18yearoldcouple\'s Ultra Bot" is a fork of Ultra Bot, created by Shaggy of 18yearoldcouple, ' + 'and is being actively developed. ' + 'The Original Ultra Bot was written by Justin of the Chaturbate couple britney_and_justin.' + '\x0AComments, suggestions, requests, and bug reports can be communicated by either emailing 18yearoldcouple@gmail.com, ' + 'or by talking to Shaggy in 18yearoldcouple\'s room.' + '\x0AThe purpose of this bot is to make the lives of hosts and mods as easy as possible. ' + 'It adds popular features such as King Tipper, Leader Board, and Notifier, pre-silences abusive messages, ' + 'grants quite a bit of power to moderators, and allows private messages to be sent in the main chat window.' + '\x0AIt also has two new features called the "Gray List" and the "Nice List".', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'next': _0xb6b5x69 = true; cb['sendNotice']('Next', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/next is a commands to advance to the next ticket sale price. ', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'silencelevel': _0xb6b5x69 = true; cb['sendNotice']('/silencelevel Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/silencelevel is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using silencelevel is "/silencelevel x", where x is a number between 0 and 3.' + '\x0ASetting the Silence Level to 0 will grant voice privileges to all users, ' + 'setting it to 1 will revoke voice privileges from users without tokens, ' + 'setting it to 2 will revoke voice privileges from users who have not tipped, ' + 'and setting it to 3 will revoke voice privileges from users who have not tipped at least 10 tokens.\x0A\x0A' + 'The levels below should be used only in extreme cases.\x0A' + 'Level 4 will grant chat privileges only to users who tipped at least 100 tokens, ' + 'and level 5 will grant these privileges only to moderators, emergency moderators, and fan club members.\x0A' + '\x0AThe default setting for /silencelevel is 0.' + '\x0ARoom hosts, moderators, and fan club members are unaffected by the Silence Level.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'graphiclevel': _0xb6b5x69 = true; cb['sendNotice']('/graphiclevel Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/graphiclevel is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using graphiclevel is "/graphiclevel x", where x is a number between 0 and 3.' + '\x0ASetting the Graphic Level to 0 will grant graphic usage privileges to all users, ' + 'setting it to 1 will revoke graphic usage privileges from users without tokens, ' + 'setting it to 2 will revoke graphic usage privileges from users who have not tipped, ' + 'and setting it to 3 will revoke graphic usage privileges from users who have not tipped at least 10 tokens.\x0A\x0A' + 'The levels below should be used only in extreme cases.\x0A' + 'Level 4 will grant graphic usage privileges only to users who tipped at least 100 tokens, ' + 'and level 5 will grant these privileges only to moderators, emergency moderators, and fan club members.\x0A' + '\x0AThe default setting for /graphiclevel is 0.' + '\x0ARoom hosts, moderators, and fan club members are unaffected by the Graphic Level.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'silence': _0xb6b5x69 = true; cb['sendNotice']('/silence Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/silence is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using silence is "/silence x", where x is the username of the user you want to silence.' + '\x0AThe effect of /silence is the same as Chaturbate\'s silence feature, ' + 'except that it lasts for the duration of the current session instead of for six hours.' + '\x0AThe effect of /silence can be reversed by using the command /unsilence.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'unsilence': _0xb6b5x69 = true; cb['sendNotice']('/unsilence Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/unsilence is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using unsilence is "/unsilence x", where x is the username of the user you want to unsilence.' + '\x0Aunsilence simply grants voice privileges back to a user who was previously silenced.' + '\x0ANOTE: /unsilence WILL NOT undo the effect of Chaturbate\'s silence feature!' + '\x0A/unsilence WILL ONLY reverse the effect of /silence!', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'starttimer': _0xb6b5x69 = true; cb['sendNotice']('/starttimer Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/starttimer is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using starttimer is "/starttimer x", where x is the desired duration of the timer in minutes.' + '\x0A/starttimer will accept whole numbers only.' + '\x0AThe timer will make announcements at five minutes remaining and at one minute remaining.' + '\x0A/addtime can be used to add time to a currently running timer.' + '\x0A/timeleft can be used to display the amount of time remaining on the timer.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'addtime': _0xb6b5x69 = true; cb['sendNotice']('/addtime Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/addtime is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using addtime is "/addtime x", where x is the amount of time you want to add in minutes.' + '\x0A/addtime will accept whole numbers only.' + '\x0ASee the help section for starttimer for more information on timers.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'ctstarttimer': _0xb6b5x69 = true; cb['sendNotice']('/ctstarttimer Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/ctstarttimer is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using ctstarttimer is "/ctstarttimer x", where x is the desired duration of the CrazyTicket timer in minutes.' + '\x0A/ctstarttimer will accept whole numbers only.' + '\x0AThe timer will make announcements at 2,3,4,5,7,10,15,20,25,30,35,40,45,50,55,60 minutes remaining.' + '\x0A/ctaddtime can be used to add time to a currently running CrazyTicket timer.' + '\x0A/cttimeleft cant be used on the CrazyTicket timer, suck it up.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'ctaddtime': _0xb6b5x69 = true; cb['sendNotice']('/ctaddtime Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/ctaddtime is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using ctaddtime is "/ctaddtime x", where x is the amount of time you want to add in minutes to the CrazyTicket timer.' + '\x0A/ctaddtime will accept whole numbers only.' + '\x0ASee the help section for ctstarttimer for more information on CrazyTicket timers.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'timeleft': _0xb6b5x69 = true; cb['sendNotice']('/timeleft Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/timeleft is a command that is usable by everyone.' + '\x0AThe syntax for using timeleft is /timeleft' + '\x0A/timeleft will display the amount of time left on the timer in the format 00:00:00' + '\x0ASee the help section for starttimer for more information on timers.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'whisper': _0xb6b5x69 = true; cb['sendNotice']('/whisper Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/whisper is a command that is usable by everyone.' + '\x0AThe syntax for using whisper is "/whisper x y", where x is the username of the user you want to send a whisper and y is the message you want to send.' + '\x0A/whisper, /w, /tell, /t, and /pm are all available commands that will send a whisper.' + '\x0AA whisper is a private message that will be sent in the main chat window.' + '\x0AOther related commands are /reply, /ignore, /unignore, and /ignorelevel.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'reply': _0xb6b5x69 = true; cb['sendNotice']('/reply Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/reply is a command that is usable by everyone.' + '\x0AThe syntax for using whisper is "/reply x", where x is message that you want to whisper to the user who most recently sent a whisper to you.' + '\x0A/reply and /r are available commands that will send a whisper in reply.' + '\x0ASee the help section for whisper for more information on whispers.' + '\x0AOther related commands are /whisper, /ignore, /unignore, and /ignorelevel.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'ignore': _0xb6b5x69 = true; cb['sendNotice']('/ignore Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/ignore is a command that is usable by everyone.' + '\x0AThe syntax for using ignore is "/ignore x", where x is the user from whom you wish to ignore whispers.' + '\x0AIgnoring a user will prevent him from sending you whispers, but it will not prevent him from talking normally in chat.' + '\x0A/unignore will reverse the effect of /ignore.' + '\x0ASee the help section for whisper for more information on whispers.' + '\x0AOther related commands are /whisper, /reply, /unignore, and /ignorelevel.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'unignore': _0xb6b5x69 = true; cb['sendNotice']('/unignore Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/unignore is a command that is usable by everyone.' + '\x0AThe syntax for using unignore is "/unignore x", where x is the user you wish to remove from your ignore list.' + '\x0ASee the help section for ignore for more information on ignoring users.' + '\x0ASee the help section for whisper for more information on whispers.' + '\x0AOther related commands are /whisper, /reply, /ignore, and /ignorelevel.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'ignorelevel': _0xb6b5x69 = true; cb['sendNotice']('/ignorelevel Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/ignorelevel is a command that is usable by everyone.' + '\x0AThe syntax for using ignorelevel is "/ignorelevel x", where x is a number between 0 and 3.' + '\x0ASetting the Ignore Level to 0 will allow all users to send you whispers, ' + 'setting it to 1 will only allow users with tokens to send you whispers, ' + 'setting it to 2 will only allow users who have tipped to send you whispers, ' + 'and setting it to 3 will only allow users who have tipped at least 10 tokens to send you whispers.' + '\x0AThe default setting for /ignorelevel is 0.' + '\x0ASee the help section for whisper for more information on whispers' + '\x0AOther related commands are /whisper, /reply, /ignore, and /unignore.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'emod': _0xb6b5x69 = true; cb['sendNotice']('/emod Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/emod is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using emod is "/emod x y", where x is either "add" or "remove" and y is the username of the user you want to either grant or revoke emergency moderator powers.' + '\x0A/emod allows moderators to quickly grant other users access to moderator-only commands in the event that he is having difficulty controlling the room by himself.' + '\x0AEmergency moderators have access to all moderator-only commands with the exceptions of /emod, /addnice, and /removenice.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'sillymod': _0xb6b5x69 = true; cb['sendNotice']('/sillymod Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/sillymod is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using sillymod is "/sillymod x y", where x is either "add" or "remove" and y is the username of the user you want to either grant or revoke silly moderator powers.' + '\x0A/sillymod allows moderators to quickly remove other moderators access to moderator-only commands in the event that a moderator is acting silly.' + '\x0ASilly moderators loose access to all moderator-only commands.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'addnice': _0xb6b5x69 = true; cb['sendNotice']('/addnice Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/addnice is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using addnice is "/addnice x", where x is the username of the user you want to add to the nice list.' + '\x0AAdding a user to the nice list guarantees that user voice and graphic usage privileges regardless of the silence, graphic, and ignore level settings. ' + 'Using /silence or /ignore will still silence or ignore a user on the nice list.' + '\x0AUsers can be removed from the nice list by using the command /removenice.' + '\x0ASee the help sections for silencelevel, graphiclevel, and ignorelevel for more information on the global settings or the help section for nicelist for more information on the nice list.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'removenice': _0xb6b5x69 = true; cb['sendNotice']('/removenice Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/removenice is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using removenice is "/removenice x", where x is the username of the user you want to remove from the nice list.' + '\x0ASee the help section for nicelist for more information on the nice list.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'addgray': ; case 'addgrey': _0xb6b5x69 = true; cb['sendNotice']('/addgray Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/addgray is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using addgray is "/addgray x", where x is the username of the user you want to add to the gray list.' + '\x0AAdding a user to the gray list subjects them to the same wordlists that apply to grays. ' + '\x0AUsers can be removed from the gray list by using the command /removegray.' + '\x0ASee the help section for graylist for more information on the gray list.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'removegray': ; case 'removegrey': _0xb6b5x69 = true; cb['sendNotice']('/removegray Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/removegray is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using removegray is "/removegray x", where x is the username of the user you want to remove from the gray list.' + '\x0ASee the help section for graylist for more information on the gray list.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'addvip': _0xb6b5x69 = true; cb['sendNotice']('/addvip Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/addvip is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using addvip is "/addvip x", where x is the username of the user you want to add to the VIP list.' + '\x0AAdding a user to the VIP list grants them free access to a future "CrazyTicket" show. ' + '\x0AUsers can be removed from the VIP list by using the command /removevip.' + '\x0ASee the help section for viplist for more information on the VIP list.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'removevip': _0xb6b5x69 = true; cb['sendNotice']('/removevip Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/removevip is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using removevip is "/removevip x", where x is the username of the user you want to remove from the VIP list.' + '\x0ASee the help section for viplist for more information on the VIP list.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'ubhelp': _0xb6b5x69 = true; cb['sendNotice']('/ubhelp Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/ubhelp is a command that is usable by everyone.' + '\x0AThe syntax for using ubhelp is "/ubhelp x", where x is the subsection of the help menu that you want to access.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'lb': ; case 'leaderboard': _0xb6b5x69 = true; cb['sendNotice']('/leaderboard Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/leaderboard is a command that is usable by everyone.' + '\x0AThe syntax for using leaderboard is "/leaderboard".' + '\x0A/leaderboard shows the top 3 tippers of the current session.' + '\x0A/Use messaging commands after /leaderboard to send leaderboard to specific people.' + '\x0A/LEADERBOARD COMMANDS:' + '\x0A"/lb tbm" (sends to broadcaster and "red")' + '\x0A"/lb tm" (sends to "red")' + '\x0A"/lb bc" (sends to broadcaster)' + '\x0A"/lb tv xyz" (to username: xyz)' + '\x0A"/lb me" (sends to only you)' + '\x0A"/lb all" (sends to everyone)', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'tips': ; case 'tippers': _0xb6b5x69 = true; cb['sendNotice']('/tippers Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/tippers is a command that is usable by everyone.' + '\x0AThe syntax for using tippers is "/tippers".' + '\x0A/tippers shows all tippers in order' + '\x0A/Use messaging commands after /tippers to send the TIPBOARD to specific people.' + '\x0A/TIPBOARD COMMANDS:' + '\x0A/(# is number of tippers to display.)' + '\x0A"/tips tbm #" (sends to broadcaster and "red")' + '\x0A"/tips tm #" (sends to "red")' + '\x0A"/tips bc #" (sends to broadcaster)' + '\x0A"/tips me #" (sends to only you)' + '\x0A"/tips #" (sends to all if mod, or you if user)' + '\x0A"/tips all #" (sends to everyone)', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'kingspam': _0xb6b5x69 = true; cb['sendNotice']('/kingspam Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/kingspam is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using kingspam is /kingspam x, where x is either on or off. ' + 'Using this command toggles the spamming of the message "Tip x to become the new King!"', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'notifierspam': _0xb6b5x69 = true; cb['sendNotice']('/notifierspam Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/notifierspam is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using notifierspam is /notifierspam x, where x is either on or off. ' + 'Using this command toggles the spamming of the periodic message defined by the host.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break; case 'leaderboardspam': _0xb6b5x69 = true; cb['sendNotice']('/leaderboardspam Help', _0xb6b5x5c, COLOR.DEFAULT); cb['sendNotice']('/leaderboardspam is a command that is usable by moderators and room hosts.' + '\x0AThe syntax for using leaderboardspam is /leaderboardspam x, where x is either on or off. ' + 'Using this command toggles the spamming of the top three tippers.', _0xb6b5x5c); cb['sendNotice']('', _0xb6b5x5c, COLOR.DEFAULT); break }; if (_0xb6b5x69 == false) { cb['sendNotice'](_0xb6b5x68 + ' is not a valid subsection of the help menu. Type /ubhelp to access the main help menu.', _0xb6b5x5c, '#fee') } } function kingSpam() { cb['setTimeout'](kingSpamTimer, LB['kingTimer'] * 60000) } function kingSpamTimer() { if (LB['kingTip'] < Number['parseInt'](cb['settings']['kingMin'], 10)) { var _0xb6b5x6c = cb['settings']['kingMin'] } else { var _0xb6b5x6c = LB['kingTip'] + 1 }; if (LB['kingTipperSpam'] == true) { cb['sendNotice']('Tip ' + _0xb6b5x6c + ' to become the new King!', '', lbback, lbtext, 'bold'); kingSpam() } } function leaderSpam() { cb['setTimeout'](leaderSpamTimer, LB['leaderTimer'] * 60000) } function leaderSpamTimer() { if (LB['leaderboardSpam'] == true) { sortTippers(); var _0xb6b5x6f = ''; for (var _0xb6b5x17 = 1; _0xb6b5x17 <= 5; _0xb6b5x17++) { if (tipperList['name'][_0xb6b5x17 - 1] == null) { _0xb6b5x6f += '\u25BA' + _0xb6b5x17 + '. --' + '\x0A' } else { _0xb6b5x6f += '\u25BA ' + _0xb6b5x17 + '. ' + '"' + tipperList['name'][_0xb6b5x17 - 1] + '"' + ': ' + tipperList['amount'][_0xb6b5x17 - 1] + '\x0A' } }; cb['sendNotice'](dashLine + '\x0A\u25BA \u25BA \u25BA LEADERBOARD \u25C4 \u25C4 \u25C4\x0A' + _0xb6b5x6f + dashLine, '', lbback, lbtext, 'bold'); leaderSpam() } } function showLeaderBoard(_0xb6b5x5c, _0xb6b5x71) { if (cb['settings']['leaderBoard'] == 'Yes') { sortTippers(); var _0xb6b5x6f = ''; for (var _0xb6b5x17 = 1; _0xb6b5x17 <= 5; _0xb6b5x17++) { if (tipperList['name'][_0xb6b5x17 - 1] == null) { _0xb6b5x6f += '\u25BA' + _0xb6b5x17 + '. --' + '\x0A' } else { _0xb6b5x6f += '\u25BA ' + _0xb6b5x17 + '. ' + '"' + tipperList['name'][_0xb6b5x17 - 1] + '"' + ': ' + tipperList['amount'][_0xb6b5x17 - 1] + '\x0A' } }; cb['sendNotice'](dashLine + '\x0A\u25BA \u25BA \u25BA LEADERBOARD \u25C4 \u25C4 \u25C4\x0A' + _0xb6b5x6f + dashLine, _0xb6b5x5c, lbback, lbtext, 'bold', _0xb6b5x71) } else { cb['sendNotice']('The room host has decided not to use the Leaderboard feature.', _0xb6b5x5c, '#fee') } } function showTippers(_0xb6b5x5c, _0xb6b5x71, _0xb6b5xd) { if (cb['settings']['leaderBoard'] == 'Yes') { sortTippers(); var _0xb6b5x6f = ''; if (_0xb6b5xd != null && !isNaN(_0xb6b5xd) && _0xb6b5xd <= 200) { var _0xb6b5x73 = _0xb6b5xd } else { var _0xb6b5x73 = 10 }; for (var _0xb6b5x17 = 1; _0xb6b5x17 <= _0xb6b5x73; _0xb6b5x17++) { if (tipperList['name'][_0xb6b5x17 - 1] == null) { _0xb6b5x6f += '\u25BA' + _0xb6b5x17 + '. --' + '\x0A' } else { _0xb6b5x6f += '\u25BA ' + _0xb6b5x17 + '. ' + '"' + tipperList['name'][_0xb6b5x17 - 1] + '"' + ': ' + tipperList['amount'][_0xb6b5x17 - 1] + '\x0A' } }; cb['sendNotice'](dashLine + '\x0A\u25BA \u25BA \u25BA TOP ' + _0xb6b5xd + ' TIPPERS \u25C4 \u25C4 \u25C4\x0A' + _0xb6b5x6f + dashLine, _0xb6b5x5c, lbback, lbtext, 'bold', _0xb6b5x71) } else { cb['sendNotice']('The room host has decided not to use the Leaderboard feature.', _0xb6b5x5c, '#fee') } } function notifierSpam() { cb['setTimeout'](notifierSpamTimer, cb['settings']['spamTimer'] * 60000) } function notifierSpamTimer() { if (LB['notifierSpamTGL'] == true) { cb['sendNotice'](RN['notifierMessage'], '', COLOR.DEFAULT, COLOR.USTARTCOLOR, 'bold'); notifierSpam() } } function nice(user, _0xb6b5x38, _0xb6b5x65) { if (_0xb6b5x65 == 'a') { if (user != null && (user != '' || user != ' ' || user != '\xA0')) { if (user != cb['room_slug'] || !cbjs['arrayContains'](GROUP.MOD, user) || cbjs['arrayContains'](GROUP.EMOD, user)) { if (!cbjs['arrayContains'](GROUP.NICE, user)) { nicePopulate(user); cb['sendNotice']('You have added ' + user + ' to the nice list.', _0xb6b5x38, COLOR.DEFAULT); cb['sendNotice'](_0xb6b5x38 + ' has added you to the nice list. You will be able to chat and use graphics regardless of the global room settings. Thank you for being nice!', user, '#efe') } else { cb['sendNotice'](user + ' is already on the nice list.', _0xb6b5x38, '#fee') } } else { cb['sendNotice']('Room hosts, moderators, and emergency moderators don\'t need to be added to the Nice List.', _0xb6b5x38, '#fee') } } else { cb['sendNotice']('You didn\'t specify who you want to add to the nice list.\x0AType "/ubhelp addnice" to see how to use /addnice.\x0A' + 'Additionally, check the nicelist help section for more info.', _0xb6b5x38, '#fee') } } else { if (_0xb6b5x65 == 'r') { if (user != null && (user != '' || user != ' ' || user != '\xA0')) { if (GROUP['NICE']['length'] > 0) { if (user == 'all') { cb['sendNotice']('You have removed all users from the nice list.', _0xb6b5x38, COLOR.DEFAULT); for (var _0xb6b5x17 = 0; _0xb6b5x17 < GROUP['NICE']['length']; _0xb6b5x17++) { cb['sendNotice'](_0xb6b5x38 + ' has removed you from the nice list.', GROUP['NICE'][_0xb6b5x17], '#fee') }; GROUP['NICE']['length'] = 0 } else { if (cbjs['arrayContains'](GROUP.NICE, user)) { cbjs['arrayRemove'](GROUP.NICE, user); cb['sendNotice']('You have removed ' + user + ' from the nice list.', _0xb6b5x38, COLOR.DEFAULT); cb['sendNotice'](_0xb6b5x38 + ' has removed you from the nice list.', user, '#fee') } else { cb['sendNotice'](user + ' is not on the nice list.', _0xb6b5x38, '#fee') } } } else { cb['sendNotice']('The nice list is currently empty.', _0xb6b5x38, '#fee') } } else { cb['sendNotice']('You didn\'t specify who you want to remove from the nice list.\x0AType "/ubhelp removenice" to see how to use /removenice.\x0A' + 'Additionally, check the nicelist help section for more info.', _0xb6b5x38, '#fee') } } } } function gray(user, _0xb6b5x38, _0xb6b5x65) { if (_0xb6b5x65 == 'a') { if (user != null && (user != '' || user != ' ' || user != '\xA0')) { if (user != cb['room_slug'] || !cbjs['arrayContains'](GROUP.MOD, user) || cbjs['arrayContains'](GROUP.EMOD, user)) { if (!cbjs['arrayContains'](GROUP.GREY, user)) { greyPopulate(user); cb['sendNotice']('You have added ' + user + ' to the gray list.', _0xb6b5x38, COLOR.DEFAULT) } else { cb['sendNotice'](user + ' is already on the gray list.', _0xb6b5x38, '#fee') } } else { cb['sendNotice']('Room hosts, moderators, and emergency moderators cannot be added to the Gray List.', _0xb6b5x38, '#fee') } } else { cb['sendNotice']('You didn\'t specify who you want to add to the gray list.\x0AType "/ubhelp addgray" to see how to use /addgray.\x0A' + 'Additionally, check the graylist help section for more info.', _0xb6b5x38, '#fee') } } else { if (_0xb6b5x65 == 'r') { if (user != null && (user != '' || user != ' ' || user != '\xA0')) { if (GROUP['GREY']['length'] > 0) { if (user == 'all') { GROUP['GREY']['length'] = 0; cb['sendNotice']('You have removed all users from the gray list.', _0xb6b5x38, COLOR.DEFAULT) } else { if (cbjs['arrayContains'](GROUP.GREY, user)) { cbjs['arrayRemove'](GROUP.GREY, user); cb['sendNotice']('You have removed ' + user + ' from the gray list.', _0xb6b5x38, COLOR.DEFAULT) } else { cb['sendNotice'](user + ' is not on the gray list.', _0xb6b5x38, '#fee') } } } else { cb['sendNotice']('The gray list is currently empty.', _0xb6b5x38, '#fee') } } else { cb['sendNotice']('You didn\'t specify who you want to remove from the gray list.\x0AType "/ubhelp removegray" to see how to use /removegray.\x0A' + 'Additionally, check the graylist help section for more info.', _0xb6b5x38, '#fee') } } } } function vip(user, _0xb6b5x38, _0xb6b5x65) { if (_0xb6b5x65 == 'a') { if (user != null && (user != '' || user != ' ' || user != '\xA0')) { if (user != cb['room_slug'] || !cbjs['arrayContains'](GROUP.MOD, user) || cbjs['arrayContains'](GROUP.EMOD, user)) { if (!cbjs['arrayContains'](GROUP.FREETICKET, user)) { freeticketPopulate(user); cb['sendNotice']('You have added ' + user + ' to the VIP list.', _0xb6b5x38, COLOR.DEFAULT); cb['sendNotice'](_0xb6b5x38 + ' has added you to the VIP list. You will have free access to any future "CrazyTicket" show.', user, '#efe') } else { cb['sendNotice'](user + ' is already on the VIP list.', _0xb6b5x38, '#fee') } } else { cb['sendNotice']('Room hosts, moderators, and emergency moderators don\'t need to be added to the VIP List.', _0xb6b5x38, '#fee') } } else { cb['sendNotice']('You didn\'t specify who you want to add to the VIP list.\x0AType "/ubhelp addvip" to see how to use /addvip.\x0A' + 'Additionally, check the viplist help section for more info.', _0xb6b5x38, '#fee') } } else { if (_0xb6b5x65 == 'r') { if (user != null && (user != '' || user != ' ' || user != '\xA0')) { if (GROUP['FREETICKET']['length'] > 0) { if (user == 'all') { cb['sendNotice']('You have removed all users from the VIP list.', _0xb6b5x38, COLOR.DEFAULT); for (var _0xb6b5x17 = 0; _0xb6b5x17 < GROUP['FREETICKET']['length']; _0xb6b5x17++) { cb['sendNotice'](_0xb6b5x38 + ' has removed you from the VIP list.', GROUP['FREETICKET'][_0xb6b5x17], '#fee') }; GROUP['FREETICKET']['length'] = 0 } else { if (cbjs['arrayContains'](GROUP.FREETICKET, user)) { cbjs['arrayRemove'](GROUP.FREETICKET, user); cb['sendNotice']('You have removed ' + user + ' from the VIP list.', _0xb6b5x38, COLOR.DEFAULT); cb['sendNotice'](_0xb6b5x38 + ' has removed you from the VIP list.', user, '#fee') } else { cb['sendNotice'](user + ' is not on the VIP list.', _0xb6b5x38, '#fee') } } } else { cb['sendNotice']('The VIP list is currently empty.', _0xb6b5x38, '#fee') } } else { cb['sendNotice']('You didn\'t specify who you want to remove from the VIP list.\x0AType "/ubhelp removevip" to see how to use /removevip.\x0A' + 'Additionally, check the viplist help section for more info.', _0xb6b5x38, '#fee') } } } } function kingSpamToggle(_0xb6b5x68, _0xb6b5x38) { if (_0xb6b5x68 != null && (_0xb6b5x68 != '' || _0xb6b5x68 != ' ')) { switch (_0xb6b5x68) { case 'on': if (kingSpam == true) { cb['sendNotice']('The King Tipper Spam is already turned on!', _0xb6b5x38, '#fee') } else { kingSpam = true; cb['sendNotice']('You have turned on the King Tipper Spam.', _0xb6b5x38, COLOR.DEFAULT) }; break; case 'off': if (kingSpam == false) { cb['sendNotice']('The King Tipper Spam is already turned off!', _0xb6b5x38, '#fee') } else { kingSpam = false; cb['sendNotice']('You have turned off the King Tipper Spam.', _0xb6b5x38, COLOR.DEFAULT) }; break; default: cb['sendNotice'](_0xb6b5x68 + ' is not a valid option for /kingspam.\x0AType /ubhelp kingspam to see how to use /kingspam.', _0xb6b5x38, '#fee'); break } } else { cb['sendNotice']('You didn\'t enter a valid option for /kingspam.\x0AType /ubhelp kingspam to see how to use /kingspam.\x0A\x0A' + 'King Tipper Spam status is: ' + (kingSpam == true ? 'On.' : 'Off.'), _0xb6b5x38, '#fee') } } function kingToggle(_0xb6b5x68, _0xb6b5x38) { if (_0xb6b5x68 != null && (_0xb6b5x68 != '' || _0xb6b5x68 != ' ')) { switch (_0xb6b5x68) { case 'on': if (LB['kingTipper'] == true) { cb['sendNotice']('The King Tipper feature is already turned on!', _0xb6b5x38, '#fee') } else { LB['kingTipper'] = true; cb['sendNotice']('You have turned on the King Tipper feature.', _0xb6b5x38, COLOR.DEFAULT) }; break; case 'off': if (LB['kingTipper'] == false) { cb['sendNotice']('The King Tipper feature is already turned off!', _0xb6b5x38, '#fee') } else { LB['kingTipper'] = false; cb['sendNotice']('You have turned off the King Tipper feature.', _0xb6b5x38, COLOR.DEFAULT) }; break; default: cb['sendNotice'](_0xb6b5x68 + ' is not a valid option for /kingtipper.\x0AType /ubhelp kingspam to see how to use /kingtipper.', _0xb6b5x38, '#fee'); break } } else { cb['sendNotice']('You didn\'t enter a valid option for /kingtipper.\x0AType /ubhelp kingtipper to see how to use /kingtipper.\x0A\x0A' + 'King Tipper status is: ' + (LB['kingTipper'] == true ? 'On.' : 'Off.'), _0xb6b5x38, '#fee') } } function wordListToggle(_0xb6b5x68, _0xb6b5x38) { if (_0xb6b5x68 != null && (_0xb6b5x68 != '' || _0xb6b5x68 != ' ')) { switch (_0xb6b5x68) { case 'on': if (LB['wordListTgl'] == true) { cb['sendNotice']('The Gray Wordlist is already turned on!', _0xb6b5x38, '#fee') } else { LB['wordListTgl'] = true; cb['sendNotice']('You have turned on the Gray Wordlist.', _0xb6b5x38, COLOR.DEFAULT) }; break; case 'off': if (LB['wordListTgl'] == false) { cb['sendNotice']('The Gray Wordlist is already turned off!', _0xb6b5x38, '#fee') } else { LB['wordListTgl'] = false; cb['sendNotice']('You have turned off the Gray Wordlist.', _0xb6b5x38, COLOR.DEFAULT) }; break; default: cb['sendNotice'](_0xb6b5x68 + ' is not a valid option for /wordlist.\x0AType /ubhelp kingspam to see how to use /wordlist.', _0xb6b5x38, '#fee'); break } } else { cb['sendNotice']('You didn\'t enter a valid option for /wordlist.\x0AType /ubhelp wordlist to see how to use /wordlist.\x0A\x0A' + 'Gray Wordlist status is: ' + (LB['wordListTgl'] == true ? 'On.' : 'Off.'), _0xb6b5x38, '#fee') } } function blockNoticeToggle(_0xb6b5x68, _0xb6b5x38) { if (_0xb6b5x68 != null && (_0xb6b5x68 != '' || _0xb6b5x68 != ' ')) { switch (_0xb6b5x68) { case 'on': if (LB['wordListNtc'] == true) { cb['sendNotice']('The "Message flagged" warning is already turned on!', _0xb6b5x38, '#fee') } else { LB['wordListNtc'] = true; cb['sendNotice']('You have turned on the "Message flagged" warning.', _0xb6b5x38, COLOR.DEFAULT) }; break; case 'off': if (LB['wordListNtc'] == false) { cb['sendNotice']('The "Message flagged" warning is already turned off!', _0xb6b5x38, '#fee') } else { LB['wordListNtc'] = false; cb['sendNotice']('You have turned off the "Message flagged" warning.', _0xb6b5x38, COLOR.DEFAULT) }; break; default: cb['sendNotice'](_0xb6b5x68 + ' is not a valid option for /blocknotice.\x0AType /ubhelp kingspam to see how to use /blocknotice.', _0xb6b5x38, '#fee'); break } } else { cb['sendNotice']('You didn\'t enter a valid option for /blocknotice.\x0AType /ubhelp blocknotice to see how to use /blocknotice.\x0A\x0A' + '"Message Flagged" warning status is: ' + (LB['wordListNtc'] == true ? 'On.' : 'Off.'), _0xb6b5x38, '#fee') } } function notifierSpamToggle(_0xb6b5x68, _0xb6b5x38) { if (_0xb6b5x68 != null && (_0xb6b5x68 != '' || _0xb6b5x68 != ' ')) { switch (_0xb6b5x68) { case 'on': if (LB['notifierSpamTGL'] == true) { cb['sendNotice']('The Notifier Spam is already turned on!', _0xb6b5x38, '#fee') } else { LB['notifierSpamTGL'] = true; cb['sendNotice']('You have turned on the Notifier Spam.', _0xb6b5x38, COLOR.DEFAULT) }; break; case 'off': if (LB['notifierSpamTGL'] == false) { cb['sendNotice']('The Notifier Spam is already turned off!', _0xb6b5x38, '#fee') } else { LB['notifierSpamTGL'] = false; cb['sendNotice']('You have turned off the Notifier Spam.', _0xb6b5x38, COLOR.DEFAULT) }; break; default: cb['sendNotice'](_0xb6b5x68 + ' is not a valid option for /notifierspam.\x0AType /ubhelp kingspam to see how to use /notifierspam.', _0xb6b5x38, '#fee'); break } } else { cb['sendNotice']('You didn\'t enter a valid option for /notifierspam.\x0AType /ubhelp notifierspam to see how to use /notifierspam.\x0A\x0A' + 'Notifier Spam status is: ' + (LB['notifierSpamTGL'] == true ? 'On.' : 'Off.'), _0xb6b5x38, '#fee') } } function leaderboardToggle(_0xb6b5x68, _0xb6b5x38) { if (_0xb6b5x68 != null && (_0xb6b5x68 != '' || _0xb6b5x68 != ' ')) { switch (_0xb6b5x68) { case 'on': if (LB['leaderboardSpam'] == true) { cb['sendNotice']('The Leaderboard Spam is already turned on!', _0xb6b5x38, '#fee') } else { LB['leaderboardSpam'] = true; cb['sendNotice']('You have turned on the Leaderboard Spam.', _0xb6b5x38, COLOR.DEFAULT) }; break; case 'off': if (LB['leaderboardSpam'] == false) { cb['sendNotice']('The Leaderboard Spam is already turned off!', _0xb6b5x38, '#fee') } else { LB['leaderboardSpam'] = false; cb['sendNotice']('You have turned off the Leaderboard Spam.', _0xb6b5x38, COLOR.DEFAULT) }; break; default: cb['sendNotice'](_0xb6b5x68 + ' is not a valid option for /leaderboardspam.\x0AType /ubhelp leaderboardspam to see how to use /leaderboardspam.', _0xb6b5x38, '#fee'); break } } else { cb['sendNotice']('You didn\'t enter a valid option for /leaderboardspam.\x0AType /ubhelp leaderboardspam to see how to use /leaderboardspam.\x0A\x0A' + 'Leaderboard Spam status is: ' + (leaderBoardSpam == true ? 'On.' : 'Off.'), _0xb6b5x38, '#fee') } } function sendPublicNotice(_0xb6b5x5b, user, _0xb6b5x80, _0xb6b5x81) { if (_0xb6b5x5b != null) { if (_0xb6b5x5b != '' || _0xb6b5x5b != ' ' || _0xb6b5x5b != '\xA0') { if (_0xb6b5x81 == 'red') { switch (_0xb6b5x80) { case 'div': cb['sendNotice'](dashLine + '\x0A\u25BA ' + _0xb6b5x5b['capitalize']() + '\x0A' + dashLine, '', '', '#d10', 'bold'); break; case 'divh': cb['sendNotice'](dashLine + '\x0A\u25BA ' + _0xb6b5x5b['capitalize']() + '\x0A' + dashLine, '', '#fee', '#d10', 'bold'); break; case 'h': cb['sendNotice']('\u25BA ' + _0xb6b5x5b['capitalize'](), '', '#fee', '#d10', 'bold'); break; case '': cb['sendNotice']('\u25BA ' + _0xb6b5x5b['capitalize'](), '', '', '#d10', 'bold'); break } } else { if (_0xb6b5x81 == 'default') { switch (_0xb6b5x80) { case 'div': cb['sendNotice'](dashLine + '\x0A\u25BA ' + _0xb6b5x5b['capitalize']() + '\x0A' + dashLine, '', '', '#306', 'bold'); break; case 'divh': cb['sendNotice'](dashLine + '\x0A\u25BA ' + _0xb6b5x5b['capitalize']() + '\x0A' + dashLine, '', '#eef', '#306', 'bold'); break; case 'h': cb['sendNotice']('\u25BA ' + _0xb6b5x5b['capitalize'](), '', '#eef', '#306', 'bold'); break; case '': cb['sendNotice']('\u25BA ' + _0xb6b5x5b['capitalize'](), '', '', '#306', 'bold'); break } } } } else { cb['sendNotice']('You can\'t send a blank message.\x0AType a message and try again.', user, '#fee') } } else { cb['sendNotice']('You can\'t send a blank message.\x0AType a message and try again.', user, '#fee') } } function sendPrivateNotice(_0xb6b5x5b, user, _0xb6b5x80) { if (_0xb6b5x5b != null) { if (_0xb6b5x5b != '' || _0xb6b5x5b != ' ' || _0xb6b5x5b != '\xA0') { switch (_0xb6b5x80) { case 'to_mods': cb['sendNotice']('\u25BA ' + user + ': ' + _0xb6b5x5b, '', '#dfe', '#471', 'bold', 'red'); break; case 'to_caster': cb['sendNotice']('\u25BA ' + user + ': ' + _0xb6b5x5b, cb['room_slug'], '#fed', '#741', 'bold'); cb['sendNotice']('\u25BA ' + user + ': ' + _0xb6b5x5b, user, '#fed', '#741', 'bold'); break; case 'to_mods_and_caster': cb['sendNotice']('\u25BA ' + user + ': ' + _0xb6b5x5b, cb['room_slug'], '#def', '#147', 'bold'); cb['sendNotice']('\u25BA ' + user + ': ' + _0xb6b5x5b, '', '#def', '#147', 'bold', 'red'); break; case 'to_viewer': if (arguments[3] != null && (arguments[3] != '' || arguments[3] != ' ' || arguments[3] != '\xA0')) { cb['sendNotice']('\u25BA ' + user + ': ' + _0xb6b5x5b, arguments[3], '#ffb', '#d10', 'bold'); cb['sendNotice']('\u25BA ' + user + ': ' + _0xb6b5x5b, user, '#ffb', '#d10', 'bold') } else { cb['sendNotice']('You didn\'t specify who should receive the message.\x0APlease enter a username and try again.') }; break } } else { cb['sendNotice']('You can\'t send a blank message.\x0AType a message and try again.', user, '#fee') } } else { cb['sendNotice']('You can\'t send a blank message.\x0AType a message and try again.', user, '#fee') } } function cleanUpChat(_0xb6b5x84) { var _0xb6b5x85; if (_0xb6b5x84 != null) { if (Number['parseInt'](_0xb6b5x84)) { _0xb6b5x85 = _0xb6b5x84 } else { _0xb6b5x85 = 30 } } else { _0xb6b5x85 = 30 }; for (var _0xb6b5x17 = 1; _0xb6b5x17 <= _0xb6b5x85; _0xb6b5x17++) { cb['sendNotice']('Cleaning up chat...', '', COLOR.DEFAULT) }; cb['sendNotice']('Chat cleaned up.', '', COLOR.DEFAULT) } function colorChecker(_0xb6b5x87) { var _0xb6b5x88 = /[A-F0-9]+$/i; var _0xb6b5x89 = /[\u0021\u0022\u0024-\u002f\u003a-\u0040G-Z\u005b-\u005e\u007b-\uffff]+$/i; if (_0xb6b5x87 != null) { if (_0xb6b5x87['length'] == 3 || _0xb6b5x87['length'] == 6) { if (_0xb6b5x88['exec'](_0xb6b5x87) && !(_0xb6b5x89['exec'](_0xb6b5x87))) { return true } else { if (_0xb6b5x89['exec'](_0xb6b5x87)) { return false } } } else { if (_0xb6b5x87['charAt'](0) == '#' && (_0xb6b5x87['length'] == 4 || _0xb6b5x87['length'] == 7)) { if (_0xb6b5x88['exec'](_0xb6b5x87) && !(_0xb6b5x89['exec'](_0xb6b5x87))) { return true } else { if (_0xb6b5x89['exec'](_0xb6b5x87)) { return false } } } else { return false } } }; return null } function sortTippers() { var _0xb6b5x8b, _0xb6b5x8c, _0xb6b5x8d; do { _0xb6b5x8b = false; for (var _0xb6b5x17 = 0; _0xb6b5x17 < tipperList['amount']['length'] - 1; _0xb6b5x17++) { if (tipperList['amount'][_0xb6b5x17] < tipperList['amount'][_0xb6b5x17 + 1]) { _0xb6b5x8c = tipperList['amount'][_0xb6b5x17]; _0xb6b5x8d = tipperList['name'][_0xb6b5x17]; tipperList['amount'][_0xb6b5x17] = tipperList['amount'][_0xb6b5x17 + 1]; tipperList['amount'][_0xb6b5x17 + 1] = _0xb6b5x8c; tipperList['name'][_0xb6b5x17] = tipperList['name'][_0xb6b5x17 + 1]; tipperList['name'][_0xb6b5x17 + 1] = _0xb6b5x8d; _0xb6b5x8b = true } } } while (_0xb6b5x8b); } function preSale(_0xb6b5x8f, _0xb6b5x90, _0xb6b5x91) { var _0xb6b5x92 = ''; var _0xb6b5x93 = 0; if (FLAG['email'] == true) { _0xb6b5x92 = _0xb6b5x91['match'](/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/i) || ''; _0xb6b5x93 = emList['name']['indexOf'](_0xb6b5x8f); if (_0xb6b5x93 > -1 && !emList['email'][_0xb6b5x93]) { emList['email'][_0xb6b5x93] = _0xb6b5x92; cb['sendNotice'](dashLine + '\x0A* Missing email address for "' + _0xb6b5x8f + '" recorded.\x0A' + dashLine, APP.ROOMHOST, COLOR.HVBACK, COLOR.HVTEXT, 'bold') } }; if ((_0xb6b5x90 >= CRAZY['TICKETPRICE']) && FLAG['price']) { if (!cbjs['arrayContains'](CRAZY.TICKETLIST, _0xb6b5x8f)) { user('add', _0xb6b5x8f, false); if (FLAG['advance'] && CRAZY['PRENOTE']) { cb['log'](FLAG['isYOC']); if (FLAG['isYOC']) { cb['sendNotice']('* \u262E Look who got a TICKET? \u262E "' + _0xb6b5x8f + '"', '', '#111111', '#ff99ff', 'bold') } else { cb['sendNotice']('* Advanced ticket sold to "' + _0xb6b5x8f + '"', '', '', 'COLOR.NOTICE', 'bold') } }; if (CRAZY['TICKETNUMBER'] != 0 && FLAG['advance']) { CRAZY['TICKETNUMBER'] = CRAZY['TICKETNUMBER'] - 1; if (CRAZY['TICKETNUMBER'] != 0) { cb['sendNotice']('\u2022 \u2022 \u2022 ' + CRAZY['TICKETNUMBER'] + ' PRESALE TICKETS LEFT AT ' + CRAZY['TICKETPRICE'] + ' TOKENS \u2022 \u2022 \u2022', '', '#b3ffcc', '#ff4d4d', 'bold'); if (FLAG['isYOC'] && CRAZY['STAGEPRICE'] == 1) { cb['sendNotice'](' \u25B7 \u25B7 \u25B7 \u25B7 PRICE WILL RAISE TO ' + CRAZY['TICKETPRICE2'] + ' TOKENS \u25C1 \u25C1 \u25C1 \u25C1', '', '#b3ffcc', '#ff4d4d', 'bolder') }; if (FLAG['isYOC'] && CRAZY['STAGEPRICE'] == 2) { cb['sendNotice'](' \u25B7 \u25B7 \u25B7 \u25B7 PRICE WILL RAISE TO ' + CRAZY['TICKETPRICE3'] + ' TOKENS \u25C1 \u25C1 \u25C1 \u25C1', '', '#b3ffcc', '#ff4d4d', 'bolder') } } else { if (CRAZY['TICKETNUMBER2'] != 0) { if (RN['switchToRN2']) { RN['rn1'] = false; RN['rn2'] = true; cb['sendNotice']('Rotating Notifier 2 Started!', cb['room_slug']) }; CRAZY['TICKETNUMBER'] = CRAZY['TICKETNUMBER2']; CRAZY['STAGEPRICE'] = 2; CRAZY['TICKETPRICE'] = CRAZY['TICKETPRICE2']; CRAZY['TICKETNUMBER2'] = 0 } else { if (RN['switchToRN3']) { RN['rn1'] = false; RN['rn2'] = false; RN['rn3'] = true; cb['sendNotice']('Rotating Notifier 3 Started!', cb['room_slug']) }; CRAZY['TICKETPRICE'] = CRAZY['TICKETPRICE3']; CRAZY['STAGEPRICE'] = 3; CRAZY['PRENOTE'] = false; CTnewTimer(CTTIME.CRAZYTICKETTIMER, 'The Gods') }; cb['sendNotice']('\u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \x0A TICKET PRICE CHANGED TO ' + CRAZY['TICKETPRICE'] + ' TOKENS! \x0A \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022', '', '#b3ffcc', '#ff4d4d', 'bolder') } }; if (FLAG['email']) { _0xb6b5x92 = _0xb6b5x91['match'](/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/i) || ''; emList['name']['push'](_0xb6b5x8f); emList['email']['push'](_0xb6b5x92); if (!_0xb6b5x92) { cb['sendNotice']('* You may have forgotten your email address in the tip note.', _0xb6b5x8f, '', COLOR.RED, 'bold'); cb['sendNotice']('* Viewer "' + _0xb6b5x8f + '" may have forgotten their email address in the tip note.', APP.ROOMHOST, COLOR.HVBACK, COLOR.HVTEXT, 'bold'); cb['sendNotice']('* Viewer "' + _0xb6b5x8f + '" may have forgotten their email address in the tip note.', '', '', COLOR.MOD, 'bold', 'red') } else { cb['sendNotice'](dashLine + '\x0A* Email address recorded.\x0A' + dashLine, APP.ROOMHOST, COLOR.HVBACK, COLOR.HVTEXT, 'bold') } } } } } function entryMessage(_0xb6b5x8f, _0xb6b5x95) { if (cb['settings']['notifierEnter'] == 'Yes') { var _0xb6b5x96 = cb['settings']['enterMessage']; _0xb6b5x96 = _0xb6b5x96['replace'](/{newline}/g, '\x0A'); cb['sendNotice'](_0xb6b5x96, _0xb6b5x8f, COLOR.DEFAULT) }; if (cb['settings']['msg1onentry'] == 'Yes') { if (cb['settings']['message1'] != null) { if (cb['settings']['use_rn1'] == 'Yes') { if (RN['rn1']) { if (!_0xb6b5x95) { cb['sendNotice']('Welcome ' + _0xb6b5x8f + '! ' + cb['settings']['message1'], _0xb6b5x8f, COLOR.HILITE, COLOR.MSG, 'bold') } } } } }; if (cb['settings']['msg1onentry_'] == 'Yes') { if (cb['settings']['messageb1'] != null) { if (RN['rn2']) { if (!_0xb6b5x95) { cb['sendNotice']('Welcome ' + _0xb6b5x8f + '! ' + cb['settings']['messageb1'], _0xb6b5x8f, COLOR.HILITE, COLOR.MSG, 'bold') } } } }; if (cb['settings']['msg1onentryc'] == 'Yes') { if (cb['settings']['messagec1'] != null) { if (RN['rn3']) { if (!_0xb6b5x95) { cb['sendNotice']('Welcome ' + _0xb6b5x8f + '! ' + cb['settings']['messagec1'], _0xb6b5x8f, COLOR.HILITE, COLOR.MSG, 'bold') } } } } } function ubStartup() { if (LB['kingTipper'] && LB['kingTipperSpam']) { kingSpam() }; if (LB['leaderboardSpam'] && cb['settings']['leaderBoard'] == 'Yes') { leaderSpam() }; if (cb['settings']['ubstartcolor'] != null && cb['settings']['ubstartcolor'] != '') { if (colorChecker(cb['settings']['ubstartcolor']) == true) { if (cb['settings']['ubstartcolor']['charAt'](0) == '#') { COLOR['USTARTCOLOR'] = cb['settings']['ubstartcolor'] } else { COLOR['USTARTCOLOR'] = '#' + cb['settings']['ubstartcolor'] } } else { cb['sendNotice']('\u25BA Ultra-Bot Start Text Color: Invalid. Reverting to default.', cb['room_slug'], '', '#007BFF', 'bold'); COLOR['USTARTCOLOR'] = '#007BFF'; FLAG['invalidCodeDetected'] = true } } else { cb['sendNotice']('\u25BA Ultra-Bot Start Text Color: Not set.', cb['room_slug'], '', '#db0', 'bold') }; cb['sendNotice']('\u25BA Ultra-Bot Start Text Color: Valid. (obviously)', cb['room_slug'], '', COLOR.USTARTCOLOR, 'bold'); cb['sendNotice'](dashLine + '\x0A\u25BA ' + '"' + APP['NAME'] + '"' + ' has started.', cb['room_slug'], '', COLOR.USTARTCOLOR, 'bold'); cb['sendNotice']('\u25BA Version: ' + APP['VERSION'], cb['room_slug'], '', COLOR.USTARTCOLOR, 'bold'); cb['sendNotice']('\u25BA Build date: ' + APP['DATE'], cb['room_slug'], '', COLOR.USTARTCOLOR, 'bold'); cb['sendNotice']('\u25BA Type ' + '"/ubhelp commands or /cnhelp"' + ' for a list of available UltraBot or CrazyNote commands.\x0A' + dashLine, cb['room_slug'], '', COLOR.USTARTCOLOR, 'bold'); cb['sendNotice']('\u25BA Grabbing settings...', cb['room_slug'], '', COLOR.USTARTCOLOR, 'bold'); if (cb['settings']['niceList'] != '' && cb['settings']['niceList'] != null) { cb['sendNotice']('\u25BA Adding users to the Nice List...', cb['room_slug'], '', COLOR.USTARTCOLOR, 'bold'); var _0xb6b5x98 = /[,\s]+/; var _0xb6b5x85 = cb['settings']['niceList']; GROUP['NICE'] = _0xb6b5x85['split'](_0xb6b5x98); numNice = GROUP['NICE']['length'] }; if (cb['settings']['grayList'] != '' && cb['settings']['grayList'] != null) { cb['sendNotice']('\u25BA Adding users to the "Gray" List...', cb['room_slug'], '', COLOR.USTARTCOLOR, 'bold'); var _0xb6b5x98 = /[,\s]+/; var _0xb6b5x99 = cb['settings']['grayList']; GROUP['GREY'] = _0xb6b5x99['split'](_0xb6b5x98); numGray = GROUP['GREY']['length'] }; if (cb['settings']['vipList'] != '' && cb['settings']['vipList'] != null) { cb['sendNotice']('\u25BA Adding users to the VIP List...', cb['room_slug'], '', COLOR.USTARTCOLOR, 'bold'); var _0xb6b5x98 = /[,\s]+/; var _0xb6b5x9a = cb['settings']['vipList']; GROUP['FREETICKET'] = _0xb6b5x9a['split'](_0xb6b5x98); numVip = GROUP['FREETICKET']['length'] }; cb['sendNotice']('\u25BA Checking if the selected color codes are valid...', cb['room_slug'], '', COLOR.USTARTCOLOR, 'bold'); if (cb['settings']['generalBgColor'] != null && cb['settings']['generalBgColor'] != '') { if (colorChecker(cb['settings']['generalBgColor']) == true) { cb['sendNotice']('\u25BA General background highlight: Valid.', cb['room_slug'], '', '#091', 'bold'); if (cb['settings']['generalBgColor']['charAt'](0) == '#') { COLOR['DEFAULT'] = cb['settings']['generalBgColor'] } else { COLOR['DEFAULT'] = '#' + cb['settings']['generalBgColor'] } } else { cb['sendNotice']('\u25BA General background highlight: Invalid. Reverting to default.', cb['room_slug'], '', '#b45', 'bold'); COLOR['DEFAULT'] = '#01a9db'; FLAG['invalidCodeDetected'] = true } } else { cb['sendNotice']('\u25BA General background highlight: Not set.', cb['room_slug'], '', '#db0', 'bold') }; if (cb['settings']['lbtextcolor'] != null && cb['settings']['lbtextcolor'] != '') { if (colorChecker(cb['settings']['lbtextcolor']) == true) { cb['sendNotice']('\u25BA Leaderboard Text Color: Valid.', cb['room_slug'], '', '#091', 'bold'); if (cb['settings']['lbtextcolor']['charAt'](0) == '#') { lbtext = cb['settings']['lbtextcolor'] } else { lbtext = '#' + cb['settings']['lbtextcolor'] } } else { cb['sendNotice']('\u25BA Leaderboard Text Color: Invalid. Reverting to default.', cb['room_slug'], '', '#111111', 'bold'); lbtext = '#111111'; FLAG['invalidCodeDetected'] = true } } else { cb['sendNotice']('\u25BA Leaderboard Text Color: Not set.', cb['room_slug'], '', '#db0', 'bold') }; if (cb['settings']['lbbackcolor'] != null && cb['settings']['lbbackcolor'] != '') { if (colorChecker(cb['settings']['lbbackcolor']) == true) { cb['sendNotice']('\u25BA Leaderboard Background Color: Valid.', cb['room_slug'], '', '#091', 'bold'); if (cb['settings']['lbbackcolor']['charAt'](0) == '#') { lbback = cb['settings']['lbbackcolor'] } else { lbback = '#' + cb['settings']['lbbackcolor'] } } else { cb['sendNotice']('\u25BA Leaderboard Background Color: Invalid. Reverting to default.', cb['room_slug'], '', '#88FFBB', 'bold'); lbback = '#88FFBB'; FLAG['invalidCodeDetected'] = true } } else { cb['sendNotice']('\u25BA Leaderboard Background Color: Not set.', cb['room_slug'], '', '#db0', 'bold') }; if (cb['settings']['messagecolor'] != null && cb['settings']['messagecolor'] != '') { if (colorChecker(cb['settings']['messagecolor']) == true) { cb['sendNotice']('\u25BA Rotating notifier - message color: Valid.', cb['room_slug'], '', '#091', 'bold'); if (cb['settings']['messagecolor']['charAt'](0) == '#') { COLOR['MSG'] = cb['settings']['messagecolor'] } else { COLOR['MSG'] = '#' + cb['settings']['messagecolor'] } } else { cb['sendNotice']('\u25BA Rotating notifier - message color: Invalid. Reverting to default.', cb['room_slug'], '', '#b45', 'bold'); COLOR['MSG'] = '#9f000f'; FLAG['invalidCodeDetected'] = true } } else { cb['sendNotice']('\u25BA Rotating notifier - message color: Not set.', cb['room_slug'], '', '#db0', 'bold') }; if (cb['settings']['messagehilite'] != null && cb['settings']['messagehilite'] != '') { if (colorChecker(cb['settings']['messagehilite']) == true) { cb['sendNotice']('\u25BA Rotating notifier - message background: Valid.', cb['room_slug'], '', '#091', 'bold'); if (cb['settings']['messagehilite']['charAt'](0) == '#') { COLOR['HILITE'] = cb['settings']['messagehilite'] } else { COLOR['HILITE'] = '#' + cb['settings']['messagehilite'] } } else { cb['sendNotice']('\u25BA Rotating notifier - message background: Invalid. Reverting to default.', cb['room_slug'], '', '#b45', 'bold'); COLOR['HILITE'] = '#fcc'; FLAG['invalidCodeDetected'] = true } } else { cb['sendNotice']('\u25BA Rotating notifier - message background: Not set.', cb['room_slug'], '', '#db0', 'bold') }; if (cb['settings']['htat_color'] != null && cb['settings']['htat_color'] != '') { if (colorChecker(cb['settings']['htat_color']) == true) { cb['sendNotice']('\u25BA Highest tipper of all time - message background: Valid.', cb['room_slug'], '', '#091', 'bold'); if (cb['settings']['htat_color']['charAt'](0) == '#') { COLOR['HTAT'] = cb['settings']['htat_color'] } else { COLOR['HTAT'] = '#' + cb['settings']['htat_color'] } } else { cb['sendNotice']('\u25BA Highest tipper of all time - message background: Invalid. Feature disabled.', cb['room_slug'], '', '#b45', 'bold'); FLAG['invalidCodeDetected'] = true } } else { cb['sendNotice']('\u25BA Highest tipper of all time - message background: Not set.', cb['room_slug'], '', '#db0', 'bold') }; if (FLAG['invalidCodeDetected'] == true) { cb['sendNotice']('\u25BA One or more invalid color codes have been used. Valid color codes must have between 3 or 6 characters (excluding the hash; 4 or 7 chars if including it) ' + 'and contain only hexadecimal numbers from 0 to F.\x0A' + '\u25BA Use color-hex to find the code for the color you want. Don\'t include the starting hash (#).', cb['room_slug'], '', '#b45', 'bold') }; cb['sendNotice'](dashLine, cb['room_slug'], '', COLOR.USTARTCOLOR, 'bold'); if (cb['settings']['allowGrayChatAfterStartup'] == 'No') { GROUP['GRAPHICLEVEL'] = 1; silencelevel = 1; cb['sendNotice']('Gray users are now unable to chat and use graphics by default. If you would like gray users to be able to do both things, type /silencelevel 0, ' + 'followed by / graphiclevel 0. If you want them to be able only to chat, type / silencelevel 0. ', cb['room_slug'], COLOR.DEFAULT) } else { if (cb['settings']['allowGrayGraphicsAfterStartup'] == 'No ') { GROUP['GRAPHICLEVEL'] = 1; GROUP['SILENCELEVEL'] = 0; cb['sendNotice']('Gray users are now unable to use graphics bydefault.If you would like gray users to be able to use graphics, type / graphiclevel 0. ', cb['room_slug'], COLOR.DEFAULT) } else { GROUP['GRAPHICLEVEL'] = 0; GROUP['SILENCELEVEL'] = 0 } } } cb['onMessage'](function(_0xb6b5x1f) { var _0xb6b5x5b = _0xb6b5x1f['m']['split'](' '); var _0xb6b5x9b = false; var _0xb6b5x9c = /[\u0021-\u002f\u003a-\u0040\u005b-\u005e\u007b-\u007e]/i; var _0xb6b5x9d = /[,\s]+/; var _0xb6b5x8f = _0xb6b5x1f['user']; var _0xb6b5x9e = tipperList['name']['indexOf'](_0xb6b5x8f) > -1; var _0xb6b5x9f = _0xb6b5x1f['has_tokens']; var _0xb6b5x95 = _0xb6b5x8f == cb['room_slug']; var _0xb6b5xa0 = (_0xb6b5x8f == APP['ROOMHOST']); var _0xb6b5xa1 = cbjs['arrayContains'](GROUP.EMOD, _0xb6b5x8f); var _0xb6b5xa2 = _0xb6b5xa1; var _0xb6b5xa3 = _0xb6b5x1f['in_fanclub']; var _0xb6b5xa4 = (_0xb6b5x1f['is_mod'] || _0xb6b5x1f['user'] == '18yearoldcouple' || _0xb6b5x1f['user'] == '19_naked' || _0xb6b5x1f['user'] == 'mr_likes_it_' || _0xb6b5x1f['user'] == 'theswisspimp'); if (cbjs['arrayContains'](GROUP.SILLYMOD, _0xb6b5x8f)) { _0xb6b5xa4 = false }; var _0xb6b5xa5 = cbjs['arrayContains'](GROUP.NINJA, _0xb6b5x8f); var _0xb6b5xa6 = cbjs['arrayContains'](GROUP.GREY, _0xb6b5x8f); var _0xb6b5xa7 = cbjs['arrayContains'](GROUP.NICE, _0xb6b5x8f); var _0xb6b5xa8 = cbjs['arrayContains'](GROUP.FREETICKET, _0xb6b5x8f); var _0xb6b5xa9 = cbjs['arrayContains'](GROUP.SILENCE, _0xb6b5x8f); var _0xb6b5xaa = '^' + '/' + '(\S+)(?:\b\s*)(.*)?'; var _0xb6b5xab = /[,\s]+/; var _0xb6b5xac = new RegExp(_0xb6b5xaa); var _0xb6b5xad = _0xb6b5x1f['m']['match'](_0xb6b5xac); var _0xb6b5xae; var _0xb6b5xaf; var _0xb6b5xb0; if (_0xb6b5xad) { _0xb6b5xae = _0xb6b5xad[1]; _0xb6b5xaf = _0xb6b5xad[2]; if (_0xb6b5xaf != null) { _0xb6b5xaf = _0xb6b5xaf['replace'](/^\s+|\s+$/g, '') }; if (_0xb6b5xaf != null) { _0xb6b5xb0 = _0xb6b5xaf['split'](_0xb6b5xab) } else { _0xb6b5xb0 = '' } }; var _0xb6b5xf = _0xb6b5x1f['m']; var _0xb6b5x1d, _0xb6b5xb1; var _0xb6b5xb2 = null; for (var _0xb6b5x17 = 1; _0xb6b5x17 < _0xb6b5x5b['length']; _0xb6b5x17++) { if (_0xb6b5x17 == 1) { _0xb6b5xb2 = _0xb6b5x5b[_0xb6b5x17] } else { _0xb6b5xb2 += ' ' + _0xb6b5x5b[_0xb6b5x17] } }; var _0xb6b5xb3 = null; for (var _0xb6b5x17 = 2; _0xb6b5x17 < _0xb6b5x5b['length']; _0xb6b5x17++) { if (_0xb6b5x17 == 2) { _0xb6b5xb3 = _0xb6b5x5b[_0xb6b5x17] } else { _0xb6b5xb3 += ' ' + _0xb6b5x5b[_0xb6b5x17] } }; var _0xb6b5xaf = null; for (var _0xb6b5x17 = 1; _0xb6b5x17 < _0xb6b5x5b['length']; _0xb6b5x17++) { if (_0xb6b5x17 == 1) { _0xb6b5xaf = _0xb6b5x5b[_0xb6b5x17] } else { _0xb6b5xaf += ' ' + _0xb6b5x5b[_0xb6b5x17] } }; if (cbjs['arrayContains'](CRAZY.SILLIST, _0xb6b5x8f) && !_0xb6b5xa4) { _0xb6b5x1f['X-Spam'] = true; return }; var _0xb6b5xb4 = '* Not enough privileges to use "' + _0xb6b5xae + '".\x0A* This command is restricted to moderators.'; if (_0xb6b5x5b[0]['charAt'](0) == '/') { _0xb6b5x1f['X-Spam'] = true }; switch (_0xb6b5x5b[0]) { case COMMAND['BC']: if (_0xb6b5xa4 || _0xb6b5xa2 || _0xb6b5x95) { if (_0xb6b5xaf) { cb['sendNotice']((_0xb6b5xa4 ? '* "' + _0xb6b5x8f + '": ' : '--------------- CrazyWare App Support ---------------\x0A* ') + _0xb6b5xaf + (_0xb6b5xa4 ? '' : '\x0A' + dashLine), APP.ROOMHOST, COLOR.BCBACK, COLOR.BCTEXT, 'bold'); cb['sendNotice']((_0xb6b5xa4 ? '* "' + _0xb6b5x8f + '": ' : '--------------- CrazyWare App Support ---------------\x0A* ') + _0xb6b5xaf + (_0xb6b5xa4 ? '' : '\x0A' + dashLine), _0xb6b5x8f, COLOR.BCBACK, COLOR.BCTEXT, 'bold') } else { cb['sendNotice']('* Syntax: /bc <some text here>', _0xb6b5x8f, '', COLOR.SYNTAX, 'bold') } } else { cb['sendNotice'](_0xb6b5xb4, _0xb6b5x8f, '', COLOR.RED, 'bold') }; break; case COMMAND['TBM']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { if (_0xb6b5xaf) { cb['sendNotice']('* "' + _0xb6b5x8f + '": ' + _0xb6b5xaf, '', COLOR.TBMBACK, COLOR.TBMTEXT, 'bold', 'red'); cb['sendNotice']('* "' + _0xb6b5x8f + '": ' + _0xb6b5xaf, APP.ROOMHOST, COLOR.TBMBACK, COLOR.TBMTEXT, 'bold') } else { cb['sendNotice']('* Syntax: /tbm <some text here>', _0xb6b5x8f, '', COLOR.SYNTAX, 'bold') } } else { cb['sendNotice'](_0xb6b5xb4, _0xb6b5x8f, '', COLOR.RED, 'bold') }; break; case COMMAND['TV']: _0xb6b5x1d = _0xb6b5xb0[0]; cbjs['arrayRemove'](_0xb6b5xb0, _0xb6b5xb0[0]); _0xb6b5xb1 = cbjs['arrayJoin'](_0xb6b5xb0, ' '); if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { if (_0xb6b5xaf) { cb['sendNotice'](dashLine + '\x0A*Important* ' + _0xb6b5xb1 + '\x0A' + dashLine, _0xb6b5x1d, '', COLOR.RED, 'bold'); cb['sendNotice']('Aright we sent your silly message to ' + _0xb6b5x1d, _0xb6b5x8f, '', COLOR.SYNTAX) } else { cb['sendNotice']('* Syntax: /tv <user> <message>', _0xb6b5x8f, '', COLOR.SYNTAX, 'bold') } } else { cb['sendNotice'](_0xb6b5xb4, _0xb6b5x8f, '', COLOR.RED, 'bold') }; break; case COMMAND['TPRICE']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { if (_0xb6b5xaf) { if (Number['parseInt'](_0xb6b5xaf, 10)) { CRAZY['TICKETPRICE'] = _0xb6b5xaf; cb['sendNotice']('* Ticket price set at ' + _0xb6b5xaf + ' tokens.', _0xb6b5x8f, '', COLOR.NOTICE, 'bold'); FLAG['price'] = true } else { cb['sendNotice']('* "' + _0xb6b5xaf + '" is not a valid argument.', _0xb6b5x8f, '', COLOR.RED, 'bold') } } else { cb['sendNotice']('* Syntax: ' + '/' + COMMAND['TPRICE'] + ' <price>.', _0xb6b5x8f, '', COLOR.SYNTAX, 'bold'); if (!Number['isNaN'](CRAZY.TICKETPRICE)) { cb['sendNotice']('* Current pre-sale price is ' + CRAZY['TICKETPRICE'] + ' tokens.', _0xb6b5x8f, '', COLOR.SYNTAX, 'bold') } else { cb['sendNotice']('* You haven\'t defined a price yet.', _0xb6b5x8f, '', COLOR.SYNTAX, 'bold') } } } else { cb['sendNotice'](_0xb6b5xb4, _0xb6b5x8f, '', COLOR.RED, 'bold') }; break; case COMMAND['NEXT']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { if (CRAZY['TICKETNUMBER2'] != 0) { if (RN['switchToRN2']) { RN['rn1'] = false; RN['rn2'] = true; cb['sendNotice']('Rotating Notifier 2 Started!', cb['room_slug']) }; CRAZY['TICKETNUMBER'] = CRAZY['TICKETNUMBER2']; CRAZY['STAGEPRICE'] = 2; CRAZY['TICKETPRICE'] = CRAZY['TICKETPRICE2']; CRAZY['TICKETNUMBER2'] = 0 } else { if (RN['switchToRN3']) { RN['rn1'] = false; RN['rn2'] = false; RN['rn3'] = true; cb['sendNotice']('Rotating Notifier 3 Started!', cb['room_slug']) }; CRAZY['TICKETPRICE'] = CRAZY['TICKETPRICE3']; CRAZY['STAGEPRICE'] = 3; CRAZY['PRENOTE'] = false; CTnewTimer(CTTIME.CRAZYTICKETTIMER, 'The Gods') }; cb['sendNotice']('\u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \x0A TICKET PRICE CHANGED TO ' + CRAZY['TICKETPRICE'] + ' TOKENS! \x0A \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \u2022', '', '#b3ffcc', '#ff4d4d', 'bolder') } else { cb['sendNotice'](_0xb6b5xb4, _0xb6b5x8f, '', COLOR.RED, 'bold') }; break; case COMMAND['RN1START']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { cb['sendNotice']('Rotating Notifier 1 Started!'); RN['rn1'] = true }; break; case COMMAND['RN2START']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { cb['sendNotice']('Rotating Notifier 2 Started!'); RN['rn2'] = true }; break; case COMMAND['RN1STOP']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { cb['sendNotice']('Rotating Notifier 1 Stopped!'); RN['rn1'] = false }; break; case COMMAND['RN2STOP']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { cb['sendNotice']('Rotating Notifier 2 Stopped!'); RN['rn2'] = false }; break; case COMMAND['RN1TO2']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { cb['sendNotice']('Rotating Notifier 1 Stopped and Rotating Notifier 2 Started!'); RN['rn1'] = false; RN['rn2'] = true }; break; case COMMAND['RN3START']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { cb['sendNotice']('Rotating Notifier 3 Started!'); RN['rn3'] = true }; break; case COMMAND['RN3STOP']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { cb['sendNotice']('Rotating Notifier 3 Stopped!'); RN['rn3'] = false }; break; case COMMAND['RN2TO3']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { cb['sendNotice']('Rotating Notifier 2 Stopped and Rotating Notifier 3 Started!'); RN['rn2'] = false; RN['rn3'] = true }; break; case COMMAND['ADD']: ; case COMMAND['AU']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { if (_0xb6b5xaf) { if (_0xb6b5xb0['length'] > 1) { for (var _0xb6b5x17 = 0; _0xb6b5x17 < _0xb6b5xb0['length']; _0xb6b5x17++) { if (!user('check', _0xb6b5xb0[_0xb6b5x17])) { cb['sendNotice'](_0xb6b5xb0[_0xb6b5x17] + ' added to pre-sale list.', _0xb6b5x8f, '', COLOR.RED, 'bold'); user('add', _0xb6b5xb0[_0xb6b5x17], false) } else { cb['sendNotice'](_0xb6b5xb0[_0xb6b5x17] + ' is already on the pre-sale list.', _0xb6b5x8f, '', COLOR.RED, 'bold') } } } else { user('add', _0xb6b5xaf, false) } } else { if (!user('check', _0xb6b5x1f['user'])) { user('add', _0xb6b5x1f['user'], false) } } }; break; case COMMAND['DEL']: ; case COMMAND['DU']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { if (_0xb6b5xaf) { user('del', _0xb6b5xaf, false); cb['sendNotice'](_0xb6b5xaf + ' deleted from ticket list... I think', _0xb6b5x8f) } }; break; case COMMAND['TLIST']: cb['sendNotice'](dashLine + '\x0ATicket holders: ' + CRAZY['TICKETLIST']['length'] + '\x0A' + dashLine + '\x0A' + (CRAZY['TICKETLIST']['length'] < 1 == true ? 'No tickets sold!' : cbjs['arrayJoin'](CRAZY.TICKETLIST, ', ')) + '\x0A' + dashLine, _0xb6b5x8f, '', COLOR.NOTICE, 'bold'); break; case COMMAND['ADDLIST']: _0xb6b5x1f['m'] = '/add ' + cbjs['arrayJoin'](CRAZY.TICKETLIST, ', '); break; case COMMAND['SIL']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { if (_0xb6b5xaf) { if (!cbjs['arrayContains'](CRAZY.SILLIST, _0xb6b5xaf)) { CRAZY['SILLIST']['push'](_0xb6b5xaf) } } }; break; case COMMAND['UNSIL']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { if (_0xb6b5xaf) { cbjs['arrayRemove'](CRAZY.SILLIST, _0xb6b5xaf) } }; break; case COMMAND['SLIST']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { cb['sendNotice'](dashLine + '\x0A* ' + APP['NAME'] + ' Silenced: ' + CRAZY['SILLIST']['length'] + '\x0A' + dashLine + '\x0A' + (CRAZY['SILLIST']['length'] < 1 == true ? '* Empty.' : cbjs['arrayJoin'](CRAZY.SILLIST, ', ')) + '\x0A' + dashLine, _0xb6b5x8f, '', COLOR.NOTICE, 'bold') }; break; case COMMAND['EXPORT']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { _0xb6b5x1f['m'] = '/add ' + cbjs['arrayJoin'](CRAZY.TICKETLIST, ', ') }; break; case COMMAND['STARTSHOW']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { if (CTTIME['STARTTIME'] != 0 && CTTIME['DURATION'] != 0) { CTtimerIsUp(); cb['sendNotice']('Since you started the show, we stopped the CrazyTicket timer..', _0xb6b5x8f, '', COLOR.NOTICE, 'bold') }; CRAZY['PRENOTE'] = false }; break; case COMMAND['EMAIL']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { FLAG['email'] ? FLAG['email'] = false : FLAG['email'] = true; cb['sendNotice']('* Detection of email in tip note is now ' + (FLAG['email'] == true ? 'ON.' : 'OFF.'), '', '', COLOR.NOTICE, 'bold', 'red'); cb['sendNotice']('* Detection of email in tip note is now ' + (FLAG['email'] == true ? 'ON.' : 'OFF.'), APP.ROOMHOST, COLOR.HVBACK, COLOR.HVTEXT, 'bold') }; break; case COMMAND['EMLIST']: if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa2) { var _0xb6b5xb5 = ''; for (var _0xb6b5x17 = 0; _0xb6b5x17 < emList['name']['length']; _0xb6b5x17++) { _0xb6b5xb5 += emList['name'][_0xb6b5x17] + ' - ' + emList['email'][_0xb6b5x17] + '\x0A' }; cb['sendNotice'](dashLine + '\x0A* List of email addresses this session: ' + emList['name']['length'] + '\x0A' + dashLine + '\x0A' + _0xb6b5xb5 + dashLine, _0xb6b5x8f, '', COLOR.NOTICE, 'bold') }; break; case '/sillymod': ; case '/silly': ; case '/unmod': if (_0xb6b5xa4 || _0xb6b5x95) { sillyMod(_0xb6b5x5b[1], _0xb6b5x5b[2], _0xb6b5x8f) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/silencelevel': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { setSilenceLevel(_0xb6b5x5b[1], _0xb6b5x8f) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/cleanup': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { if (_0xb6b5x5b[1] != null && (_0xb6b5x5b[1] != '' || _0xb6b5x5b[1] != ' ' || message1 != '\xA0')) { cleanUpChat(_0xb6b5x5b[1]) } else { cleanUpChat() } } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/sendnotice': ; case '/cn': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { if (_0xb6b5x5b[1] == 'r') { if (_0xb6b5xb3 != null && (_0xb6b5xb3 != '' || _0xb6b5xb3 != ' ' || _0xb6b5xb3 != '\xA0')) { sendPublicNotice(_0xb6b5xb3, _0xb6b5x8f, '', 'red') } else { cb['sendNotice']('You can\'t send a blank message.\x0A' + 'The correct syntax for this command is ' + '"/cn r message"' + '.', _0xb6b5x8f, '#fee') } } else { if (_0xb6b5xb2 != null && (_0xb6b5xb2 != '' || _0xb6b5xb2 != ' ' || _0xb6b5xb2 != '\xA0')) { sendPublicNotice(_0xb6b5xb2, _0xb6b5x8f, '', 'default') } else { cb['sendNotice']('You can\'t send a blank message.\x0A' + 'The correct syntax for this command is ' + '"/cn message"' + '.', _0xb6b5x8f, '#fee') } } } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/cnh': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { if (_0xb6b5x5b[1] == 'r') { if (_0xb6b5xb3 != null && (_0xb6b5xb3 != '' || _0xb6b5xb3 != ' ' || _0xb6b5xb3 != '\xA0')) { sendPublicNotice(_0xb6b5xb3, _0xb6b5x8f, 'h', 'red') } else { cb['sendNotice']('You can\'t send a blank message.\x0A' + 'The correct syntax for this command is ' + '"/cnh r message"' + '.', _0xb6b5x8f, '#fee') } } else { if (_0xb6b5xb2 != null && (_0xb6b5xb2 != '' || _0xb6b5xb2 != ' ' || _0xb6b5xb2 != '\xA0')) { sendPublicNotice(_0xb6b5xb2, _0xb6b5x8f, 'h', 'default') } else { cb['sendNotice']('You can\'t send a blank message.\x0A' + 'The correct syntax for this command is ' + '"/cnh message"' + '.', _0xb6b5x8f, '#fee') } } } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/cnd': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { if (_0xb6b5x5b[1] == 'r') { if (_0xb6b5xb3 != null && (_0xb6b5xb3 != '' || _0xb6b5xb3 != ' ' || _0xb6b5xb3 != '\xA0')) { sendPublicNotice(_0xb6b5xb3, _0xb6b5x8f, 'div', 'red') } else { cb['sendNotice']('You can\'t send a blank message.\x0A' + 'The correct syntax for this command is ' + '"/cnd r message"' + '.', _0xb6b5x8f, '#fee') } } else { if (_0xb6b5xb2 != null && (_0xb6b5xb2 != '' || _0xb6b5xb2 != ' ' || _0xb6b5xb2 != '\xA0')) { sendPublicNotice(_0xb6b5xb2, _0xb6b5x8f, 'div', 'default') } else { cb['sendNotice']('You can\'t send a blank message.\x0A' + 'The correct syntax for this command is ' + '"/cnd message"' + '.', _0xb6b5x8f, '#fee') } } } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/cndh': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { if (_0xb6b5x5b[1] == 'r') { if (_0xb6b5xb3 != null && (_0xb6b5xb3 != '' || _0xb6b5xb3 != ' ' || _0xb6b5xb3 != '\xA0')) { sendPublicNotice(_0xb6b5xb3, _0xb6b5x8f, 'divh', 'red') } else { cb['sendNotice']('You can\'t send a blank message.\x0A' + 'The correct syntax for this command is ' + '"/cndh r message"' + '.', _0xb6b5x8f, '#fee') } } else { if (_0xb6b5xb2 != null && (_0xb6b5xb2 != '' || _0xb6b5xb2 != ' ' || _0xb6b5xb2 != '\xA0')) { sendPublicNotice(_0xb6b5xb2, _0xb6b5x8f, 'divh', 'default') } else { cb['sendNotice']('You can\'t send a blank message.\x0A' + 'The correct syntax for this command is ' + '"/cndh message"' + '.', _0xb6b5x8f, '#fee') } } } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/tm': if (_0xb6b5xa4 || _0xb6b5xa1) { if (_0xb6b5xb2 != null && (_0xb6b5xb2 != '' || _0xb6b5xb2 != ' ' || _0xb6b5xb2 != '\xA0')) { sendPrivateNotice(_0xb6b5xb2, _0xb6b5x8f, 'to_mods') } else { cb['sendNotice']('You can\'t send a blank message.\x0A' + 'The correct syntax for this command is ' + '"/tm message"' + '.', _0xb6b5x8f, '#fee') } } else { cb['sendNotice']('Only moderators are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/graphiclevel': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { setGraphicLevel(_0xb6b5x5b[1], _0xb6b5x8f) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/silence': ; case '/sil': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { silence(_0xb6b5x5b[1], _0xb6b5x8f, 'regular') } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/ninja': ; case '/ninjasil': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { silence(_0xb6b5x5b[1], _0xb6b5x8f, 'ninja') } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/unsilence': ; case '/unsil': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { unsilence(_0xb6b5x5b[1], _0xb6b5x8f, 'regular') } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/unninja': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { unsilence(_0xb6b5x5b[1], _0xb6b5x8f, 'ninja') } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/starttimer': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { BnewTimer(_0xb6b5x5b[1], _0xb6b5x8f) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/addtime': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { addTime(_0xb6b5x5b[1], _0xb6b5x8f) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/ctstarttimer': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { var _0xb6b5xb6 = parseInt(_0xb6b5x5b[1]); CTnewTimer(_0xb6b5xb6, _0xb6b5x8f) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/ctaddtime': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { CTaddTime(_0xb6b5x5b[1], _0xb6b5x8f) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/cttimeleft': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { var _0xb6b5xb7 = CTminsLeft(); if (_0xb6b5xb7 != 1) { CTminsLeftNotice(_0xb6b5xb7) } else { CTminLeftNotice(_0xb6b5xb7) }; cb['log']('tempmins: ' + _0xb6b5xb7 + ' CTminsLeft: ' + CTminsLeft()) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/timeleft': timeLeft(_0xb6b5x8f); break; case '/whisper': ; case '/w': ; case '/tell': ; case '/t': ; case '/pm': if (_0xb6b5xa4 || _0xb6b5xa3 || _0xb6b5x95 || _0xb6b5xa1 || _0xb6b5xa7) { sendWhisper(_0xb6b5x5b, _0xb6b5x8f, true, _0xb6b5x9f) } else { sendWhisper(_0xb6b5x5b, _0xb6b5x8f, false, _0xb6b5x9f) }; _0xb6b5x1f['background'] = COLOR['DEFAULT']; break; case '/reply': ; case '/r': sendReply(_0xb6b5x5b, _0xb6b5x8f); _0xb6b5x1f['background'] = COLOR['DEFAULT']; break; case '/ignorelevel': setIgnoreLevel(_0xb6b5x5b[1], _0xb6b5x8f); break; case '/ignore': ignoreUser(_0xb6b5x5b[1], _0xb6b5x8f); break; case '/unignore': unignoreUser(_0xb6b5x5b[1], _0xb6b5x8f); break; case '/emod': if (_0xb6b5xa4 || _0xb6b5x95) { eMod(_0xb6b5x5b[1], _0xb6b5x5b[2], _0xb6b5x8f) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/addnice': if (_0xb6b5xa4 || _0xb6b5x95) { if (_0xb6b5xaf != null) { var _0xb6b5xb8 = _0xb6b5xaf['split'](_0xb6b5x9d); if (_0xb6b5xb8['length'] > 1) { cb['sendNotice']('Adding multiple users to the nice list.', _0xb6b5x8f, COLOR.DEFAULT); for (var _0xb6b5x17 = 0; _0xb6b5x17 < _0xb6b5xb8['length']; _0xb6b5x17++) { if (_0xb6b5xb8[_0xb6b5x17] != '') { if (!cbjs['arrayContains'](GROUP.NICE, _0xb6b5xb8[_0xb6b5x17])) { nicePopulate(_0xb6b5xb8[_0xb6b5x17]); cb['sendNotice']('Added ' + _0xb6b5xb8[_0xb6b5x17] + ' to the list.', _0xb6b5x8f); cb['sendNotice'](_0xb6b5x8f + ' has added you to the nice list.', _0xb6b5xb8[_0xb6b5x17], '#efe') } else { cb['sendNotice'](_0xb6b5xb8[_0xb6b5x17] + ' is already on the list. Skipping.', _0xb6b5x8f) } } }; cb['sendNotice']('All users were added and notified.', _0xb6b5x8f, COLOR.DEFAULT); cb['sendNotice'](_0xb6b5x8f + ' has added multiple users to the nice list.\x0A' + 'Users added: ' + cbjs['arrayJoin'](_0xb6b5xb8, ', '), '', COLOR.DEFAULT, '', 'normal', 'red') } else { var _0xb6b5xb9 = _0xb6b5x5b[1]; nice(_0xb6b5xb9, _0xb6b5x8f, 'a') } } else { cb['sendNotice']('You didn\'t specify who you want to add to the nice list.\x0AType "/ubhelp addnice" to see how to use /addnice.\x0A' + 'Additionally, check the nicelist help section for more info.', _0xb6b5x8f, '#fee') } } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/addgrey': ; case '/addgray': if (_0xb6b5xa4 || _0xb6b5x95) { if (_0xb6b5xaf != null) { var _0xb6b5xb8 = _0xb6b5xaf['split'](_0xb6b5x9d); if (_0xb6b5xb8['length'] > 1) { cb['sendNotice']('Adding multiple users to the gray list.', _0xb6b5x8f, COLOR.DEFAULT); for (var _0xb6b5x17 = 0; _0xb6b5x17 < _0xb6b5xb8['length']; _0xb6b5x17++) { if (_0xb6b5xb8[_0xb6b5x17] != '') { if (!cbjs['arrayContains'](GROUP.GREY, _0xb6b5xb8[_0xb6b5x17])) { greyPopulate(_0xb6b5xb8[_0xb6b5x17]); cb['sendNotice']('Added ' + _0xb6b5xb8[_0xb6b5x17] + ' to the list.', _0xb6b5x8f) } else { cb['sendNotice'](_0xb6b5xb8[_0xb6b5x17] + ' is already on the list. Skipping.', _0xb6b5x8f) } } }; cb['sendNotice'](_0xb6b5x8f + ' has added multiple users to the gray list.\x0A' + 'Users added: ' + cbjs['arrayJoin'](_0xb6b5xb8, ', '), '', COLOR.DEFAULT, '', 'normal', 'red') } else { var _0xb6b5xb9 = _0xb6b5x5b[1]; gray(_0xb6b5xb9, _0xb6b5x8f, 'a') } } else { cb['sendNotice']('You didn\'t specify who you want to add to the gray list.\x0AType "/ubhelp addgray" to see how to use /addgray.\x0A' + 'Additionally, check the graylist help section for more info.', _0xb6b5x8f, '#fee') } } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/addvip': if (_0xb6b5xa4 || _0xb6b5x95) { if (_0xb6b5xaf != null) { var _0xb6b5xb8 = _0xb6b5xaf['split'](_0xb6b5x9d); if (_0xb6b5xb8['length'] > 1) { cb['sendNotice']('Adding multiple users to the VIP list.', _0xb6b5x8f, COLOR.DEFAULT); for (var _0xb6b5x17 = 0; _0xb6b5x17 < _0xb6b5xb8['length']; _0xb6b5x17++) { if (_0xb6b5xb8[_0xb6b5x17] != '') { if (!cbjs['arrayContains'](GROUP.FREETICKET, _0xb6b5xb8[_0xb6b5x17])) { freeticketPopulate(_0xb6b5xb8[_0xb6b5x17]); cb['sendNotice']('Added ' + _0xb6b5xb8[_0xb6b5x17] + ' to the list.', _0xb6b5x8f); cb['sendNotice'](_0xb6b5x8f + ' has added you to the VIP list.', _0xb6b5xb8[_0xb6b5x17], '#efe') } else { cb['sendNotice'](_0xb6b5xb8[_0xb6b5x17] + ' is already on the list. Skipping.', _0xb6b5x8f) } } }; cb['sendNotice']('All users were added and notified.', _0xb6b5x8f, COLOR.DEFAULT); cb['sendNotice'](_0xb6b5x8f + ' has added multiple users to the VIP list.\x0A' + 'Users added: ' + cbjs['arrayJoin'](_0xb6b5xb8, ', '), '', COLOR.DEFAULT, '', 'normal', 'red') } else { var _0xb6b5xb9 = _0xb6b5x5b[1]; vip(_0xb6b5xb9, _0xb6b5x8f, 'a') } } else { cb['sendNotice']('You didn\'t specify who you want to add to the VIP list.\x0AType "/ubhelp addvip" to see how to use /addvip.\x0A' + 'Additionally, check the viplist help section for more info.', _0xb6b5x8f, '#fee') } } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/removenice': if (_0xb6b5xa4 || _0xb6b5x95) { nice(_0xb6b5x5b[1], _0xb6b5x8f, 'r') } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/removegrey': ; case '/removegray': if (_0xb6b5xa4 || _0xb6b5x95) { gray(_0xb6b5x5b[1], _0xb6b5x8f, 'r') } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/removevip': if (_0xb6b5xa4 || _0xb6b5x95) { vip(_0xb6b5x5b[1], _0xb6b5x8f, 'r') } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/nicelist': if (_0xb6b5xa4 || _0xb6b5x95) { cb['sendNotice']('Users currently on the Nice List: ' + GROUP['NICE']['length'], _0xb6b5x8f, COLOR.DEFAULT); cb['sendNotice']((GROUP['NICE']['length'] > 0 == true ? cbjs['arrayJoin'](GROUP.NICE, ', ') : 'No users.'), _0xb6b5x8f); cb['sendNotice']('', _0xb6b5x8f, COLOR.DEFAULT) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/graylist': ; case '/greylist': if (_0xb6b5xa4 || _0xb6b5x95) { cb['sendNotice']('Users currently on the Gray List: ' + GROUP['GREY']['length'], _0xb6b5x8f, COLOR.DEFAULT); cb['sendNotice']((GROUP['GREY']['length'] > 0 == true ? cbjs['arrayJoin'](GROUP.GREY, ', ') : 'No users.'), _0xb6b5x8f); cb['sendNotice']('', _0xb6b5x8f, COLOR.DEFAULT) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/presaleon': ; case '/preon': ; case '/pon': if (_0xb6b5xa4 || _0xb6b5x95) { CRAZY['PRENOTE'] = true; var _0xb6b5xba = ''; FLAG['advance'] ? _0xb6b5xba = ' \x0A You\'re selling tickets at ' + CRAZY['TICKETPRICE'] + ' tokens' : _0xb6b5xba = ' \x0A You forgot to enable pre-sale... silly broadcaster. But your super-smart app turned pre-sale on for you. \x0A Now selling tickets at ' + CRAZY['TICKETPRICE'] + ' tokens, change price with /tprice'; FLAG['advance'] = true; cb['sendNotice']('Advanced Ticket Sale NOTIFICATIONS have been turned ON.' + _0xb6b5xba, _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/presaleoff': ; case '/preoff': ; case '/poff': if (_0xb6b5xa4 || _0xb6b5x95) { CRAZY['PRENOTE'] = false; if (FLAG['advance']) { cb['sendNotice']('Advanced Ticket Sale NOTIFICATIONS have been turned OFF, still silently selling tickets at ' + CRAZY['TICKETPRICE'] + ' tokens', _0xb6b5x8f, COLOR.DEFAULT) } else { cb['sendNotice']('Advanced Ticket Sale NOTIFICATIONS have been turned OFF, but you weren\'t currently selling pre-sale tickets anyhow', _0xb6b5x8f, COLOR.DEFAULT) } }; break; case '/viplist': if (_0xb6b5xa4 || _0xb6b5x95) { cb['sendNotice']('Users currently on the VIP List: ' + GROUP['FREETICKET']['length'], _0xb6b5x8f, COLOR.DEFAULT); cb['sendNotice']((GROUP['FREETICKET']['length'] > 0 == true ? cbjs['arrayJoin'](GROUP.FREETICKET, ', ') : 'No users.'), _0xb6b5x8f); cb['sendNotice']('', _0xb6b5x8f, COLOR.DEFAULT) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/export': if (_0xb6b5xa4 || _0xb6b5x95) { if (GROUP['FREETICKET']['length'] > 0) { _0xb6b5x1f['m'] = '/add ' + cbjs['arrayJoin'](GROUP.FREETICKET, ', ') } else { cb['sendNotice']('There\'s no one on the VIP list.', _0xb6b5x8f, '#fee') } } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/modlist': if (_0xb6b5x95 || _0xb6b5xa4) { cb['sendNotice']('Users currently on the Mod Array: ' + GROUP['MOD']['length'], _0xb6b5x8f, COLOR.DEFAULT); cb['sendNotice']((GROUP['MOD']['length'] > 0 == true ? cbjs['arrayJoin'](GROUP.MOD, ', ') : 'No users.'), _0xb6b5x8f); cb['sendNotice']('', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/emodlist': if (_0xb6b5x95 || _0xb6b5xa4) { cb['sendNotice']('Users currently on the Emerg. Mod Array: ' + GROUP['EMOD']['length'], _0xb6b5x8f, COLOR.DEFAULT); cb['sendNotice']((GROUP['EMOD']['length'] > 0 == true ? cbjs['arrayJoin'](GROUP.EMOD, ', ') : 'No users.'), _0xb6b5x8f); cb['sendNotice']('', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/silenced': ; case '/sillist': if (_0xb6b5x95 || _0xb6b5xa4) { cb['sendNotice']('Users currently silenced: ' + GROUP['SILENCE']['length'], _0xb6b5x8f, COLOR.DEFAULT); cb['sendNotice']((GROUP['SILENCE']['length'] > 0 == true ? cbjs['arrayJoin'](GROUP.SILENCE, ', ') : 'No users.'), _0xb6b5x8f); cb['sendNotice']('', _0xb6b5x8f, COLOR.DEFAULT) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/ninjasillist': ; case '/ninjalist': if (_0xb6b5x95 || _0xb6b5xa4) { cb['sendNotice']('Users currently ninja-silenced: ' + GROUP['NINJA']['length'], _0xb6b5x8f, COLOR.DEFAULT); cb['sendNotice']((GROUP['NINJA']['length'] > 0 == true ? cbjs['arrayJoin'](GROUP.NINJA, ', ') : 'No users.'), _0xb6b5x8f); cb['sendNotice']('', _0xb6b5x8f, COLOR.DEFAULT) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/ubhelp': help(_0xb6b5x5b[1], _0xb6b5x8f); break; case '/leaderboard': ; case '/lb': ; case '!leaderboard': ; case '!lb': ; case '!leader': ; case '/leader': ; case '!leaders': ; case '/leaders': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { switch (_0xb6b5x5b[1]) { case 'all': cb['sendNotice']('SENT TO ALL:', _0xb6b5x8f, lbtext, lbback, 'bold'); showLeaderBoard('', ''); break; case 'tbm': cb['sendNotice']('SENT TO BROADCASTER and GROUP.MODS:', _0xb6b5x8f, lbtext, lbback, 'bold'); showLeaderBoard('', 'red'); showLeaderBoard(cb['room_slug'], ''); break; case 'tm': ; case 'mod': ; case 'mods': cb['sendNotice']('SENT TO GROUP.MODS:', _0xb6b5x8f, lbtext, lbback, 'bold'); showLeaderBoard('', 'red'); break; case 'broadcaster': ; case 'bc': cb['sendNotice']('SENT TO YOU BY: ' + _0xb6b5x8f, cb['room_slug'], lbtext, lbback, 'bold'); cb['sendNotice']('SENT TO BROADCASTER:', _0xb6b5x8f, lbtext, lbback, 'bold'); showLeaderBoard(cb['room_slug'], ''); break; case 'tv': cb['sendNotice']('SENT TO VIEWER: ' + _0xb6b5x5b[2], _0xb6b5x8f, lbtext, lbback, 'bold'); cb['sendNotice']('SENT TO YOU BY: ' + _0xb6b5x8f, _0xb6b5x5b[2], lbtext, lbback, 'bold'); showLeaderBoard(_0xb6b5x5b[2], ''); break; case 'me': cb['sendNotice']('SENT TO ONLY YOU:', _0xb6b5x8f, lbtext, lbback, 'bold'); showLeaderBoard(_0xb6b5x8f, ''); break; default: cb['sendNotice']('SENT TO ONLY YOU:', _0xb6b5x8f, lbtext, lbback, 'bold'); showLeaderBoard(_0xb6b5x8f, ''); break } } else { showLeaderBoard(_0xb6b5x8f, '') }; break; case '/tips': ; case '/tiper': ; case '/tipers': ; case '/tippers': ; case '/tipper': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { switch (_0xb6b5x5b[1]) { case 'all': cb['sendNotice']('SENT TO ALL:', _0xb6b5x8f, lbtext, lbback, 'bold'); showTippers('', '', _0xb6b5x5b[2]); break; case 'tbm': cb['sendNotice']('SENT TO BROADCASTER and GROUP.MODS:', _0xb6b5x8f, lbtext, lbback, 'bold'); showTippers('', 'red', _0xb6b5x5b[2]); showTippers(cb['room_slug'], '', _0xb6b5x5b[2]); break; case 'tm': ; case 'mod': ; case 'mods': cb['sendNotice']('SENT TO GROUP.MODS:', _0xb6b5x8f, lbtext, lbback, 'bold'); showTippers('', 'red', _0xb6b5x5b[2]); break; case 'broadcaster': ; case 'bc': cb['sendNotice']('SENT TO YOU BY: ' + _0xb6b5x8f, cb['room_slug'], lbtext, lbback, 'bold'); cb['sendNotice']('SENT TO BROADCASTER:', _0xb6b5x8f, lbtext, lbback, 'bold'); showTippers(cb['room_slug'], '', _0xb6b5x5b[2]); break; case 'me': cb['sendNotice']('SENT TO ONLY YOU:', _0xb6b5x8f, lbtext, lbback, 'bold'); showTippers(_0xb6b5x8f, '', _0xb6b5x5b[2]); break; default: cb['sendNotice']('SENT TO ONLY YOU:', _0xb6b5x8f, lbtext, lbback, 'bold'); showTippers(_0xb6b5x8f, '', _0xb6b5x5b[1]); break } } else { showTippers(_0xb6b5x8f, '', _0xb6b5x5b[2]) }; break; case '/kingtipper': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { kingToggle(_0xb6b5x5b[1], _0xb6b5x8f) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/kingspam': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { kingSpamToggle(_0xb6b5x5b[1], _0xb6b5x8f) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/notifierspam': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { notifierSpamToggle(_0xb6b5x5b[1], _0xb6b5x8f) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/leaderboardspam': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { leaderboardToggle(_0xb6b5x5b[1], _0xb6b5x8f) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/notifiermessage': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { if (_0xb6b5x5b[1] == '' || _0xb6b5x5b[1] == null) { cb['sendNotice']('You must enter a new message for the notifier feature. If you want to disable the notifications, enter /notifierspam off.', _0xb6b5x8f, COLOR.DEFAULT) } else { RN['notifierMessage'] = _0xb6b5x1f['m']['substring'](16)['trim'](); cb['sendNotice']('You have set the notifier spam message to: ' + RN['notifierMessage'], _0xb6b5x8f, COLOR.DEFAULT) } } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/wordlist': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { wordListToggle(_0xb6b5x5b[1], _0xb6b5x8f) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/blocknotice': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { blockNoticeToggle(_0xb6b5x5b[1], _0xb6b5x8f) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; case '/mon': if (_0xb6b5xa4 || _0xb6b5x95 || _0xb6b5xa1) { if (!cbjs['arrayContains'](GROUP.BLOCKMSG, _0xb6b5x8f)) { blockmsgPopulate(_0xb6b5x8f) } else { cbjs['arrayRemove'](GROUP.BLOCKMSG, _0xb6b5x8f) }; cb['sendNotice']('Monitoring of blocked messages is now ' + (cbjs['arrayContains'](GROUP.BLOCKMSG, _0xb6b5x8f) == true ? 'on.' : 'off.'), _0xb6b5x8f, COLOR.DEFAULT) } else { cb['sendNotice']('Only moderators and broadcasters are able to use that command.\x0AType "/ubhelp commands" to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT) }; break; default: if (cb['settings']['invalidToggle'] == 'Yes' && _0xb6b5x5b[0]['charAt'](0) == '/') { cb['sendNotice'](_0xb6b5x5b[0] + ' is not a command.\x0AType /ubhelp commands to see a full list of the available commands.', _0xb6b5x8f, COLOR.DEFAULT); sendPrivateNotice(_0xb6b5x8f + ' entered invalid command: ' + _0xb6b5x5b[0], 'SENT TO MODS', 'to_mods') } }; if (_0xb6b5xa4 || _0xb6b5x95) { if (!cbjs['arrayContains'](GROUP.MOD, _0xb6b5x8f)) { modPopulate(_0xb6b5x8f) } }; if (cbjs['arrayContains'](GROUP.SILENCE, _0xb6b5x8f) && _0xb6b5x9b == false) { _0xb6b5x1f['X-Spam'] = true; _0xb6b5x9b = true; cb['sendNotice']('Your message was not sent because you have been silenced. Be nice and don\'t make demands.', _0xb6b5x8f, COLOR.DEFAULT) }; if (cbjs['arrayContains'](GROUP.NINJA, _0xb6b5x8f) && _0xb6b5x9b == false) { _0xb6b5x1f['X-Spam'] = true; _0xb6b5x9b = true }; if (GROUP['SILENCELEVEL'] > 0 && !_0xb6b5xa4 && !_0xb6b5x95 && !_0xb6b5xa1 && !_0xb6b5xa7 && !_0xb6b5xa3 && _0xb6b5x9b == false) { switch (GROUP['SILENCELEVEL']) { case 1: if (!_0xb6b5x9f && (Number['parseInt'](GROUP['TIPPER'][findTipper(_0xb6b5x8f)][1], 10) == 0)) { _0xb6b5x1f['X-Spam'] = true; _0xb6b5x9b = true; cb['sendNotice']('I\'m sorry, but the silence level has been set to 1; your message was not sent. Only members who have tokens are currently permitted to talk in chat.\x0AType "/ubhelp silencelevel" to see how the various silence levels work.\x0APlease enjoy the show :smile', _0xb6b5x8f, COLOR.DEFAULT) }; break; case 2: if (Number['parseInt'](GROUP['TIPPER'][findTipper(_0xb6b5x8f)][1], 10) == 0) { _0xb6b5x1f['X-Spam'] = true; _0xb6b5x9b = true; cb['sendNotice']('I\'m sorry, but the silence level has been set to 2; your message was not sent. Only members who have tipped at least 1 token are currently permitted to talk in chat.\x0AType "/ubhelp silencelevel" to see how the various silence levels work.\x0APlease enjoy the show :smile', _0xb6b5x8f, COLOR.DEFAULT) }; break; case 3: if (Number['parseInt'](GROUP['TIPPER'][findTipper(_0xb6b5x8f)][1], 10) < 10) { _0xb6b5x1f['X-Spam'] = true; _0xb6b5x9b = true; cb['sendNotice']('I\'m sorry, but the silence level has been set to 3; your message was not sent. Only members who have tipped at least 10 tokens are currently permitted to talk in chat.\x0AType "/ubhelp silencelevel" to see how the various silence levels work.\x0APlease enjoy the show :smile', _0xb6b5x8f, COLOR.DEFAULT) }; break; case 4: if (Number['parseInt'](GROUP['TIPPER'][findTipper(_0xb6b5x8f)][1], 10) < 100) { _0xb6b5x1f['X-Spam'] = true; _0xb6b5x9b = true; cb['sendNotice']('I\'m sorry, but the silence level has been set to 4; your message was not sent. Only members who have tipped at least 100 tokens are currently permitted to talk in chat.\x0AType ' + '"/ubhelp silencelevel"' + ' to see how the various silence levels work.\x0APlease enjoy the show :smile', _0xb6b5x1f['user'], COLOR.DEFAULT) }; break; case 5: _0xb6b5x1f['X-Spam'] = true; _0xb6b5x9b = true; cb['sendNotice']('I\'m sorry, but the silence level has been set to 5; your message was not sent. Only moderators, emergency moderators, and fan club members are currently permitted to talk in chat.\x0AType ' + '"/ubhelp silencelevel"' + ' to see how the various silence levels work.\x0APlease enjoy the show :smile', _0xb6b5x1f['user'], COLOR.DEFAULT); break } }; if (GROUP['GRAPHICLEVEL'] > 0 && !_0xb6b5xa4 && !_0xb6b5x95 && !_0xb6b5xa1 && !_0xb6b5xa7 && !_0xb6b5xa3 && _0xb6b5x9b == 0) { switch (GROUP['GRAPHICLEVEL']) { case 1: if (!_0xb6b5x9f) { for (var _0xb6b5x17 = 0; _0xb6b5x17 < _0xb6b5x5b['length']; _0xb6b5x17++) { if (_0xb6b5x5b[_0xb6b5x17]['charAt'](0) == ':') { _0xb6b5x1f['X-Spam'] = true; cb['sendNotice']('Your message was not sent because you tried to use ' + _0xb6b5x5b[_0xb6b5x17] + ' and the graphic level has been set to ' + GROUP['GRAPHICLEVEL'] + '.\x0AType "/ubhelp graphiclevel to see how the various graphic levels work.\x0APlease enjoy the show :smile', _0xb6b5x8f, COLOR.DEFAULT) } } }; break; case 2: if (Number['parseInt'](GROUP['TIPPER'][findTipper(_0xb6b5x8f)][1], 10) == 0) { for (var _0xb6b5x17 = 0; _0xb6b5x17 < _0xb6b5x5b['length']; _0xb6b5x17++) { if (_0xb6b5x5b[_0xb6b5x17]['charAt'](0) == ':') { _0xb6b5x1f['X-Spam'] = true; cb['sendNotice']('Your message was not sent because you tried to use ' + _0xb6b5x5b[_0xb6b5x17] + ' and the graphic level has been set to ' + GROUP['GRAPHICLEVEL'] + '.\x0AType "/ubhelp graphiclevel to see how the various graphic levels work.\x0APlease enjoy the show :smile', _0xb6b5x8f, COLOR.DEFAULT) } } }; break; case 3: if (Number['parseInt'](GROUP['TIPPER'][findTipper(_0xb6b5x8f)][1], 10) < 10) { for (var _0xb6b5x17 = 0; _0xb6b5x17 < _0xb6b5x5b['length']; _0xb6b5x17++) { if (_0xb6b5x5b[_0xb6b5x17]['charAt'](0) == ':') { _0xb6b5x1f['X-Spam'] = true; cb['sendNotice']('Your message was not sent because you tried to use ' + _0xb6b5x5b[_0xb6b5x17] + ' and the graphic level has been set to ' + GROUP['GRAPHICLEVEL'] + '.\x0AType "/ubhelp graphiclevel to see how the various graphic levels work.\x0APlease enjoy the show :smile', _0xb6b5x8f, COLOR.DEFAULT) } } }; break; case 4: if (Number['parseInt'](GROUP['TIPPER'][findTipper(_0xb6b5x8f)][1], 10) < 100) { for (var _0xb6b5x17 = 0; _0xb6b5x17 < _0xb6b5x5b['length']; _0xb6b5x17++) { if (_0xb6b5x5b[_0xb6b5x17]['charAt'](0) == ':') { _0xb6b5x1f['X-Spam'] = true, cb['sendNotice']('Your message was not sent because you tried to use ' + _0xb6b5x5b[_0xb6b5x17] + ' and the graphic level has been set to ' + GROUP['GRAPHICLEVEL'] + '.\x0AType ' + '"/ubhelp graphiclevel"' + 'to see how the various graphic levels work.\x0APlease enjoy the show :smile', _0xb6b5x1f['user'], COLOR.DEFAULT) } } }; break; case 5: for (var _0xb6b5x17 = 0; _0xb6b5x17 < _0xb6b5x5b['length']; _0xb6b5x17++) { if (_0xb6b5x5b[_0xb6b5x17]['charAt'](0) == ':') { _0xb6b5x1f['X-Spam'] = true, cb['sendNotice']('Your message was not sent because you tried to use ' + _0xb6b5x5b[_0xb6b5x17] + ' and the graphic level has been set to ' + GROUP['GRAPHICLEVEL'] + '.\x0AType ' + '"/ubhelp graphiclevel"' + 'to see how the various graphic levels work.\x0APlease enjoy the show :smile', _0xb6b5x1f['user'], COLOR.DEFAULT) } }; break } }; var _0xb6b5xbb = null; for (var _0xb6b5x17 = 0; _0xb6b5x17 < _0xb6b5x5b['length']; _0xb6b5x17++) { if (_0xb6b5x17 == 0) { _0xb6b5xbb = _0xb6b5x5b[_0xb6b5x17] } else { _0xb6b5xbb += ' ' + _0xb6b5x5b[_0xb6b5x17] } }; if (_0xb6b5xbb == _0xb6b5xbb['toUpperCase']() && _0xb6b5xbb != _0xb6b5xbb['toLowerCase']() && !_0xb6b5xa4 && !_0xb6b5x95 && !_0xb6b5xa1) { if (cb['settings']['capsToggle'] == 'Yes (for all users)' || (cb['settings']['capsToggle'] == 'Yes (only for grays)' && !_0xb6b5x9f && !_0xb6b5x9e || !_0xb6b5xa6)) { for (var _0xb6b5x17 = 0; _0xb6b5x17 < _0xb6b5x5b['length']; _0xb6b5x17++) { if (_0xb6b5x9c['test'](_0xb6b5x5b[_0xb6b5x17]['charAt'](0)) == false) { if (_0xb6b5x17 == 0) { _0xb6b5xbb = _0xb6b5x5b[_0xb6b5x17]['toLowerCase']() } else { _0xb6b5xbb += ' ' + _0xb6b5x5b[_0xb6b5x17]['toLowerCase']() }; cb['sendNotice']('I\'m sure you didn\'t actually mean to send that message in all capital letters, so I fixed it for you :smile', _0xb6b5x8f, COLOR.DEFAULT) } else { if (_0xb6b5x17 == 0) { _0xb6b5xbb = _0xb6b5x5b[_0xb6b5x17] } else { _0xb6b5xbb += ' ' + _0xb6b5x5b[_0xb6b5x17] } } }; _0xb6b5x1f['m'] = _0xb6b5xbb } }; if (cb['settings']['tipTitles'] == 'Yes' && tipperList['name']['indexOf'](_0xb6b5x8f) > -1 && _0xb6b5x5b[0]['charAt'](0) != '/' && _0xb6b5x5b[0]['charAt'](0) != '!') { if (LB['kingTipper'] == true && _0xb6b5x8f == LB['currentKing']) { _0xb6b5x1f['m'] = ':smallCrown |' + tipperList['amount'][(tipperList['name']['indexOf'](_0xb6b5x8f))] + '| ' + _0xb6b5x1f['m'] } else { _0xb6b5x1f['m'] = '|' + tipperList['amount'][(tipperList['name']['indexOf'](_0xb6b5x8f))] + '| ' + _0xb6b5x1f['m'] } }; if (cbjs['arrayContains'](CRAZY.TICKETLIST, _0xb6b5x8f) && isNaN(_0xb6b5x1f['m']['charAt'](0)) && _0xb6b5x1f['m']['charAt'](0) != ':' && _0xb6b5x1f['m']['charAt'](0) != '/' && _0xb6b5x1f['m']['charAt'](0) != '!' && _0xb6b5x1f['m']['charAt'](0) != '.' && _0xb6b5x1f['m']['charAt'](0) != ';' && FLAG['isYOC'] && _0xb6b5x8f != '18yearoldcouple' && _0xb6b5x8f != '19_naked' && _0xb6b5x8f != '119yearoldcouple' && _0xb6b5x8f != '19yearoldcouple') { _0xb6b5x1f['m'] = ':ct2flash ' + _0xb6b5x1f['m'] }; if (LB['htAllTime'] != null) { if (_0xb6b5x8f == LB['htAllTime']) { if (COLOR['HTAT'] != null) { _0xb6b5x1f['background'] = COLOR['HTAT'] } } }; if (_0xb6b5x8f == '18yearoldcouple' || _0xb6b5x8f == '19_naked') { _0xb6b5x1f['background'] = '#F5D9FF' }; return _0xb6b5x1f }); cb['onTip'](function(_0xb6b5x1e) { var _0xb6b5x91 = _0xb6b5x1e['message']; var _0xb6b5xbc = ''; var _0xb6b5xbd = 0; var _0xb6b5x8f = _0xb6b5x1e['from_user']; var _0xb6b5x9f = _0xb6b5x1e['from_user_has_tokens']; var _0xb6b5xa3 = _0xb6b5x1e['from_user_in_fanclub']; var _0xb6b5xa4 = _0xb6b5x1e['from_user_is_mod']; var _0xb6b5x90 = Number['parseInt'](_0xb6b5x1e['amount'], 10); var _0xb6b5xbe = _0xb6b5x1e['message']; GROUP['TIPPER'][findTipper(_0xb6b5x8f)][1] += _0xb6b5x90; if (!cbjs['arrayContains'](tipperList['name'], _0xb6b5x8f)) { tipperListPopulate(_0xb6b5x8f, _0xb6b5x90) } else { var _0xb6b5xbf = tipperList['name']['indexOf'](_0xb6b5x8f); tipperList['amount'][_0xb6b5xbf] += _0xb6b5x90 }; preSale(_0xb6b5x8f, _0xb6b5x90, _0xb6b5x91); if (LB['kingTipper'] == true) { if (_0xb6b5x8f != LB['currentKing'] && Number['parseInt'](GROUP['TIPPER'][findTipper(_0xb6b5x8f)][1], 10) > LB['kingTip'] && Number['parseInt'](GROUP['TIPPER'][findTipper(_0xb6b5x8f)][1], 10) >= Number['parseInt'](cb['settings']['kingMin'], 10)) { if (LB['currentKing'] != '') { cb['sendNotice']('You have been dethroned by ' + _0xb6b5x8f + ', but revenge is sweet...', LB['currentKing'], COLOR.DEFAULT) }; cb['sendNotice'](':smallCrown WHOOHOO! We have a new King! All hail ' + _0xb6b5x8f + '!', '', COLOR.DEFAULT, COLOR.USTARTCOLOR, 'bold'); LB['currentKing'] = _0xb6b5x8f; LB['kingTip'] = Number['parseInt'](GROUP['TIPPER'][findTipper(_0xb6b5x8f)][1], 10) } else { if (_0xb6b5x8f == LB['currentKing']) { LB['kingTip'] = Number['parseInt'](GROUP['TIPPER'][findTipper(_0xb6b5x8f)][1], 10) } } }; if (cb['settings']['notifierTip'] == 'Yes' && Number['parseInt'](_0xb6b5x90) >= cb['settings']['tipMessageMin']) { cb['sendNotice'](cb['settings']['tipMessage'], (cb['settings']['notifierPrivate'] == 'Private' ? _0xb6b5x8f : ''), COLOR.DEFAULT, COLOR.USTARTCOLOR, 'bold') } }); cb['onEnter'](function(user) { var _0xb6b5x8f = user['user']; var _0xb6b5x95 = _0xb6b5x8f == cb['room_slug']; var _0xb6b5xa4 = (user['is_mod'] || user['user'] == '18yearoldcouple' || user['user'] == '19_naked' || user['user'] == 'mr_likes_it_' || user['user'] == 'theswisspimp'); if (_0xb6b5xa4 || _0xb6b5x95) { if (!cbjs['arrayContains'](GROUP.MOD, _0xb6b5x8f)) { modPopulate(_0xb6b5x8f) } }; entryMessage(_0xb6b5x8f, _0xb6b5x95) }); function main() { if (FLAG['initialize'] == false) { ubStartup(); FLAG['initialize'] = true } } main()
© Copyright Chaturbate 2011- 2024. All Rights Reserved.