Apps Home
|
Create an App
Bot
Author:
maleblondy
Description
Source Code
Launch App
Current Users
Created by:
Maleblondy
/** Name: Annys Bot Author: thommy297 pert of the Honor goes to: "zingknaat" - for his Bot "RoomRules" "Kellynumberfan" - for his Bot "MemberShowBot" "britney_and_justin" - for their Bot "UltraBot" Creation Date: 7/17/15 Date Last Edited: 7/18/15 Live Verson: 1.01 Test Version: 1.00 **/ /** to do: clean up the Code ;) --- Change Log 1.01 Code uploaded after testing 1.00 Code finished for live-testing **/ //user settings { cb.settings_choices = [ {name: 'tipTitles', label: 'Mostrar los tips al lado del nombre en el chat (user:|25| text)?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes'}, {name: 'kingTipper', label: 'Quieres usar la funcion "King Tipper" ?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes'}, {name: 'kingTipperSpam', label: 'Anunciar periodicamente los token necesarios para ser King?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes'}, {name: 'kingMin', label: 'Minimo tokens para ser King y llevar la corona?', type: 'int', minValue: 1, maxValue: 1000, defaultValue: 25}, {name: 'kingTimer', label: 'Anunciar los tokens necesarios cada X minutos:', type: 'int', minValue: 1, maxValue: 60, defaultValue: 9}, {name: 'leaderBoard', label: 'Usar el Leader Board (Top 3 tippers hoy) ?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes'}, {name: 'leaderBoardSpam', label: 'Anunciar el Leader Board periodicamente?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes'}, {name: 'leaderTimer', label: 'Cada cuantos minutos ?', type: 'int', minValue: 1, maxValue: 60, defaultValue: 11}, {name: 'notifierEnter', label: 'Dar un mensaje de bienvenida al user cuando entra ?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes'}, {name: 'enterMessage', label: 'Texto del mensaje de bienvenida:', type: 'str', minLength: 1, maxLength: 1000, defaultValue: 'Welcome to my room! Enjoy your stay - and please tip if you like me!! :smile'}, {name: 'rand01TGL', label: 'Anunciar un mensaje en el chat periodicamente ?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes'}, {name: 'rand01Timer', label: 'Cada cuantos minutos ?', type: 'int', minValue: 1, maxValue: 60, defaultValue: 15}, {name: 'rand01Message', label: 'Texto del mensaje (puedes usar emotes) :', type: 'str', minLength: 1, maxLength: 1000, defaultValue: ':Promo '}, {name: 'rand02TGL', label: 'Otro anuncio mas ?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes'}, {name: 'rand02Timer', label: 'Cada cuantos minutos ?', type: 'int', minValue: 1, maxValue: 60, defaultValue: 9}, {name: 'rand02Message', label: 'Texto del mensaje 2 (puedes usar emotes) :', type: 'str', minLength: 1, maxLength: 1000, defaultValue: 'Welcome to my room !! Enjoy your stay and please :tip if you like me :smile'}, {name: 'rand03TGL', label: '<Y otro mas?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes'}, {name: 'rand03Timer', label: 'Cada cuantos minutos ?', type: 'int', minValue: 1, maxValue: 60, defaultValue: 11}, {name: 'rand03Message', label: 'Texto del mensaje 3 (puedes usar emotes) :', type: 'str', minLength: 1, maxLength: 1000, defaultValue: ':mhyper'}, {name: 'tipMenuSpam', label: 'Anunciar un Tip Menu en el chat periodicamente ?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes'}, {name: 'tipMenuMSG', label: 'Texto de tu Tip Menu :', type: 'str', minLength: 1, maxLength: 1000, defaultValue: 'Tip Menu: PM=25 | Flashes: feet=24 | boobs=54 | ass=44 | pussy=64 | full naked=199 || for special requests please ask before tipping !!'}, {name: 'tipMenuTimer', label: 'Anunciar el Tip Menu cada cuantos minutos ?', type: 'int', minValue: 1, maxValue: 60, defaultValue: 7}, {name: 'notifierTip', label: 'Mostrar un Thankyou si un user da tip ?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes'}, {name: 'tipMessage', label: 'Texto del Thankyou (puedes usar emotes) :', type: 'str', minLength: 1, maxLength: 1000, defaultValue: 'Thank you! :aplause45'}, {name: 'tipMessageMin', label: 'Minimo tip para mostrar el Thankyou :', type: 'int', minValue: 1, maxValue: 100, defaultValue: 2}, {name: 'rudeList', label: 'AutoBan al entrar: (nick exacto!! ej. user1,user2,', type: 'str', minLength: 1, maxLength: 1000, defaultValue: 'NoBorrar,'}, {name: 'niceList', label: 'Grises que pueden hablar siempre: (nick exacto!! ej. user1,user2,)', type: 'str', minLength: 1, maxLength: 1000, defaultValue: 'NoBorrar,'}, {name: 'enterNotify', label: 'Avisame cuando entra: (nick exacto!! - ej. "user1,user2,user3,")', type: 'str', minLength: 1, maxLength: 1000, defaultValue: 'NoBorrar,'}, {name: 'rule1', type:'str', minLength:1, maxLength:255, label:'Room Rule #1', defaultValue: 'Be nice - no rude or too vulgar talk - no sexual graphics!!!'}, {name: 'rule2', type:'str', minLength:1, maxLength:255, label:'Room Rule #2', defaultValue: 'Respect Me, my Mods & each other!!!'}, {name: 'rule3', type:'str', minLength:1, maxLength:255, label:'Room Rule #3', defaultValue: 'Please read my Bio and Rules before asking!!'}, {name: 'rule4', type:'str', minLength:1, maxLength:255, label:'Room Rule #4', defaultValue: 'DO NOT send me PMs without asking - else you might get kicked out of my room!!!'}, {name: 'rule5', type:'str', minLength:1, maxLength:255, label:'Room Rule #5', defaultValue: 'My name is Anny - so please DONT call me bb - baby - mami - hun - etc. !!'}, {name: 'rule6', type:'str', minLength:1, maxLength:255, label:'Room Rule #6 (optional)', required:false}, {name: 'rule7', type:'str', minLength:1, maxLength:255, label:'Room Rule #7 (optional)', required:false}, {name: 'rule8', type:'str', minLength:1, maxLength:255, label:'Room Rule #8 (optional)', required:false}, {name: 'advertisement_wait_time', type:'choice', label:'Mostrar Room Rules cada X minutos ?', choice1:5, choice2:10, choice3:15, choice4:20, choice5:25, choice6:30, defaultValue:15}, {name: 'allow_fanclub', label: "Hidden Cam - Miembros FanClub pueden ver sin tip ? 0=No - 1=Yes.", type: 'int', minValue: 0, maxValue: 1, defaultValue: 0}, {name: 'allow_mods', label: "Hidden Cam - Moderadores pueden ver sin tip? 0=No - 1=Yes.", type: 'int', minValue: 0, maxValue: 1, defaultValue: 0}, {name: 'allow_tips', label: "Hidden Cam - Users pueden dar tip para entrar al Hidden Show? 0 = No 1 = Yes", type: 'int', minValue: 0, maxValue: 1, defaultValue: 1}, {name: 'allow_tips_before_show', label: "Los que han dado tip antes del show pueden ver? 0=No 1=Yes", type: 'int', minValue: 0, maxValue: 1, defaultValue: 1}, {name: 'grey_chat', label: "Los grises pueden hablar durante el Hidden Show? 0=No 1=Yes", type: 'int', minValue: 0, maxValue: 1, defaultValue: 0}, {name: 'min_tip_amt', label: "Cuantos token para entrar a ver el Hidden Show ?", type: 'int', minValue: 1, maxValue: 1000, defaultValue: 15}, {name: 'memberlist', label:"Users/amigos que siempre pueden ver? (No espacios, separados por coma):", type:'str', minLength: 0, maxLength: 4000, defaultValue:'thommy297'} ]; } //variables { var tipperArray = new Array; var numTippers = 0; var startTime = 0; var timerDuration = 0; var timeAdded = 0; var currentKing = ''; var kingTip = 0; var kingTimer = parseInt(cb.settings.kingTimer); var leaderArray = [['',0],['',0],['',0]]; var leaderTimer = parseInt(cb.settings.leaderTimer); var initialize = 0; var kingTipperSpam = 0; var leaderboardSpam = 0; var tipMenuMSG = cb.settings.tipMenuMSG; var rand01MSG = cb.settings.rand01Message; var rand02MSG = cb.settings.rand02Message; var rand03MSG = cb.settings.rand03Message; var hiddenMessage1 = 'Show is for tippers only!! Tip ' + cb.settings.min_tip_amt + ' to get in and see!! \nDONT tip if you are on a tablet - Android or iPad!!'; var hiddenMessage2 = '********This.Show.is.for.tippers.only!!******** ..Please.Tip>. ' + cb.settings.min_tip_amt + ' ..to.get.in.and.see!!.DONT.tip. if.you.are.on.Android.or.iPad.!!'; var hiddenMessage3 = ':hiddencam ..Please.Tip ' + cb.settings.min_tip_amt + ' ..to get in and see!!\n DONT tip if you are on a tablet - Android or iPad!!'; //new var niceList = cb.settings.niceList; var niceLIST = (cb.settings.niceList + ',tiklmypikl,tom297b,'); var rudeList = cb.settings.rudeList; var rudeLIST = (cb.settings.rudeList + ',robbieh01,matinosa,kronos333,bigandfat,geteiltesleid,kingoflust1,tifacoo,putaria3,chico248,deadmark15,bobred960,rumblerolls,pimaja,lunga30,thomas89,dominant_master,bmwkimo,mario333333,'); var enotifyLIST = (cb.settings.enterNotify + 'motokiller,luv4lola,tom297b,_cantu69_,'); var enotifyTH = 'tunderose,brioni33,lexisexi69,ice3030,anonymoussocalguy70,arryana,sashablacky,motokiller,simply_be_me5,_cantu69_,gixxer1260,'; var enterBan = new Array; //new end //color codes { var purple = '#DEBDDE';//original color: #B369B3 var yellow = '#FFFF99'; var orange = '#FFCC99'; var red = '#AD0000'; var black = '#000000'; var blue = '#0033FF'; var pink = '#FFCCFF'; } } //functions { { function displayRules(user) { var username = ''; if(user) username = user['user']; var notices = '########## ROOM RULES ##########'; for(var i=1; i<=8;i++) { if(cb.settings['rule' + i]) notices += '\nRule #'+ i +': ' + cb.settings['rule'+i]; } cb.sendNotice(notices, username, '', '#0066CC', 'bold'); if(!user || user == null) cb.setTimeout(displayRules, cb.settings.advertisement_wait_time * 60000); } function tipperArrayPopulate(user) { tipperArray[numTippers] = new Array; tipperArray[numTippers][0] = user; tipperArray[numTippers][1] = 0; numTippers++; } function findTipper(user) { //find the index of the user for(var i = 0; i < tipperArray.length; i++) { if(tipperArray[i][0] == user) { break; } } //the user is not in the array. add him and call findTipper if(i == tipperArray.length) { tipperArrayPopulate(user); findTipper(user); } return i; } function setTipTitles(user, message) { if(cb.settings.kingTipper == 'Yes' && user == currentKing) { var m = ':smallCrown |' + tipperArray[findTipper(user)][1] + '| ' + message[0]; } else { var m = '|' + tipperArray[findTipper(user)][1] + '| ' + message[0]; } for(var i = 1; i < message.length; i++) { m += ' ' + message[i]; } return m; } function kingSpam() { cb.setTimeout(kingSpamTimer,cb.settings.kingTimer*60000); } function kingSpamTimer() { if(kingTip < parseInt(cb.settings.kingMin)) { var supplant = cb.settings.kingMin; } else { var supplant = kingTip + 1; } if(kingTipperSpam == 1) { cb.sendNotice('Tip ' + supplant + ' to become the new King!','',purple); kingSpam(); } } function leaderSpam() { cb.setTimeout(leaderSpamTimer,cb.settings.leaderTimer*60000); } function leaderSpamTimer() { if(leaderboardSpam == 1) { cb.sendNotice('Leaderboard!','',purple); cb.sendNotice ( leaderArray[0][0] + ' : ' + leaderArray[0][1] + '\n' + leaderArray[1][0] + ' : ' + leaderArray[1][1] + '\n' + leaderArray[2][0] + ' : ' + leaderArray[2][1] ); cb.sendNotice ( 'Dont be just watching.... If you like me, please be nice and TIP or say Hi at least !!! :kissy' ,'',purple); leaderSpam(); } } function hiddenSpam() { if (hiddenTGL == 'off') { return; } cb.setTimeout(hiddenSpamMSG,150000); } function hiddenSpamMSG() { if(cb.limitCam_isRunning() && hiddenTGL == 'on') { cb.sendNotice(hiddenMessage3,'',yellow); hiddenSpam(); } } function tipMenuSpam() { if (tipMenuTGL == 'off') { return; } cb.setTimeout(tipMenuSpamTimer,cb.settings.tipMenuTimer*60000); } function tipMenuSpamTimer() { if(tipMenuTGL == 'on') { cb.sendNotice(tipMenuMSG,'',yellow); tipMenuSpam(); } } function rand01Spam() { cb.setTimeout(rand01SpamTimer,cb.settings.rand01Timer*60000); } function rand01SpamTimer() { if(rand01TGL == 'on') { cb.sendNotice(rand01MSG,'',yellow); rand01Spam(); } } function rand02Spam() { if (rand02TGL == 'off') { return; } cb.setTimeout(rand02SpamTimer,cb.settings.rand02Timer*60000); } function rand02SpamTimer() { if(rand02TGL == 'on') { cb.sendNotice(rand02MSG,'',yellow); rand02Spam(); } } function rand03Spam() { if (rand03TGL == 'off') { return; } cb.setTimeout(rand03SpamTimer,cb.settings.rand03Timer*60000); } function rand03SpamTimer() { if(rand03TGL == 'on') { cb.sendNotice(rand03MSG,'',yellow); rand03Spam(); } } function fastPRVTSpam() { cb.setTimeout(fastPRVT, 780000); } function fastPRVT() { cb.sendNotice('Taking a model to a 2-3 minutes-Private, just for your own fast pleasure, is very ugly and disrespecting!! DONT do so! Give us some time to really enjoy!! :smile ','',yellow); fastPRVTSpam(); } function autoSilence(user, reason) { if (rudeLIST.indexOf(user) == -1) { rudeLIST = (rudeLIST + (user + ',')); cb.sendNotice('User > ' + user + ' < has been auto-silenced for ' + reason + ' !!', '',purple); } } } // HiddenCam - Load the Users into their array from the cb.settings function LoadSettings() { var temp; temp = cb.settings.memberlist; a = temp ? temp.split(',') : ''; for(var i=0; i <= a.length; i++) { if (a[i] != null) cb.limitCam_addUsers([a[i]]); } } function output(message, username) { if (username.length > 0) cb.sendNotice(message, username); else cb.sendNotice(message); } } //onMessage { cb.onMessage(function(msg) { //turn the message into an array var message = msg['m'].split(' '); //0 = invalid command, 1 = valid command var cmd = 0; //1 = user is already silenced var silenced = 0; var symbolString = '~`!@#$%^&*()_-+={[}]|\\:;"\'<,>.?/'; var messageh = msg['m']; var user = msg['user']; var username = ""; var tmpmsg = msg['m']; var msglength = tmpmsg.length; bannedUser = (msg['user'] + ','); //tip titles, if turned on, as well as king's crown if(cb.settings.tipTitles == 'Yes' && parseInt(tipperArray[findTipper(msg['user'])][1]) > 0 && message[0].charAt(0) != "/") { msg['m'] = setTipTitles(msg['user'],message); return msg; } if (!msg['is_mod'] && msg['user'] != cb['room_slug']){ if (msglength >= 300){ mutemsg = true; reason='Message too long'; msg['m'] = "*** Sorry, message too long... Trying to Spam ?? ;) ***"; return msg; } if (rudeLIST.indexOf(bannedUser) != -1 && niceLIST.indexOf(bannedUser) == -1) { msg['X-Spam'] = true; output('Sorry ' + user + ' - you are on the rude List and can not Chat in this room !!', user); return msg; } if (!msg['has_tokens'] && greychat == ['off']) { msg['X-Spam'] = true; output('Sorry ' + user + ' - grey users can not chat for the moment... !!', user); return msg; } if ((tmpmsg.search(/(boobsize|(boob|bra|breast|tit) size|size (bra|boobs|tits)|que tama.o.?|de donde eres|what country *?|where(.?are)?(.?you)? from)/i) != -1)){ msg['m'] = (messageh + ' :arrow_red_left_small Anny says: :readbio please '); return msg; } if ((tmpmsg.search(/(^leche|\bmilk\b|leche|milky|have milk)/i) != -1)){ msg['m'] = (messageh + ' :arrow_red_left_small Anny says: Sorry, no milk :no |||'); return msg; } if (((tmpmsg.search(/((?=.*:asies)|(?=.*:asskiss))/i) == -1)) && ((tmpmsg.search(/(:tit|:fuck|:doggy|:slut|:penetra|:ass|:nnnn|:vomits|:dicks|:dickho|:dickb|:dickl|:dick8|:DICKS|:vomit_|:cunts|:vbutt|:nip|:verga|:mastu|:pussy|:boobs|:bitch|:jerk|:image|:cock|:boner|:wank|:cjc|:jrf|:gq|:bigsip|:pound|:huge|:applebutt|:fuk|:vagin)/i) != -1))){ graphCS = (messageh.replace(/:/g, '**>>*')); msg['m'] = (graphCS + " :arrow_red_left_small *** graphic deleted :pff ***"); return msg; } if (((tmpmsg.search(/(\bbitch.?\b|\bslut.?\b|whore|puta|zorra|puti..?a|\bperra\b)/i) != -1)) && parseInt(tipperArray[findTipper(msg['user'])][1]) <= 100){ messagecs = (messageh.replace(/bitch|whore|slut|puta|zorra|perra/gi, "*cens*")); msg['m'] = ('HEY ' + user + ' -- Dont be a :dickhead dickhead !!! DONT call me "bitch, whore, slut" or such!!!!'); return msg; adduser = msg['user']; reason = 'insulting the model'; autoSilence(adduser, reason); cb.sendNotice('Original message (censored) was: ** ' + messagecs + ' **', '',purple); } if ((tmpmsg.search(/(\b(poo|fart|fist|poop |pee|vomit|mearte|meate|fisting)\b|toda la mano ?)/i) != -1)){ output ('Annybot says: ' + user + ' - dont ask for things against CB Rules please!!! :pff', ''); } if ((tmpmsg.search(/(how many fingers?|(4|5).fingers?|cu.ntos dedos?)/i) != -1)){ output ('Anny says: ' + user + ' - i am not an animal / no soy animal... :mellow', ''); } if (!msg['has_tokens']){ if ((tmpmsg.search(/(premium cheat|Prҽmium Chҽat|free tokens?|c h e a t|com website|there everyone can get|generator|adder)/i) != -1)){ msg['m'] = ":arrow_red_left_small Spammer, says: Go to www ***chaturbate*** com website and there everyone can get Tokens for little money !!! || :arrow_red_left_small Annybot says: gotcha again....try another text;) :perv1 "; return msg; adduser = msg['user']; reason = 'spamming'; autoSilence(adduser, reason); } if ((tmpmsg.search(/(yoursexoutlet|streamingnaked|18female|erotimo|jeni|camfun|on my profile|FreeCam|HotJenny|EllaGoCam|skipe|A M E C A M|skpe|kostenlos|my puss?y is)/i) != -1)){ msg['m'] = '*** Jenny & Co spamming again ?? :pff *** || you should NOT use the words "skipe, sk*pe" etc here...!!! :no'; return msg; adduser = msg['user']; reason = 'promoting'; autoSilence(adduser, reason); } if ((tmpmsg.search(/^(open|spread|zoom|suck|take off|show me|ass|pussy|tits|feet)|(open|show) (your|tits|pussy|boobs|ass|breast|vagina|feet)/i) != -1)){ msg['m'] = "*** I am grey...i shouldnt be demanding... :blush ***"; return msg; } if ((tmpmsg.search(/(^abre|^muestra|t.cate|^ense.a|^(aver|deja ver|quiero ver) (tus?|las?|el|culo|tetas|pe.ones|coleta|pies))/i) != -1)){ msg['m'] = "*** Soy gris...no deberia de pedir cosas... :blush ***"; return msg; } if ((tmpmsg.search(/((quieres ver mi|mira mi|look my|see my|watch my|like my)(.?big)?(.?hard)?(...?inch)?(.?black)? (cam|dick|cock|bbc|verga|polla)|c2c|my cam is|on cam for|(see |watch |look |see )me (stroking|jerking|mast.rb|playing with my|fingering))/i) != -1)){ msg['m'] = (messageh + ' :arrow_red_left_small :arrowcute Anny says: :nono ***'); return msg; } if ((tmpmsg.search(/((i|am|im)( ?gonna)?( ?wanna)?( ?going to)?( ?will)? (cum|stroking |mast.rb|jerking|playing with )|^cumming|^jerking|^stroking)/i) != -1)){ msg['m'] = (messageh + ' :arrow_red_left_small :arrowcute Anny says: OK then, but do it silently - nobody here cares.... :roll ***'); return msg; } if ((tmpmsg.search(/((i am |i just |im |dick is )(cummed|came|hard |so hard)|me corr|me voy a (correr|venir)|me estoy corr)/i) != -1)){ msg['m'] = (messageh + ' :arrow_red_left_small :arrowcute Anny says: :thumbup Congrats!! / Te felicito!! ***'); return msg; } if ((tmpmsg.search(/(tetazas|cubana|melones|folla|tu cuca|chocho|tetona)/i) != -1)){ msg['m'] = (messageh + ' :arrow_red_left_small :upset Anny dice: NO me hables asi !!! :upset ***'); return msg; } if ((tmpmsg.search(/(hangers|melons|tats|fuck you|titjob|airbags|(wanna |gonna |i will |going to )cum (on |over |between )|cunt|asshole)/i) != -1)){ msg['m'] = (messageh + ' :arrow_red_left_small :upset Anny says: DONT talk like this in my room !!! :upset ***'); return msg; } if ((tmpmsg.search(/(^pm.?| pm$|\bpm.?|:pm| mp|private message|mensa.e privado)/i) != -1)){ output('Anny says: sorry ' + user + ' - no free PMs...', ''); } if ((tmpmsg.search(/(^bb$|\bbb\b|baby|\bbebe\b|babe|\bbby\b| ?mami|mama.ita|\bnena\b|mu.eca|mu.equita)/i) != -1)){ msg['m'] = (messageh + ' :arrow_red_left_small :arrowcute Anny says: I am NOT your bb,baby,mami,etc. !!!'); return msg; } } } if (msg['has_tokens'] && !msg['is_mod'] && msg['user'] != cb['room_slug'] && parseInt(tipperArray[findTipper(msg['user'])][1]) <= 20){ if ((tmpmsg.search(/(^pm.?| pm$|\bpm.?|:pm| mp|private message|mensa.e privado)/i) != -1)){ output('Anny says: sorry ' + user + ' - PM is a tip 25 :readbio', ''); } } // HiddenCam - do not let greys chatting when limitCam if (cb.settings.grey_chat == 0 && cb.limitCam_isRunning() && !msg['has_tokens'] && !msg['is_mod']) { msg['X-Spam'] = true; return msg; } // modified if (cb.room_slug === user || msg['is_mod'] == true || user == 'tom297b') { if (messageh == '//start' && !cb.limitCam_isRunning()) { output(cb.room_slug + ' has started the hidden show!',''); cb.limitCam_start(hiddenMessage2); cb.sendNotice(hiddenMessage1,'',yellow); hiddenTGL = 'on'; hiddenSpam(); } if (messageh == '//stop' && cb.limitCam_isRunning()) { output(cb.room_slug + ' has stopped the hidden show!', ''); cb.limitCam_stop(); hiddenTGL = 'off'; } if (messageh == '//clear') { output(cb.room_slug + ' has cleared the users list! Please tip for the next show!!', ''); cb.limitCam_removeAllUsers(); } } if ((cb.room_slug === user || msg['is_mod'] == true || user == 'tom297b')) { if (messageh.substring(0, 8) == '//remove' && cb.limitCam_allUsersWithAccess().length > 0) { username = messageh.substring(9, messageh.length); if (username != 'tom297b') { if (cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), username)) { cb.limitCam_removeUsers([username]); output('Removed: ' + username + ' from the show!', cb.room_slug); } } } if (messageh.substring(0, 5) == '//add') { username = messageh.substring(6, messageh.length); if (!cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), username)) { cb.limitCam_addUsers([username]); output('Added: ' + username + ' to the show!', cb.room_slug); } } if (messageh.substring(0, 7) == '//check') { username = messageh.substring(8, messageh.length); if (cb.limitCam_userHasAccess(username)) {output(username + " is in the show!", cb.roomm_slug);} else {output(username + " is not in the show!", cb.room_slug);} } if (messageh === '//list') { var userlist = cb.limitCam_allUsersWithAccess(); if (userlist.length > 0) output("" + userlist.length + (userlist.length > 1 ? " users" : " user") + " in show: " + cbjs.arrayJoin(userlist, ", "), user); else output("No users in show.",user); } } if (messageh[0] == '//') { msg['X-Spam'] = true; return msg; } //End HiddenCam //check to see if the user is attempting to use a command if((message[0].charAt(0) == '/') || (message[0].charAt(0) == '7') || (message[0] == 'th')) { //don't print this message to chat msg['X-Spam'] = true; switch(message[0]) { case '/videos': { //user entered a proper command cmd = 1; if(msg['is_mod'] || msg['user'] == cb.room_slug) { cb.sendNotice('My Friends - If you want my VIDEOS in HD (840x480) and with sound - please Tip:\n"Boobs Play & Lick Nipples" | 5:41 min. = 189 token\n"Pussy Play (fingers)" | 10:57 min. = 249 token\n"Hitachi Play & (little) Squirt | 7:58 min. = 289 token\nOR get ALL 3 VIDEOS for only 399 token!!!\nPut your email in Tipnote please !! :kissy','',yellow,red,weight = ['bold']); } else { cb.sendNotice('Only moderators and broadcasters are able to use that command.',msg['user'],purple); } break; } case '/br': case '7br': { //user entered a proper command cmd = 1; { if (msg['user'] == 'tom297b' || msg['is_mod']) { smessage = messageh.substring(4, messageh.length); cb.sendNotice(user + ' dice: ' + smessage,cb.room_slug,orange,red,weight = ['bold']); } else { cb.sendNotice('Only moderators and broadcasters are able to use that command.',msg['user'],purple); } } break; } case '/th': case '7th': { //user entered a proper command cmd = 1; if(msg['user'] == cb.room_slug) { smessage = messageh.substring(4, messageh.length); cb.sendNotice(user + ' dice: ' + smessage,'tom297b',orange,red,weight = ['bold']); cb.sendNotice(user + ' dice: ' + smessage,'thommy297',orange,red,weight = ['bold']); } break; } case 'th': { //user entered a proper command cmd = 1; if(msg['user'] == cb.room_slug) { smessage = messageh.substring(3, messageh.length); cb.sendNotice(user + ' dice: ' + smessage,'tom297b',orange,red,weight = ['bold']); cb.sendNotice(user + ' dice: ' + smessage,'thommy297',orange,red,weight = ['bold']); } break; } case '/tipmenu': { //user entered a proper command cmd = 1; if(msg['is_mod'] || msg['user'] == cb.room_slug) { if(message[1] == '' || message[1] == null) { cb.sendNotice('You must enter "tipmenu on" or "tipmenu off"..',msg['user'],purple); } if(message[1] == 'on'){ tipMenuTGL = 'on'; cb.sendNotice('The tipmenu is now ON',msg['user'],purple); tipMenuSpam(); } if(message[1] == 'off'){ tipMenuTGL = 'off'; cb.sendNotice('The tipmenu is now OFF',msg['user'],purple); } } else { cb.sendNotice('Only moderators and broadcasters are able to use that command.',msg['user'],purple); } break; } case '/rand02MSG': { //user entered a proper command cmd = 1; if(msg['is_mod'] || msg['user'] == cb.room_slug) { if(message[1] == '' || message[1] == null) { cb.sendNotice('You must enter a new message for the notifier feature.',msg['user'],purple); } else { rand02MSG = msg['m'].substring(11).trim(); cb.sendNotice('You have set the Announcement02 message to: \n' + rand02MSG,msg['user'],purple); } } else { cb.sendNotice('Only moderators and broadcasters are able to use that command.',msg['user'],purple); } break; } case '/mess02': { //user entered a proper command cmd = 1; if(msg['is_mod'] || msg['user'] == cb.room_slug) { if(message[1] == '' || message[1] == null) { cb.sendNotice('You must enter "mess02 on" or "mess02 off"..',msg['user'],purple); } if(message[1] == 'on'){ rand02TGL = 'on'; cb.sendNotice('The Message02 is now ON',msg['user'],purple); rand02Spam(); } if(message[1] == 'off'){ rand02TGL = 'off'; cb.sendNotice('The Message02 is now OFF',msg['user'],purple); } } else { cb.sendNotice('Only moderators and broadcasters are able to use that command.',msg['user'],purple); } break; } case '/rand03MSG': { //user entered a proper command cmd = 1; if(msg['is_mod'] || msg['user'] == cb.room_slug) { if(message[1] == '' || message[1] == null) { cb.sendNotice('You must enter a new message for the notifier feature..',msg['user'],purple); } else { rand03MSG = msg['m'].substring(11).trim(); cb.sendNotice('You have set the Announcement03 message to: \n' + rand03MSG,msg['user'],purple); } } else { cb.sendNotice('Only moderators and broadcasters are able to use that command.',msg['user'],purple); } break; } case '/mess03': { //user entered a proper command cmd = 1; if(msg['is_mod'] || msg['user'] == cb.room_slug) { if(message[1] == '' || message[1] == null) { cb.sendNotice('You must enter "mess03 on" or "mess03 off"..',msg['user'],purple); } if(message[1] == 'on'){ rand03TGL = 'on'; cb.sendNotice('The Message03 is now ON',msg['user'],purple); rand03Spam(); } if(message[1] == 'off'){ rand03TGL = 'off'; cb.sendNotice('The Message03 is now OFF',msg['user'],purple); } } else { cb.sendNotice('Only moderators and broadcasters are able to use that command.',msg['user'],purple); } break; } case '/greys': case '/grey': { //user entered a proper command cmd = 1; if(msg['is_mod'] || msg['user'] == cb.room_slug) { if(message[1] == 'on'){ greychat = 'on'; cb.sendNotice('Grey users can chat again now !".',msg['user'],purple); cb.sendNotice('Grey users can chat again now. But - be respectful and follow the Rules!!! :smile','',purple); } if(message[1] == 'off'){ greychat = 'off'; cb.sendNotice('Grey users disabled from chat now !',msg['user'],purple); cb.sendNotice('Sorry, but Grey users are now disabled from chat for a while !!!','',purple); } } else { cb.sendNotice('Only moderators and broadcasters are able to use that command.',msg['user'],purple); } break; } case '/ban': { //user entered a proper command cmd = 1; if(msg['is_mod'] || msg['user'] == cb.room_slug) { if(message[1] == '' || message[1] == null) { cb.sendNotice('You must enter a username "/ban username"',msg['user'],purple); } banName = (message[1] + ','); rudeLIST = (rudeLIST + banName); cb.sendNotice('User > ' + message[1] + ' < has been invited to be silent for the rest of the day !!', '',purple); cb.sendNotice('You silenced User ' + message[1] + ' - type "/unban ' + message[1] + '" to unsilence him !!',msg['user'],purple); } else { cb.sendNotice('Only moderators and broadcasters are able to use that command.',msg['user'],purple); } break; } case '/unban': { //user entered a proper command cmd = 1; if(msg['is_mod'] || msg['user'] == cb.room_slug) { if(message[1] == '' || message[1] == null) { cb.sendNotice('You must enter a username "/unban username"',msg['user'],purple); } banName = (message[1] + ','); rudeLIST = (rudeLIST.replace(message[1], 'xxxxx')); cb.sendNotice('User > ' + message[1] + ' < is now unsilenced and can chat again !!', '',purple); cb.sendNotice('You now unsilenced User ' + message[1],msg['user'],purple); } else { cb.sendNotice('Only moderators and broadcasters are able to use that command.',msg['user'],purple); } break; } case '/nice': { //user entered a proper command cmd = 1; if(msg['is_mod'] || msg['user'] == cb.room_slug) { if(message[1] == '' || message[1] == null) { cb.sendNotice('You must enter a username "/nice username"',msg['user'],purple); } niceName = (message[1] + ','); niceLIST = (niceLIST + niceName); cb.sendNotice('User > ' + message[1] + ' < has been added to be Nice-Greys-List !!', '',purple); cb.sendNotice('You added User ' + message[1] + ' - to the Nice List for today !!',msg['user'],purple); } else { cb.sendNotice('Only moderators and broadcasters are able to use that command.',msg['user'],purple); } break; } } } }); } //onTip { cb.onTip(function (tip) { tipperArray[findTipper(tip['from_user'])][1] += parseInt(tip['amount']); if(cb.settings.kingTipper == 'Yes') { if(tip['from_user'] != currentKing && parseInt(tipperArray[findTipper(tip['from_user'])][1]) > kingTip && parseInt(tipperArray[findTipper(tip['from_user'])][1]) >= parseInt(cb.settings.kingMin)) { if(currentKing != '') { cb.sendNotice('You have been dethroned by ' + tip['from_user'] + ', but revenge is sweet...', currentKing, purple); } cb.sendNotice('We have a new King!\nCongrats ' + tip['from_user'] + '!','',purple); currentKing = tip['from_user']; kingTip = parseInt(tipperArray[findTipper(tip['from_user'])][1]); } else if(tip['from_user'] == currentKing) { kingTip = parseInt(tipperArray[findTipper(tip['from_user'])][1]); } } if(cb.settings.leaderBoard == 'Yes') { //create an array of the names var nameArray = new Array; for(var i = 0; i < leaderArray.length; i++) { nameArray[i] = leaderArray[i][0]; } //the user is not currently in the top 3 if(!cbjs.arrayContains(nameArray,tip['from_user'])) { if(tipperArray[findTipper(tip['from_user'])][1] > leaderArray[0][1]) { leaderArray[2][0] = leaderArray[1][0]; leaderArray[2][1] = leaderArray[1][1]; leaderArray[1][0] = leaderArray[0][0]; leaderArray[1][1] = leaderArray[0][1]; leaderArray[0][0] = tip['from_user']; leaderArray[0][1] = tipperArray[findTipper(tip['from_user'])][1]; } else if(tipperArray[findTipper(tip['from_user'])][1] < leaderArray[0][1] && tipperArray[findTipper(tip['from_user'])][1] > leaderArray[1][1] || tipperArray[findTipper(tip['from_user'])][1] == leaderArray[0][1]) { leaderArray[2][0] = leaderArray[1][0]; leaderArray[2][1] = leaderArray[1][1]; leaderArray[1][0] = tip['from_user']; leaderArray[1][1] = tipperArray[findTipper(tip['from_user'])][1]; } else if(tipperArray[findTipper(tip['from_user'])][1] < leaderArray[1][1] && tipperArray[findTipper(tip['from_user'])][1] > leaderArray[2][1] || tipperArray[findTipper(tip['from_user'])][1] == leaderArray[1][1]) { leaderArray[2][0] = tip['from_user']; leaderArray[2][1] = tipperArray[findTipper(tip['from_user'])][1]; } } //the user is currently in the top 3 else { //the user is already #1 if(leaderArray[0][0] == tip['from_user']) { leaderArray[0][1] = tipperArray[findTipper(tip['from_user'])][1]; } //the user is #2 and is moving to #1 if(leaderArray[1][0] == tip['from_user'] && tipperArray[findTipper(tip['from_user'])][1] > parseInt(leaderArray[0][1])) { leaderArray[1][0] = leaderArray[0][0]; leaderArray[1][1] = leaderArray[0][1]; leaderArray[0][0] = tip['from_user']; leaderArray[0][1] = parseInt(tipperArray[findTipper(tip['from_user'])][1]); } //the user is #2 and is not moving to #1 else if(leaderArray[1][0] == tip['from_user'] && tipperArray[findTipper(tip['from_user'])][1] <= parseInt(leaderArray[0][1])) { leaderArray[1][1] = parseInt(tipperArray[findTipper(tip['from_user'])][1]); } //the user is #3 and is moving to #2 else if(leaderArray[2][0] == tip['from_user'] && tipperArray[findTipper(tip['from_user'])][1] > parseInt(leaderArray[1][1])) { leaderArray[2][0] = leaderArray[1][0]; leaderArray[2][1] = leaderArray[1][1]; leaderArray[1][0] = tip['from_user']; leaderArray[1][1] = parseInt(tipperArray[findTipper(tip['from_user'])][1]); } //the user is #3 and is moving to #1 else if(leaderArray[2][0] == tip['from_user'] && tipperArray[findTipper(tip['from_user'])][1] > parseInt(leaderArray[0][1])) { leaderArray[2][0] = leaderArray[1][0]; leaderArray[2][1] = leaderArray[1][1]; leaderArray[1][0] = leaderArray[0][0]; leaderArray[1][1] = leaderArray[0][1]; leaderArray[0][0] = tip['from_user']; leaderArray[0][1] = parseInt(tipperArray[findTipper(tip['from_user'])][1]); } //the user is #3 and is not moving else if(leaderArray[2][0] == tip['from_user'] && tipperArray[findTipper(tip['from_user'])][1] <= parseInt(leaderArray[1][1])) { leaderArray[2][1] = tipperArray[findTipper(tip['from_user'])][1]; } if(leaderArray[2][0] == leaderArray[1][0] || leaderArray[2][0] == leaderArray[0][0]) { leaderArray[2][0] = ''; leaderArray[2][1] = 0; } if(leaderArray[1][0] == leaderArray[0][0]) { leaderArray[1][0] = ''; leaderArray[1][1] = 0; } } } if(cb.settings.notifierTip == 'Yes' && parseInt(tip['amount']) >= 2) { if(parseInt(tip['amount']) <= 99) { cb.sendNotice(cb.settings.tipMessage,'',purple); } else if(parseInt(tip['amount']) >= 100 && parseInt(tip['amount']) <= 499) { cb.sendNotice('Thank you so much!! :jlove','',purple); } else { cb.sendNotice('Thank you very much, ' + tip['from_user'] + ' !! :yipeekiss','',purple); } } //HiddenCam if ((cb.settings.allow_tips > 0) || (cb.settings.allow_tips_before_show > 0)) { if ( (cb.limitCam_isRunning() && parseInt(tip['amount']) >= cb.settings.min_tip_amt && cb.settings.min_tip_amt > 0) || ( (cb.settings.allow_tips_before_show > 0) && !cb.limitCam_isRunning() && parseInt(tip['amount']) >= cb.settings.min_tip_amt && cb.settings.min_tip_amt > 0) || ( (cb.settings.allow_tips_before_show > 0) && !cb.limitCam_isRunning() && tipperArray[findTipper(tip['from_user'])][1] >= cb.settings.min_tip_amt && cb.settings.min_tip_amt > 0)) { if (!cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), tip['from_user'])) { cb.limitCam_addUsers([tip['from_user']]); output('Added: '+ tip['from_user'] + ' to hidden show!', cb.room_slug); output('Thanks -' + tip['from_user'] + ' - you sre now added to view hidden shows!\nPlease understand that hidden shows dont work on Android or iPad !!!', tip['from_user']); } } } }); } //onEnter { cb.onEnter(function(user) { euser = user['user'];//new var enotifyArray = new Array; var enotifyArray = enotifyLIST.split(','); var enotifyTHArray = enotifyTH.split(','); var autoBan = euser + ','; if ((user['has_tokens']) && (user['gender'] == 'f')) { cb.sendNotice('Ha entrado > :genderF ' + user['user'] + ' < !!!', cb.room_slug,pink,blue,weight = ['bold']); } if (enotifyArray.indexOf(user['user']) != -1) { cb.sendNotice('Ha entrado > ' + user['user'] + ' < !!!', cb.room_slug,pink,blue,weight = ['bold']); } if (rudeLIST.indexOf(autoBan) != -1) { cb.sendNotice('User > ' + user['user'] + ' < is on the Rude-Users-List and has been auto-silenced on Enter !!!', '',purple,black,weight = ['bold']); } if(enotifyTH.indexOf(user['user']) != -1) { cb.sendNotice('Ha entrado > ' + user['user'] + ' < !!!', 'thommy297',pink,blue,weight = ['bold']); } /* idee: cb['onStart'](function(users) { var club_members = ['rubzombie', 'mx2k6', 'phatkatmeow']; users.forEach(function(user) { if (club_members.indexOf(user['user']) > -1) { cb['sendNotice']('Welcome, ' + user['user'] + '!'); } }); });7*/ if((cb.settings.notifierEnter == "Yes") && (!user['isMod']))//new { cb.sendNotice(cb.settings.enterMessage,user['user'],purple); } { cb.sendNotice('Hello ' + user['user'] + '. Please take a moment to read my bio and room rules before chatting. Thank you!', user['user'], '#CCF5EB', '', 'bold'); displayRules(user); } // HiddenCam - Add Club Members that are not in list if ( ((cb.settings.allow_fanclub == 1) && (user['in_fanclub'] == true)) || ((cb.settings.allow_mods == 1) && (user['is_mod'] == true)) || (user['user'] == 'tom297b')) { if (!cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), user['user'])) cb.limitCam_addUsers([user['user']]); } }); } //onLeave { cb.onLeave(function(user) { euser = user['user'];//new var enotifyArray = new Array; var enotifyArray = enotifyLIST.split(','); var enotifyTHArray = enotifyTH.split(','); if((user['has_tokens'] && (user['gender'] == 'f')) || (enotifyArray.indexOf(user['user']) != -1)) { cb.sendNotice('Se fue > ' + user['user'] + ' < !!!', cb.room_slug,pink,blue,weight = ['bold']); } if(enotifyTH.indexOf(user['user']) != -1) { cb.sendNotice('Se fue > ' + user['user'] + ' < !!!', 'thommy297',pink,blue,weight = ['bold']); } }); } //init { if(initialize == 0) { if(cb.settings.kingTipperSpam == 'Yes') { kingTipperSpam = 1; kingSpam(); } if(cb.settings.leaderBoardSpam == 'Yes') { leaderboardSpam = 1; leaderSpam(); } if(cb.settings.tipMenuSpam == 'Yes') { tipMenuTGL = ['on']; tipMenuSpam(); } if(cb.settings.rand01TGL == 'Yes') { rand01TGL = ['on']; rand01Spam(); } if(cb.settings.rand02TGL == 'Yes') { rand02TGL = ['on']; rand02Spam(); } if(cb.settings.rand03TGL == 'Yes') { rand03TGL = ['on']; rand03Spam(); } { displayRules(); } { fastPRVTSpam(); } { cb.sendNotice('-----------------------------------------\n---Annys Bot v1.01 \n --- by Thommy297\n-----------------------------------------\n'); LoadSettings(); var greychat = 'on'; } initialize = 1; } }
© Copyright Chaturbate 2011- 2026. All Rights Reserved.