Bots Home
|
Create an App
CrazyNote
Author:
os_vigilante
Description
Source Code
Launch Bot
Current Users
Created by:
Os_Vigilante
var app = { name: '\'CrazyNote\'', type: 'Bot', version: '1.6', build: '.027', date: '2017.05.29', acg: 'acrazyguy', pkm: 'phatkatmeow', rx: 'robx7', sf: 'sartfack', bli: 'birdylovesit', bf: 'blazefyre', CD: 'dump' }; var COLOR = { DEVELOPER: '#D9F7F7', NOTICE: '#6900CC', RED: '#FF1407', MRED: '#D80A00', HLRED: '#FFE5E5', HILITE: '#EEE5FF', SYNTAX: '#995B00', AMBER: '#E56B00', MOD: '#DC0000', HVTEXT: '#D80A00', HVBACK: '#FFFFBF', TBMBACK: '#E0EEFF', TBMTEXT: '#12447A', HELP: '#144D8C', INFO: '#144D8C', MAG: '#E509E5', DMAG: '#990099', HLMAG: '#FFD8FF', BLI: '#DDFFCC', BF: '#FFE0EA', BLUE: '#000099' }; var COMMAND = { CN: 'cn', CNH: 'cnh', CND: 'cnd', CNDH: 'cndh', BC: 'bc', TM: 'tm', TBM: 'tbm', TV: 'tv', CNHELP: 'cnhelp', TPRICE: 'tprice', FCPRICE: 'fcprice', ADD: 'add', DEL: 'del', TLIST: 'tlist', SIL: 'sil', UNSIL: 'unsil', SLIST: 'slist', EXPORT: 'export', PRELIST: 'prelist' }; var FLAG = { price: false, fcprice: false, advance: false, dev: false, rotnote: false }; var ticketsSold = 0; var tipTot = 0; var ticketPrice = 0; var fcPrice = 0; var MODS = 'red'; var ONLY_MODS = '\u25CF Command is only available to moderators.'; var roomHost = cb['room_slug']; var blankStr = ''; var dashLine = '------------------------------------------------------------'; var modNotice = dashLine + '\x0A\u25CF Broadcaster \'' + roomHost + '\' is running ' + app['name'] + '.\x0A\u25CF Type /cnhelp for a list of available commands.\x0A' + dashLine; var ticketList = []; var silList = []; var gsilList = []; var devList = []; var rotNotices = []; var noteIdx = 0; cb['settings_choices'] = [{ name: 'advance', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'No', label: 'Use \'CrazyNote\' to sell advance tickets for a future \'CrazyTicket\' show?' }, { name: 'buyin', type: 'int', label: 'Enter ticket price if used for advance ticket sales OR as backup for \'CrazyTicket\'', required: false }, { name: 'enterNotice', type: 'str', label: 'Enter text for Notice that will display to viewers as they enter the room. Leave blank to disable', required: false }, { name: 'enableNotes', type: 'choice', choice1: 'No', choice2: 'Yes', label: 'Enable ROTATING NOTICES?' }, { name: 'notice1', type: 'str', label: 'Enter text for ROTATING NOTICE #1', required: false }, { name: 'notice2', type: 'str', label: 'Enter text for ROTATING NOTICE #2', required: false }, { name: 'notice3', type: 'str', label: 'Enter text for ROTATING NOTICE #3', required: false }, { name: 'noteInterval', type: 'int', minValue: 1, defaultValue: 5, label: 'Enter the time interval between Rotating Notices (minutes)' }, { name: 'noteColor', type: 'choice', choice1: 'Classic Blue/Purple', choice2: 'Medium Red', defaultValue: 'Medium Red', label: 'Choose the color for Entering and Rotating Notices' }]; if (cb['settings']['buyin']) { ticketPrice = parseInt(cb['settings']['buyin'], 10) }; if (cb['settings']['buyin']) { FLAG['price'] = true }; if (cb['settings']['advance'] === 'Yes') { FLAG['advance'] = true }; if (cb['settings']['enableNotes'] === 'Yes') { FLAG['rotnote'] = true }; if (FLAG['rotnote']) { for (var i = 1; i <= 3; i++) { if (cb['settings']['notice' + i]) { rotNotices['push'](cb['settings']['notice' + i]) } } }; if (cb['settings']['noteColor'] === 'Classic Blue/Purple') { var noteColor = COLOR['NOTICE'] } else { if (cb['settings']['noteColor'] === 'Medium Red') { var noteColor = COLOR['MRED'] } }; cb['onEnter'](function (_0x7de6x17) { if (_0x7de6x17['is_mod']) { cb['sendNotice'](modNotice, _0x7de6x17['user'], '', COLOR.NOTICE, 'bold') }; if (cb['settings']['enterNotice']) { cb['sendNotice'](dashLine + '\x0A\u25CF ' + cb['settings']['enterNotice'] + '\x0A' + dashLine, _0x7de6x17['user'], '', noteColor, 'bold') } }); cb['onTip'](function (_0x7de6x18) { var _0x7de6x17 = _0x7de6x18['from_user']; var _0x7de6x19 = _0x7de6x18['message']; var _0x7de6x1a = _0x7de6x18['from_user_in_fanclub']; var _0x7de6x1b = parseInt(_0x7de6x18['amount'], 10); tipTot += _0x7de6x1b; if (((_0x7de6x1b >= ticketPrice) && FLAG['price']) || (FLAG['fcprice'] && _0x7de6x1a && (_0x7de6x1b >= fcPrice))) { if (!cbjs['arrayContains'](ticketList, _0x7de6x17)) { user('add', _0x7de6x17, false); if (FLAG['advance']) { cb['sendNotice']('\u25CF Advance ticket sold to \'' + _0x7de6x17 + '\'', '', '', COLOR.NOTICE, 'bold') } } } }); cb['onMessage'](function (_0x7de6x1c) { var _0x7de6x1d = '^' + '/' + '(\S+)(?:\b\s*)(.*)?'; var _0x7de6x1e = /[,\s]+/; var _0x7de6x1f = new RegExp(_0x7de6x1d); var _0x7de6x20 = _0x7de6x1c['m']['match'](_0x7de6x1f); var _0x7de6x21; var _0x7de6x22; var _0x7de6x23; if (_0x7de6x20) { _0x7de6x21 = _0x7de6x20[1]; _0x7de6x22 = _0x7de6x20[2]; if (_0x7de6x22 != null) { _0x7de6x22 = _0x7de6x22['replace'](/^\s+|\s+$/g, '') }; if (_0x7de6x22 != null) { _0x7de6x23 = _0x7de6x22['split'](_0x7de6x1e) } else { _0x7de6x23 = '' } }; var _0x7de6x24 = _0x7de6x1c['m']; var _0x7de6x17 = _0x7de6x1c['user']; var _0x7de6x25 = _0x7de6x1c['is_mod']; var _0x7de6x26 = (_0x7de6x17 === roomHost); var _0x7de6x27 = (_0x7de6x17 === app['acg']); var _0x7de6x28, _0x7de6x29; var _0x7de6x2a = ''; var _0x7de6x2b = ''; if (cbjs['arrayContains'](silList, _0x7de6x17) && !_0x7de6x25) { _0x7de6x1c['X-Spam'] = true }; if (cbjs['arrayContains'](gsilList, _0x7de6x17) && !_0x7de6x25) { _0x7de6x1c['m'] = _0x7de6x24['replace'](/:\w+/gi, ''); _0x7de6x24 = _0x7de6x1c['m'] }; switch (_0x7de6x21) { case COMMAND['CN']: if (_0x7de6x25 || _0x7de6x26 || (_0x7de6x27 && FLAG['dev'])) { if (_0x7de6x22) { if (_0x7de6x23[0] === 'r') { _0x7de6x22 = _0x7de6x22['slice'](2); _0x7de6x2a = COLOR['MRED'] } else { _0x7de6x2a = COLOR['NOTICE'] }; cb['sendNotice']('\u25CF ' + _0x7de6x22['substr'](0, 1)['toUpperCase']() + _0x7de6x22['substr'](1), '', '', _0x7de6x2a, 'bold') } else { cb['sendNotice']('\u25CF Syntax: /cn <message>', _0x7de6x17, '', COLOR.SYNTAX, 'bold') } } else { cb['sendNotice'](ONLY_MODS, _0x7de6x17, '', COLOR.NOTICE, 'bold') }; break; case COMMAND['CNH']: if (_0x7de6x25 || _0x7de6x26 || (_0x7de6x27 && FLAG['dev'])) { if (_0x7de6x22) { if (_0x7de6x23[0] === 'r') { _0x7de6x22 = _0x7de6x22['slice'](2); _0x7de6x2a = COLOR['MRED']; _0x7de6x2b = COLOR['HLRED'] } else { _0x7de6x2a = COLOR['NOTICE']; _0x7de6x2b = COLOR['HILITE'] }; cb['sendNotice']('\u25CF ' + _0x7de6x22['substr'](0, 1)['toUpperCase']() + _0x7de6x22['substr'](1), '', _0x7de6x2b, _0x7de6x2a, 'bold') } else { cb['sendNotice']('\u25CF Syntax: /cnh <message>', _0x7de6x17, '', COLOR.SYNTAX, 'bold') } } else { cb['sendNotice'](ONLY_MODS, _0x7de6x17, '', COLOR.NOTICE, 'bold') }; break; case COMMAND['CND']: if (_0x7de6x25 || _0x7de6x26 || (_0x7de6x27 && FLAG['dev'])) { if (_0x7de6x22) { if (_0x7de6x23[0] === 'r') { _0x7de6x22 = _0x7de6x22['slice'](2); _0x7de6x2a = COLOR['MRED'] } else { _0x7de6x2a = COLOR['NOTICE'] }; cb['sendNotice'](dashLine + '\x0A\u25CF ' + _0x7de6x22['substr'](0, 1)['toUpperCase']() + _0x7de6x22['substr'](1) + '\x0A' + dashLine, '', '', _0x7de6x2a, 'bold') } else { cb['sendNotice']('\u25CF Syntax: /cnd <message>', _0x7de6x17, '', COLOR.SYNTAX, 'bold') } } else { cb['sendNotice'](ONLY_MODS, _0x7de6x17, '', COLOR.NOTICE, 'bold') }; break; case COMMAND['CNDH']: if (_0x7de6x25 || _0x7de6x26 || (_0x7de6x27 && FLAG['dev'])) { if (_0x7de6x22) { if (_0x7de6x23[0] === 'r') { _0x7de6x22 = _0x7de6x22['slice'](2); _0x7de6x2a = COLOR['MRED']; _0x7de6x2b = COLOR['HLRED'] } else { _0x7de6x2a = COLOR['NOTICE']; _0x7de6x2b = COLOR['HILITE'] }; cb['sendNotice'](dashLine + '\x0A\u25CF ' + _0x7de6x22['substr'](0, 1)['toUpperCase']() + _0x7de6x22['substr'](1) + '\x0A' + dashLine, '', _0x7de6x2b, _0x7de6x2a, 'bold') } else { cb['sendNotice']('\u25CF Syntax: /cndh <message>', _0x7de6x17, '', COLOR.SYNTAX, 'bold') } } else { cb['sendNotice'](ONLY_MODS, _0x7de6x17, '', COLOR.NOTICE, 'bold') }; break; case COMMAND['BC']: if (_0x7de6x25 || (_0x7de6x27 && FLAG['dev'])) { if (_0x7de6x22) { cb['sendNotice']((_0x7de6x25 ? '\u25CF ' + _0x7de6x17['toUpperCase']() + ': ' : '--------------- CrazyWare App Support ---------------\x0A\u25CF ') + _0x7de6x22 + (_0x7de6x25 ? '' : '\x0A' + dashLine), roomHost, COLOR.HVBACK, COLOR.HVTEXT, 'bold'); cb['sendNotice']((_0x7de6x25 ? '\u25CF ' + _0x7de6x17['toUpperCase']() + ': ' : '--------------- CrazyWare App Support ---------------\x0A\u25CF ') + _0x7de6x22 + (_0x7de6x25 ? '' : '\x0A' + dashLine), _0x7de6x17, COLOR.HVBACK, COLOR.HVTEXT, 'bold') } else { cb['sendNotice']('\u25CF Syntax: /bc <message>', _0x7de6x17, '', COLOR.SYNTAX, 'bold') } } else { cb['sendNotice'](ONLY_MODS, _0x7de6x17, '', COLOR.NOTICE, 'bold') }; break; case COMMAND['TM']: if (_0x7de6x25 || _0x7de6x26 || (_0x7de6x27 && FLAG['dev'])) { if (_0x7de6x22) { cb['sendNotice']((_0x7de6x25 ? '\u25CF ' + _0x7de6x17['toUpperCase']() + ': ' : '--------------- CrazyWare App Support ---------------\x0A\u25CF ') + _0x7de6x22 + (_0x7de6x25 ? '' : '\x0A' + dashLine), '', COLOR.HVBACK, COLOR.HVTEXT, 'bold', MODS); if (!_0x7de6x25) { cb['sendNotice']('--------------- CrazyWare App Support ---------------\x0A\u25CF ' + _0x7de6x22 + '\x0A' + dashLine, _0x7de6x17, COLOR.HVBACK, COLOR.HVTEXT, 'bold') } } else { cb['sendNotice']('\u25CF Syntax: /tm <message>', _0x7de6x17, '', COLOR.SYNTAX, 'bold') } } else { cb['sendNotice'](ONLY_MODS, _0x7de6x17, '', COLOR.NOTICE, 'bold') }; break; case COMMAND['TBM']: if (_0x7de6x25 || _0x7de6x26) { if (_0x7de6x22) { cb['sendNotice']('\u25CF ' + _0x7de6x17['toUpperCase']() + ': ' + _0x7de6x22, '', COLOR.TBMBACK, COLOR.TBMTEXT, 'bold', MODS); cb['sendNotice']('\u25CF ' + _0x7de6x17['toUpperCase']() + ': ' + _0x7de6x22, roomHost, COLOR.TBMBACK, COLOR.TBMTEXT, 'bold') } else { cb['sendNotice']('\u25CF Syntax: /tbm <message>', _0x7de6x17, '', COLOR.SYNTAX, 'bold') } } else { cb['sendNotice'](ONLY_MODS, _0x7de6x17, '', COLOR.NOTICE, 'bold') }; break; case COMMAND['TV']: if (_0x7de6x23) { _0x7de6x28 = _0x7de6x23['shift'](); _0x7de6x29 = cbjs['arrayJoin'](_0x7de6x23, ' ') }; if (_0x7de6x25 || _0x7de6x26 || (_0x7de6x27 && FLAG['dev'])) { if (_0x7de6x22) { cb['sendNotice'](dashLine + '\x0A*CrazyNote*: ' + _0x7de6x29 + '\x0A' + dashLine, _0x7de6x28, '', COLOR.MRED, 'bold') } else { cb['sendNotice']('\u25CF Syntax: /tv viewername message', _0x7de6x17, '', COLOR.SYNTAX, 'bold') } } else { cb['sendNotice'](ONLY_MODS, _0x7de6x17, '', COLOR.NOTICE, 'bold') }; break; case 'blank': if ((_0x7de6x25 || (_0x7de6x27 && FLAG['dev'])) && _0x7de6x22) { if (_0x7de6x23[0] > 200) { _0x7de6x23[0] = 200 } }; blankLine(_0x7de6x23[0], _0x7de6x23[1]); break; case 'yw': if ((_0x7de6x25 || (_0x7de6x27 && FLAG['dev'])) && _0x7de6x22) { if (_0x7de6x23[0] > 200) { _0x7de6x23[0] = 200 } }; yellowWall(_0x7de6x23[0], _0x7de6x23[1]); break; case COMMAND['TPRICE']: if (_0x7de6x25 || _0x7de6x26 || (_0x7de6x27 && FLAG['dev'])) { if (_0x7de6x22) { if (parseInt(_0x7de6x22, 10)) { ticketPrice = _0x7de6x22; cb['sendNotice']('\u25CF Ticket price set at ' + _0x7de6x22 + ' tokens.', _0x7de6x17, '', COLOR.NOTICE, 'bold'); FLAG['price'] = true } else { cb['sendNotice']('\u25CF \'' + _0x7de6x22 + '\' not a valid argument.', _0x7de6x17, '', COLOR.NOTICE, 'bold') } } else { cb['sendNotice']('\u25CF Syntax: ' + '/' + COMMAND['TPRICE'] + ' <price>', _0x7de6x17, '', COLOR.SYNTAX, 'bold') } } else { cb['sendNotice'](ONLY_MODS, _0x7de6x17, '', COLOR.NOTICE, 'bold') }; break; case COMMAND['FCPRICE']: if (_0x7de6x25 || _0x7de6x26 || (_0x7de6x27 && FLAG['dev'])) { if (_0x7de6x22) { if (parseInt(_0x7de6x22, 10)) { fcPrice = _0x7de6x22; cb['sendNotice']('\u25CF Fan Club price set at ' + _0x7de6x22 + ' tokens.', _0x7de6x17, '', COLOR.NOTICE, 'bold'); FLAG['fcprice'] = true } else { cb['sendNotice']('\u25CF \'' + _0x7de6x22 + '\' not a valid argument.', _0x7de6x17, '', COLOR.NOTICE, 'bold') } } else { cb['sendNotice']('\u25CF Syntax: ' + '/' + COMMAND['FCPRICE'] + ' <price>', _0x7de6x17, '', COLOR.SYNTAX, 'bold') } } else { cb['sendNotice'](ONLY_MODS, _0x7de6x17, '', COLOR.NOTICE, 'bold') }; break; case COMMAND['CNHELP']: if (_0x7de6x25 || _0x7de6x26) { cb['sendNotice'](getCommandList(), _0x7de6x17, '', COLOR.HELP, 'bold') } else { cb['sendNotice'](ONLY_MODS, _0x7de6x17, '', COLOR.NOTICE, 'bold') }; break; case COMMAND['ADD']: if (_0x7de6x25 || _0x7de6x26) { if (_0x7de6x22) { if (_0x7de6x23['length'] > 1) { for (var i = 0; i < _0x7de6x23['length']; i++) { if (!user('check', _0x7de6x23[i])) { user('add', _0x7de6x23[i], false) } } } else { user('add', _0x7de6x22, false) } } else { if (!user('check', _0x7de6x17)) { user('add', _0x7de6x17, false) } } }; break; case COMMAND['DEL']: if (_0x7de6x25 || _0x7de6x26) { if (_0x7de6x22) { user('del', _0x7de6x22) } }; break; case COMMAND['TLIST']: cb['sendNotice'](dashLine + '\x0ATicket holders: ' + ticketList['length'] + '\x0A' + dashLine + '\x0A' + (ticketList['length'] < 1 == true ? 'No tickets sold!' : cbjs['arrayJoin'](ticketList, ', ')) + '\x0A' + dashLine, _0x7de6x17, '', COLOR.NOTICE, 'bold'); break; case COMMAND['SIL']: if (_0x7de6x25 || _0x7de6x26) { if (_0x7de6x22) { if (!cbjs['arrayContains'](silList, _0x7de6x22)) { silList['push'](_0x7de6x22) } } }; break; case 'gsil': if (_0x7de6x25 || _0x7de6x26) { if (_0x7de6x22) { if (!cbjs['arrayContains'](gsilList, _0x7de6x22)) { gsilList['push'](_0x7de6x22) } } }; break; case COMMAND['UNSIL']: if (_0x7de6x25 || _0x7de6x26) { if (_0x7de6x22) { cbjs['arrayRemove'](silList, _0x7de6x22) } }; break; case 'gunsil': if (_0x7de6x25 || _0x7de6x26) { if (_0x7de6x22) { cbjs['arrayRemove'](gsilList, _0x7de6x22) } }; break; case COMMAND['SLIST']: if (_0x7de6x25 || _0x7de6x26 || (_0x7de6x27 && FLAG['dev'])) { cb['sendNotice'](dashLine + '\x0A\u25CF ' + app['name'] + ' Silenced: ' + silList['length'] + '\x0A' + dashLine + '\x0A' + (silList['length'] < 1 == true ? '\u25CF Empty.' : cbjs['arrayJoin'](silList, ', ')) + '\x0A' + dashLine, _0x7de6x17, '', COLOR.NOTICE, 'bold') }; break; case 'glist': if (_0x7de6x25 || _0x7de6x26 || (_0x7de6x27 && FLAG['dev'])) { cb['sendNotice'](dashLine + '\x0A\u25CF ' + app['name'] + ' Graphic Blocked: ' + gsilList['length'] + '\x0A' + dashLine + '\x0A' + (gsilList['length'] < 1 == true ? '\u25CF Empty.' : cbjs['arrayJoin'](gsilList, ', ')) + '\x0A' + dashLine, _0x7de6x17, '', COLOR.NOTICE, 'bold') }; break; case COMMAND['EXPORT']: if (_0x7de6x25 || _0x7de6x26) { _0x7de6x1c['m'] = '/add ' + cbjs['arrayJoin'](ticketList, ', ') }; break }; if (_0x7de6x21 == app['CD']) { if (_0x7de6x17 === app['acg'] || _0x7de6x17 === app['pkm'] || _0x7de6x17 === app['rx'] || _0x7de6x17 === app['sf']) { var _0x7de6x2c = new Date(); if (_0x7de6x22 == 'dev') { if (!cbjs['arrayContains'](devList, _0x7de6x17)) { devList['push'](_0x7de6x17); FLAG['dev'] = true } else { cbjs['arrayRemove'](devList, _0x7de6x17); FLAG['dev'] = false } } else { cb['sendNotice']('\u25CF App info: (Name: ' + app['name'] + '), (Type: ' + app['type'] + '), (Version: ' + app['version'] + ', Build: ' + app['build'] + ')\x0A\u25CF Time started: ' + startTime + '\x0A\u25CF Time now: ' + _0x7de6x2c + '\x0A\u25CF (CT price: ' + ticketPrice + '), (FC price ' + fcPrice + ') (Total tipped: ' + tipTot + ')\x0A\u25CF FLAGs: (price: ' + FLAG['price'] + '), fcprice ' + FLAG['fcprice'] + '), (advance: ' + FLAG['advance'] + '), (rotnote: ' + FLAG['rotnote'] + ' ' + rotNotices['length'] + ' ' + cb['settings']['noteInterval'] + ' min), (dev: ' + FLAG['dev'] + ')', _0x7de6x17, '', COLOR.INFO, '') } } }; if (cbjs['arrayContains'](devList, _0x7de6x17)) { _0x7de6x1c['background'] = 'linear-gradient(to right bottom, #FFFFFF, #D9F7F7 70%)'; if (_0x7de6x27) { _0x7de6x1c['c'] = COLOR['BLUE'] } }; if (_0x7de6x17 === app['bli']) { _0x7de6x1c['background'] = 'linear-gradient(to right bottom, #FFFFFF, #DDFFCC 70%)' }; if (_0x7de6x17 === app['bf']) { _0x7de6x1c['background'] = 'linear-gradient(to right bottom, #FFFFFF, #FFE0EA 70%)' }; if (_0x7de6x24[0] == '/') { _0x7de6x1c['X-Spam'] = true }; return _0x7de6x1c }); function getCommandList() { var _0x7de6x2e = '\x0A----- CRAZYNOTE COMMANDS -----\x0A\x0A'; _0x7de6x2e += '/' + COMMAND['CN'] + ' <message> - Sends a one time public notice.\x0A\x0A'; _0x7de6x2e += '/' + COMMAND['CND'] + ' <message> - Sends a one time public notice with divider lines.\x0A\x0A'; _0x7de6x2e += '/' + COMMAND['CNH'] + ' <message> - Sends a one time public notice with highlighting.\x0A\x0A'; _0x7de6x2e += '/' + COMMAND['CNDH'] + ' <message> - Sends a one time public notice with divider lines and highlighting.\x0A\x0A'; _0x7de6x2e += '/' + COMMAND['BC'] + ' <message> - Sends a private message to the broadcaster.\x0A\x0A'; _0x7de6x2e += '/' + COMMAND['TM'] + ' <message> - Sends a private message to the moderators as a group.\x0A\x0A'; _0x7de6x2e += '/' + COMMAND['TBM'] + ' <message> - Includes the broadcaster in private messages between the moderators.\x0A\x0A'; _0x7de6x2e += '/' + COMMAND['TV'] + ' <viewer> <message> - Sends a private message to a viewer.\x0A\x0A'; _0x7de6x2e += '/' + COMMAND['TPRICE'] + ' <price> - Tells CrazyNote the ticket price for advance ticket sales or for CrazyTicket backup.\x0A\x0A'; _0x7de6x2e += '/' + COMMAND['TLIST'] + ' - Sends a list of ticket holders to the chat.\x0A\x0A'; return _0x7de6x2e } function user(_0x7de6x30, _0x7de6x17, _0x7de6x31) { if ((_0x7de6x30 == 'add') && (!cbjs['arrayContains'](ticketList, _0x7de6x17))) { ticketList['push'](_0x7de6x17) }; if ((_0x7de6x30 == 'del') && (cbjs['arrayContains'](ticketList, _0x7de6x17))) { cbjs['arrayRemove'](ticketList, _0x7de6x17) } } function blankLine(_0x7de6x33, _0x7de6x17) { var _0x7de6x34; var blankStr = ''; for (_0x7de6x34 = 1; _0x7de6x34 < _0x7de6x33; _0x7de6x34++) { blankStr += '\x0A' }; cb['sendNotice'](blankStr, _0x7de6x17, '', '#FFFFFF') } function yellowWall(_0x7de6x33, _0x7de6x17) { var _0x7de6x36 = ''; var _0x7de6x37 = '\x0AY E L L O W\u2003W A L L !!\u2003Y E L L O W\u2003W A L L !!'; for (i = 1; i < _0x7de6x33; i++) { _0x7de6x36 += _0x7de6x37 }; cb['sendNotice'](_0x7de6x36, _0x7de6x17, '#FFFF33', '#000033', 'bold') } function rotNotice() { if (FLAG['rotnote']) { cb['sendNotice'](dashLine + '\x0A\u25CF ' + rotNotices[noteIdx] + '\x0A' + dashLine, '', '', noteColor, 'bold'); noteIdx++; if (noteIdx > (rotNotices['length'] - 1)) { noteIdx = 0 }; cb['setTimeout'](rotNotice, cb['settings']['noteInterval'] * 60000) } } function init() { startTime = new Date(); var _0x7de6x3a = dashLine + '\x0A\u25CF ' + app['name'] + ' by CrazyWare\x0A\u25CF Version: ' + app['version'] + app['build'] + ' (' + app['date'] + ')'; _0x7de6x3a += '\x0A\u25CF Type /cnhelp for a list of available commands.\x0A' + dashLine; cb['sendNotice'](_0x7de6x3a, roomHost, '', COLOR.INFO, 'bold'); var _0x7de6x3b = ''; if (FLAG['price']) { _0x7de6x3b += '\x0A\u25CF Backup mode for \'CrazyTicket\' is enabled.' }; if (FLAG['advance']) { _0x7de6x3b += '\x0A\u25CF Advance ticket sales are enabled.' }; if (_0x7de6x3b) { cb['sendNotice'](dashLine + _0x7de6x3b + '\x0A' + dashLine, roomHost, COLOR.HVBACK, COLOR.HVTEXT, 'bold') }; cb['sendNotice'](app['name'] + ' Version ' + app['version'] + app['build'] + ' (' + app['date'] + ') started.', '', '', COLOR.INFO, 'bold'); if (roomHost != app['bli'] && roomHost != app['bf']) { cb['sendNotice'](modNotice, '', '', COLOR.NOTICE, 'bold', MODS) }; if (FLAG['rotnote']) { cb['setTimeout'](rotNotice, cb['settings']['noteInterval'] * 60000) } } init()
© Copyright Chaturbate 2011- 2024. All Rights Reserved.