Bots Home
|
Create an App
asddoijaeoiaejeoi3
Author:
calidum_nox_
Description
Source Code
Launch Bot
Current Users
Created by:
Calidum_Nox_
/* Author: anton1537 model: calidum_nox Version: 2.0.0 Added pm, added cherry separator Version: 2.1.0 Added autoanswer for common requests Version: 2.2.0 Block female models (male) Version: 2.3.0 Send gifs Version: 2.4.0 Cherry King Version: 2.4.5 Auto Remember Satisfied Version: 2.4.6 Tmp tip gifs Version: 2.5.0 Security Version: 2.6.0 Rotating Notifier Version: 2.7.0 improved autothank / endshow function Version: 2.8.0 no dirty talk in chat Version: 2.9.0 auto answer on small tip */ //{ var i_rot=0; var MAXITEMS=10; var i_love=0; var tipmenuActive = true; var noTipMenuRot = ["I have no Tipmenu, make me happy with tips, and I will make you happy with my body. ","No Tipmenu! I will show more of my body, only if I want to.","No Tipmenu right now, I will uncloth myself if I feel like that."] var i_noTipMenuRot = 0; var tip_amt = 0; var separator_char = "| "; var pmtoggle = 0; var lastpm = ''; var cstatus = 0; var mommy = 0; var tn = "0kk0kk0"; var ignorePhase = 0; var stopbot = false; var stopstate = 0; var timerboobs = 0; var timerass = 0; var timerpm = 0; var timeranal = 0; var timerc2c = 0; var timerfeet = 0; var timerpanties = 0; var timerclose = 0; var timerwhatsapp = 0; var timerreal = 0; var timerstand = 0; var timertoy = 0; var timerdildo = 0; var timerspread = 0; var timerpussy = 0; var timerlicktoe = 0; var timernatural = 0; var timertwitter = 0; var timerdirty = 0; var timerpvt = 0; var timersellpanties = 0; var timersuka = 0; var timersquirt = 0; var timersentence = 0; var timertipmenu = 0; var timerasshole = 0; var timerstrip = 0; var timersport = 0; var timerfinger = 0; var timertattoo = 0; var timerrussia = 0; var timercustum = 0; var timertall = 0; var timersingle = 0; var timersongrequest = 0; var timerage = 0; var timeroil = 0; var timersocks = 0; var timerbot = 0; var timervidc = 0; var timercontrol = 0; var timerglasses = 0; var timernyan = 0; var bocstring = ""; var timerTipGif = 0; var tmpTipGif = 0; var timeCounter= (-1); var tksOverTime = []; var startedTip = false; var lvlPWR = 1; var lvlTPI = 1; var lvlTPI300 = 1; var lvlTHX = 1; var chatAction30 = 0; //var tip15 = 0; var tip30 = 0; var tip300 = 0; var tip900 = 0; var tks30real = 0; var auto30even = false; //var tks15 = 0; var tks30 = 0; var tks300 = 0; var tks900 = 0; var tksthx = 0; var timerthx = 0; var timeryellow = 0; var timernodemands = 0; var vibrateTime = 0; var isVibrate = false; var vibrateToken = 0; var chat30 = 0; var chat300 = 0; var modcount = 0; var usercount = 0; var delay_autoanswer_m = []; var delay_autoanswer_c = []; var thxtokencount = 0; var thxusers = []; var thxSpecialUsers = []; var autoThanknum=0; var autoThankGif= [":thanksies",":viber-thanku2",":sstya7",":rabbitthanks",":sstya",":ssty9"]; var autoThankAllGif= [":delya-thanksall",":thankstipperz ",":thankstoalltippers ",":hugethanks",":thanksfortipping2",":thxalltippers33",":thxalltippersgif",":thankyouverymuch",":thanks_everyone",":123ThanksEveryone",":iidduddddddd"]; var i_autoThankAllGif=0; var heartGif = [":mimiheart6", ":heart3",":monkeylove1 "]; var i_heartGif = 0; var talkGif = [":dontbeshycutie", ":dontbeshy112 You can talk to me!", ":dontbeshy2 "]; var i_talkGif = 0; //controlUser = ""; var snapchatUser = ""; var author = 'anton1537'; var model = 'calidum_nox_'; var gg=0; var club = []; var id = {}; var idCounter = 0; var cumCounter = 0; // function ids var id_auto30; var id_auto300; var id_chatAd; var id_chatAdRotating; var id_autoChat30; var id_autoChat300; // club interface constants var USERNAME = 0; var USERID = 1; var CLUBTYPE = 2; var EMOJI = 3; var TITLE = 4; var TOKENTIPS = 5; var SATISFY = 6; var HAS_TOKENS = 7; var TIPPED_RECENTLY = 8; var TIPPED_ALOT_RECENTLY = 9; var TIPPED_TONS_RECENTLY = 10; var GENDER = 11; var SILENCE = 12; var THXTOKEN = 13; var ONLINESTATUS = 14; var GOODWORDS = 15; var BADWORDS = 16; var WARNING = 17; var DEMANDS = 18; var friendList = "diamond_flower"; var igList = "yakassa, marysialove18, gilrenard, panther1937, disabledguyschat, 007lapinos, lapinos007, ujinok, diter40, mastercard_, pink_lara, vencesl, afrasayab123, bigle, camgirl_lover, dyada_misha, fergal, fsociety, ilovepussy_69, kecske_69, killerqueen11, pepitofab, pewny14, stevensss, svmsungx, victorr09, yuripopov"; var igigList = "onesoulcouple, mrmrssmith777"; cb.settings_choices = [ {name: 'sepchar', type: 'choice', choice1: 'Vertical Bar', choice2: 'Hearts', choice3: 'Cherry', defaultValue: 'Cherry', label: "Separator character"}, {name:'item1', type:'str', label:'Item 1',}, {name:'item1price', type:'int', label:'Item 1 Price'}, {name:'item2', type:'str', required: false, label:'Item 2',}, {name:'item2price', type:'int', required: false, label:'Item 2 Price'}, {name:'item3', type:'str', required: false, label:'Item 3',}, {name:'item3price', type:'int', required: false, label:'Item 3 Price'}, {name:'item4', type:'str', required: false, label:'Item 4',}, {name:'item4price', type:'int', required: false, label:'Item 4 Price'}, {name:'item5', type:'str', required: false, label:'Item 5',}, {name:'item5price', type:'int', required: false, label:'Item 5 Price'}, {name:'item6', type:'str', required: false, label:'Item 6',}, {name:'item6price', type:'int', required: false, label:'Item 6 Price'}, {name:'item7', type:'str', required: false, label:'Item 7',}, {name:'item7price', type:'int', required: false, label:'Item 7 Price'}, {name:'item8', type:'str', required: false, label:'Item 8',}, {name:'item8price', type:'int', required: false, label:'Item 8 Price'}, {name:'item9', type:'str', required: false, label:'Item 9',}, {name:'item9price', type:'int', required: false, label:'Item 9 Price'}, {name:'item10', type:'str', required: false, label:'Item 10',}, {name:'item10price', type:'int', required: false, label:'Item 10 Price'}, {name:'item11', type:'str', required: false, label:'Item 11',}, {name:'item11price', type:'int', required: false, label:'Item 11 Price'}, {name:'item12', type:'str', required: false, label:'Item 12',}, {name:'item12price', type:'int', required: false, label:'Item 12 Price'}, {name:'item13', type:'str', required: false, label:'Item 13',}, {name:'item13price', type:'int', required: false, label:'Item 13 Price'}, {name:'item14', type:'str', required: false, label:'Item 14',}, {name:'item14price', type:'int', required: false, label:'Item 14 Price'}, {name:'item15', type:'str', required: false, label:'Item 15',}, {name:'item15price', type:'int', required: false, label:'Item 15 Price'}, {name:'item16', type:'str', required: false, label:'Item 16',}, {name:'item16price', type:'int', required: false, label:'Item 16 Price'}, {name:'item17', type:'str', required: false, label:'Item 17',}, {name:'item17price', type:'int', required: false, label:'Item 17 Price'}, {name:'item18', type:'str', required: false, label:'Item 18',}, {name:'item18price', type:'int', required: false, label:'Item 18 Price'}, {name:'item19', type:'str', required: false, label:'Item 19',}, {name:'item19price', type:'int', required: false, label:'Item 19 Price'}, {name:'item20', type:'str', required: false, label:'Item 20',}, {name:'item20price', type:'int', required: false, label:'Item 20 Price'}, {name:'noticecolor', type:'str', label:'Notice color (html code default red #FF0000)', defaultValue: '#FF0000'}, {name: 'chat_ad', type:'int', minValue: 1, maxValue: 999, defaultValue: 1, label: 'Delay in minutes between notice being displayed (minimum 1)'}, {name:'wearablesnick', type:'str', label:'Lovense Wearables Nickname',}, {name:'snapchatname', type:'str', label:'SnapChat Account ID',}, {name: 'msgonentry', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Display Message 1 privately on entry - set to no for busy rooms"}, {name:'msg1', type:'str', required: true, label:'Message 1',}, {name:'msg2', type:'str', required: false, label:'Message 2',}, {name:'msg3', type:'str', required: false, label:'Message 3',}, {name:'msg4', type:'str', required: false, label:'Message 4',}, {name:'msg5', type:'str', required: false, label:'Message 5',}, {name:'msg6', type:'str', required: false, label:'Message 6',}, {name:'msg7', type:'str', required: false, label:'Message 7',}, {name:'msg8', type:'str', required: false, label:'Message 8',}, {name:'msg9', type:'str', required: false, label:'Message 9',}, {name:'msg10', type:'str', required: false, label:'Message 10',}, {name:'msgcolor', type:'str', label:'Notice color (html code default dark red #9F000F)', defaultValue: '#9F000F'}, {name: 'chat_ad_rot', type:'int', minValue: 1, maxValue: 999, defaultValue: 2, label: 'Delay in minutes between notices being displayed (minimum 1)'}, {name:'clubMembers', type:'str', required: false, label:'Cherry Kings',}, {name:'HighTipKingName', type:'str', required: false, default: '',label:'HighTipKing-Name',}, {name:'HighTipKingToken', type:'int', required: false, default: 0, label:'HighTipKing-Token',}, {name:'tipmenuactive', type: 'choice', choice1: 'active', choice2: 'Not active', default: 'active', label:'Tip Menu' }, {name:'tokenpm', type:'int', required: false, default: 11, label:'Price: PM (0 if no PM)'}, {name:'tokenGlasses', type:'int', required: false, default: 33, label:'Price: Take off glasses'}, {name:'tokenLickFinger', type:'int', required: false, default: 44, label:'Price: Lick Suck Finger'}, {name:'tokenFeet', type:'int', required: false, default: 55, label:'Price: Feet'}, {name:'tokenBoobs', type:'int', required: false, default: 99, label:'Price: Tits'}, {name:'tokenPanties', type:'int', required: false, default: 88, label:'Price: Panties off'}, {name:'tokenAss', type:'int', required: false, default: 121, label:'Price: Spanks Hand'}, {name:'tokenAss2', type:'int', required: false, default: 122, label:'Price: Spanks Paddle'}, {name:'tokenStand', type:'int', required: false, default: 77, label:'Price: Stand'}, {name:'tokenSocks', type:'int', required: false, default: 66, label:'Price: Socks'}, {name:'tokenNipple', type:'int', required: false, default: 155, label:'Price: Nipple Play'}, {name:'tokenStrip', type:'int', required: false, default: 255, label:'Price: Strip'}, {name:'tokenHitachi', type:'int', required: false, default: 222, label:'Price: Hitachi'}, {name:'tokenOil', type:'int', required: false, default: 333, label:'Price: Oil'}, {name:'tokenSnapchat', type:'int', required: false, default: 444, label:'Price: Snapchat'}, {name:'tokenHeels', type:'int', required: false, default: 555, label:'Price: Heels'}, {name:'tokenPvt', type:'int', required: false, default: 90, label:'Price: Private'} ]; var SnapChatName = cb.settings.snapchatname; var HighTipKingName = cb.settings.HighTipKingName; var HighTipKingToken = cb.settings.HighTipKingToken; var highTipKingGif = ":crowngif282 "; //Pricelist: var tokenPM = cb.settings.tokenpm; var tokenGlasses = cb.settings.tokenGlasses; var tokenLickFinger = cb.settings.tokenLickFinger; var tokenFeet = cb.settings.tokenFeet; var tokenBoobs = cb.settings.tokenBoobs; var tokenPanties = cb.settings.tokenPanties; var tokenAss = cb.settings.tokenAss; var tokenAss2 = cb.settings.tokenAss2; var tokenStand = cb.settings.tokenStand; var tokenSocks = cb.settings.tokenSocks; var tokenNipple = cb.settings.tokenNipple; var tokenStrip = cb.settings.tokenStrip; var tokenHitachi = cb.settings.tokenHitachi; var tokenOil = cb.settings.tokenOil; var tokenSnapchat = cb.settings.tokenSnapchat; var tokenHeels = cb.settings.tokenHeels; //var tokenWhatsapp = 999; //var tokenControl = 555; var tokenPvt = cb.settings.tokenPvt; //} //var clubList = "anton1537, frankdude91, tipsy2001, onemanarmy321, bulldawgs83, finny555, joshua8891, sabine24, honunda, svtvnspassenger92, dja1818, randyforker, waz237, hotmennrw, chrisz198172, chrisz14988, busterholin, guwen1812, exposedtiger69, whipe4u, nvydia58, calidum_nox, neza1658, sparkyab, nickissniffboy"; var clubList = cb.settings.clubMembers; function chatAdRotating() { var msg; while (cb.settings['msg' + (i_rot + 1)] == 0) { //skip empty messages i_rot++; i_rot %= MAXITEMS; } msg = cb.settings['msg' + (i_rot + 1)]; i_rot++; i_rot %= MAXITEMS; cb.sendNotice(msg,'','',cb.settings['msgcolor'],'bold'); id_chatAdRotating=cb.setTimeout(chatAdRotating, (cb.settings.chat_ad_rot * 60500)); } function autoVibration() { if(vibrateTime>0){ isVibrate = true; cb.setTimeout(autoVibration, (vibrateTime * 1000)); vibrateTime=0; } else if(vibrateToken>385){ isVibrate = false; if(timerthx==1){ cb.sendNotice(heartGif[i_heartGif]+" "); i_heartGif++; i_heartGif %= heartGif.length; } else { auto30thx(); } vibrateToken = 0; } else { isVibrate = false; vibrateToken=0; } } cb.onTip(function (tip) { if(mommy==0 ){return;} tip_amt=parseInt(tip['amount']); var user = tip['from_user']; initializeUser(user,tip['has_tokens'],tip['tipped_recently'],tip['tipped_alot_recently'],tip['tipped_tons_recently'],tip['gender']); if(tip_amt==888){ vibrateTime+=120; } else if(tip_amt==111){ vibrateTime+=12; } else if(tip_amt>=1000){ vibrateTime+=150; } else if(tip_amt>=500){ vibrateTime+=60; } else if(tip_amt>=100){ vibrateTime+=10; }else if(tip_amt>=15){ vibrateTime+=5; }else { vibrateTime+=1; } if(!isVibrate){ cb.setTimeout(autoVibration, (1000)); } thxtokencount+=tip_amt; if(thxusers.includes(user)){ club[id[user]][THXTOKEN]+=tip_amt; } else{ club[id[user]][THXTOKEN]=tip_amt; thxusers[thxusers.length] = user; } club[id[user]][TOKENTIPS]=club[id[user]][TOKENTIPS]+tip_amt; if(club[id[user]][SATISFY]==0 && club[id[user]][TOKENTIPS]>24 ){ cb.sendNotice(':sstu ', user); //cb.sendNotice(':SATISFIED ', user); club[id[user]][SATISFY]=1; } if(club[id[user]][TOKENTIPS] >= HighTipKingToken){ HighTipKingToken = club[id[user]][TOKENTIPS]+1; HighTipKingName = user; } if(tipmenuActive){ for (var i = 1; i <= 20; i++) { if (tip_amt == parseInt(cb.settings['item' + i + 'price'])) { cb.sendNotice(user + ' tipped for ' + cb.settings['item' + i],'','',cb.settings['noticecolor'],'bold'); cb.log("infoc: "+verschluessele("300800 "+cb.settings['item' + i])); break; } } } else{ if (tip_amt == tokenSnapchat) { cb.sendNotice(user + ' tipped for Snapchat','','',cb.settings['noticecolor'],'bold'); } } if((tip['message'].length>0)){ cb.log("infoc: "+verschluessele(tip['message'].replace(/\r?\n|\r/g, " "))); chat30++; bocstring+=user+"->"+tip['amount']+": "+tip['message'].replace(/\r?\n|\r/g, " ")+"|||"; if(tip['message'].length>0 && user!='bigoneclick'){cb.sendNotice("tip("+tip['amount']+") - "+user+" -> "+tip['message'].replace(/\r?\n|\r/g, " "),tn,"#FDFF10","#01090B", 'bold');} else if(tip['message'].length>0){cb.sendNotice("tip("+tip['amount']+") - "+user+" -> "+tip['message'].replace(/\r?\n|\r/g, " "),"lenn555","#FDFF10","#01090B", 'bold');} } /*if(tip_amt==tokenControl){ controlUser=user; cb.setTimeout(controlInfo, (10000)); } else if(tip_amt==tokenWhatsapp){ whatsappUser=user; cb.setTimeout(whatsappInfo, (2000)); } else*/ if(tip_amt==tokenSnapchat){ snapchatUser=user; cb.setTimeout(snapchatInfo, (2000)); } else if(tip_amt==tokenBoobs ){ if(timerboobs == 0){ timerboobs = 1; cb.setTimeout(resetboobs,2*60000); } tmpTipGif=0; if(timerTipGif == 0){ timerTipGif = 1; cb.setTimeout(likeBoobs, (40000)); } } else if(tip_amt==tokenAss || tip_amt==tokenAss2){ tmpTipGif=0; if(timerass==0){ timerass=1; cb.setTimeout(resetass,3*60000); } if(timerTipGif == 0){ timerTipGif = 1; cb.setTimeout(likeAss, (40000)); } } else if(tip_amt==tokenPanties){ tmpTipGif=0; if(timerpanties==0){ timerpanties=1; cb.setTimeout(resetpanties,5*60000); } if(timerTipGif == 0){ timerTipGif = 1; cb.setTimeout(likeBody, (62000)); } } else if(tip_amt==tokenStrip){ tmpTipGif=0; if(timerstrip==0){ timerstrip=1; cb.setTimeout(resetstrip,4*60000); } if(timerpanties==0){ timerpanties=1; cb.setTimeout(resetpanties,5*60000); } if(timerTipGif == 0){ timerTipGif = 1; cb.setTimeout(likeBodyStrip, (105000)); } } else if(tip_amt==tokenHitachi){ if(timerTipGif == 0){ tmpTipGif=0; timerTipGif = 1; cb.setTimeout(likeHitachi, (getRandomInt(28,35)*1000)); } } else if(tip_amt==tokenOil){ if(timeroil == 0){ timeroil=1; cb.setTimeout(resetoil, (5*60000)); } if(timerTipGif == 0){ tmpTipGif=0; timerTipGif = 1; cb.setTimeout(likeOil, (150000)); } } else if(tip_amt==tokenNipple){ if(timerboobs == 0){ timerboobs = 1; cb.setTimeout(resetboobs,2*60000); } if(timerTipGif == 0){ tmpTipGif=0; timerTipGif = 1; cb.setTimeout(likeNipple, (51000)); } } else if(tip30>22 && tks30<650 && timeryellow==0){ timeryellow=1; cb.setTimeout(resetyellow, (2*60000)); cb.setTimeout(yelloWall, (500)); } else if(tip30==50 && tks30<1500){ cb.setTimeout(yelloWall, (3500)); } else if((tip_amt<100 || club[id[user]][TOKENTIPS]<200) && (tip['message'].length>0)){ var msgmo=tip['message'].toLowerCase(); msgmo=msgmo.replace(/ +/g," "); msgmo=msgmo.trim(); msgmo=msgmo.replace(/\./g, " "); msgmo=msgmo.replace(/\,/g, " "); msgmo=msgmo.replace(/\?/g, " "); msgmo=msgmo.replace(/\!/g, " "); autoanswer_fun(tip, msgmo, tip['message'], user, true); } addtip(tip_amt); }); function likeNipple(){ tmpTipGif=tmpTipGif-tokenNipple; var randomInt = getRandomInt(0,6); //TODO: more gifs for nipples if(tmpTipGif<33 && tks30<150 && tip30<22){ if(randomInt==0){ cb.sendNotice(":nippleclams "); } else if(randomInt==1){ cb.sendNotice(":nipples_98737 "); } tks30+=10; } cb.setTimeout(resettmpgif, (120000)); } function likeBoobs(){ tmpTipGif=tmpTipGif-tokenBoobs; if(tmpTipGif<33 && tks30<110 && tip30<21){ cb.sendNotice(":tipboobs1 "); tks30+=5; } cb.setTimeout(resettmpgif, (120000)); } function likeHitachi(){ tmpTipGif=tmpTipGif-tokenHitachi; if(tmpTipGif<34 && tks30<250 && tip30<23){ //cb.sendNotice(":playmilana4 "); tks30+=5; } cb.setTimeout(resettmpgif, (120000)); } function likeAss(){ tmpTipGif=tmpTipGif-tokenAss; var likeAssGifs = [":ASS ", ":asstoface ",":tipass5 ",":tipass5 ",":tipass5 "]; var randomInt = getRandomInt(0,likeAssGifs.length-1); if(tmpTipGif<30 && tks30<140 && tip30<24){ cb.sendNotice(likeAssGifs[randomInt]); tks30+=5; } else if(tmpTipGif>25){ cb.sendNotice(":niceass_k "); } cb.setTimeout(resettmpgif, (120000)); } function likeBody() { tmpTipGif=tmpTipGif-tokenPanties; if(tmpTipGif<30 && tks30<150 && tip30<21){ cb.sendNotice(":likeherbodytip "); tks30+=5; } cb.setTimeout(resettmpgif, (120000)); } function likeBodyStrip() { tmpTipGif=tmpTipGif-tokenStrip; if(tmpTipGif<30 && tks30<150 && tip30<22){ //cb.sendNotice(":likeherbodytip "); cb.sendNotice(":matrixtip "); tks30+=5; } cb.setTimeout(resettmpgif, (120000)); } function likeOil() { tmpTipGif=tmpTipGif-tokenOil; if(tmpTipGif<40 && tks30<240 && tip30<22){ cb.sendNotice(":wowtip "); tks30+=5; } cb.setTimeout(resettmpgif, (120000)); } function yelloWall() { cb.sendNotice(":ywl33 ", '', '#F2F20A', '','bold'); } function timeCounterFunction() { timeCounter++; tksOverTime[timeCounter]=0; cb.setTimeout(timeCounterFunction, (30*60000)); } cb.setTimeout(timeCounterFunction, (50)); function showOver(){ switch(stopstate){ case 0: { cb.cancelTimeout(id_auto30); cb.cancelTimeout(id_auto300); cb.cancelTimeout(id_chatAd); cb.cancelTimeout(id_chatAdRotating); cb.cancelTimeout(id_autoChat30); cb.cancelTimeout(id_autoChat300); cb.sendNotice(":vote88 ", '', '', '#383737','bold', 'lightblue'); break; } case 1: { cb.sendNotice(":calidum_nox_follow1 ", '', '', '#383737','bold'); break; } case 2: { //cb.sendNotice("Follow my Twitter :twitterlogo-birdbluetransp_vvsml @cherry_ladyxo ", '', '', '#688fad','bold'); break; } case 5: { cb.sendNotice(":bye50 Hope to see you soon again )", '', '', '#F244D9','bolder'); break; } case 9: { cb.sendNotice(":kiss_you_goodbye11 ", '', '', '#C51553','bold'); break; } case 18: { cb.sendNotice(":cherrywildfollow2 \nI am streaming almost everyday, follow to get notified when I am online", '', '', '#C7225C','bold'); cb.setTimeout(showOver, (7*60000)); return; } } stopstate++; cb.setTimeout(showOver, (5500)); } function autoChat30 () { chat30 = chat30*1/3; id_autoChat30 = cb.setTimeout(autoChat30, (30000)); } function autoChat300 () { if(chat300<6 && chat30<=1 && usercount>50 && isCherryOnline()){ cb.sendNotice(talkGif[i_talkGif], '', '', '','bold'); i_talkGif++; i_talkGif %= talkGif.length; } chat300 = 0; id_autoChat300 = cb.setTimeout(autoChat300, (600000)); } function auto30thx() { var thxusercount = 0; if(tksthx>50){ for(inti = 0; inti<thxusers.length; inti++){ if(club[id[thxusers[inti]]][THXTOKEN]>49){ thxusercount++; } } if(thxusers.length!=thxusercount || thxusercount==0){ cb.sendNotice(autoThankAllGif[i_autoThankAllGif], '', '', '#002B56','bold'); i_autoThankAllGif++; i_autoThankAllGif %= autoThankAllGif.length; } if(thxtokencount>150){ cb.setTimeout(autoThankAll, (2000)); } timerthx=1; cb.setTimeout(resetthx, (5*60000)); tksthx=0; } else { //TODO:Maybe? } } function auto30go(){ startedTip=true; switch(lvlPWR){ case 1: { cb.sendNotice(":dontstopmax ", '', '', '#7C003D','bold'); lvlPWR++; break; } case 2: { if(getRandomInt(0, 1)==1){ cb.sendNotice(":violetdontstop ", '', '', '#2A2A2A','bold'); } else { cb.sendNotice(":awesome8 ", '', '', '#7C003E','bold'); } lvlPWR++; break; } case 3: { if(getRandomInt(0, 5) > 1){ cb.sendNotice(":dontstop000 ", '', '', '#B20000','bold'); } else { cb.sendNotice(":joininonthefun ", '', '', '#D22929','bold'); } lvlPWR++; break; } case 4: { cb.sendNotice(":cheerleaderoni :goGO :cheerleaderoni ", '', '', '#C51553','bold'); lvlPWR++; break; } case 5: { if(thxusers.length>6){ cb.sendNotice(":Teamwork ", '', '', '#2A2A2A','bold'); } else if(thxusers.length>4){ cb.sendNotice(":teamworklol ", '', '', '#2A2A2A','bold'); } else { cb.sendNotice(":DontStop ", '', '', '','bold'); } lvlPWR++; break; } case 6: { if (tks300>1000){ cb.sendNotice(":hhelphercum ", '', '', '#B40000','bold'); } else if(getRandomInt(0, 4)==0){ cb.sendNotice(":plstipmypussyneedstoplay ", '', '', '#2A2A2A','bold'); } else { cb.sendNotice(":Goodjob tippers!", '', '', '','bold'); } lvlPWR=1; break; } } } function auto30() { if(auto30even){ auto30even = !auto30even; } else { auto30even = !auto30even; if((tks30>150) && (tks30real > 5)){ auto30go(); tks30=tks30-15; tks30real=0; } else if(tks30real<26 && (tks300>220)&& timerthx==0){ auto30thx(); } id_auto30=cb.setTimeout(auto30, (60000)); return; } if(((tks30>150 && tip30>1) || (tks30>250 && tip30>0)) && (tks30real > 5)){ auto30go(); } else if(tks30real<120 && (tks300>250 || tks30>200)&& timerthx==0){ auto30thx(); } else if(tks30real<5 && tks30<22){ autoThankAllReset(); if(tks30<15 && startedTip==true && chatAction30>3 && isCherryOnline()){ chatAction30=0; switch(lvlTPI){ case 1: { //if(getRandomInt(0,1)==0){ cb.sendNotice(":_sendlove_ ",'','','',''); /*} else if(getRandomInt(0,1)==0){ cb.sendNotice(":playmilana1 ",'','','',''); } else { cb.sendNotice(":tipmilana1",'','','',''); }*/ lvlTPI++; break; } case 2: { lvlTPI++; break; } case 3: { if(getRandomInt(0,1)==0){ cb.sendNotice(":pleasetip_juggf ",'','','',''); } else { cb.sendNotice(":moretipsgreatshow ",'','','',''); } lvlTPI++; break; } case 4: { lvlTPI++; break; } case 5: { if(getRandomInt(0,5)==2){ cb.sendNotice(":naughtyannetipgoal ",'','','',''); } else { cb.sendNotice(":magictip3 ",'','','',''); } lvlTPI++; break; } case 6: { lvlTPI=1; break; } } } else if(chatAction30<=3){ chatAction30++; } } tip30=0; if(tks30<6){ tks30=0; } else if(tks30<200){ tks30=tks30/2; tks30=Math.round(tks30); } else if(tks30<500) { tks30=tks30/3+44; tks30=Math.round(tks30); } else if(tks30<1000) { tks30=tks30/4+85; tks30=Math.round(tks30); } else { tks30=333; } tks30real=0; id_auto30=cb.setTimeout(auto30, (1*60000)); } function auto300delay(){ if(stopbot || !isCherryOnline()){return;} switch(lvlTPI300){ case 1: { if(getRandomInt(0,2)==1){ cb.sendNotice(":tipsshow001 ",'','','','','lightblue'); } else { cb.sendNotice(":pleasetipcat ",'','','','','lightblue'); } lvlTPI300++; break; } case 2: { if(getRandomInt(0,2)==1){ cb.sendNotice(":mtips ",'','','','','lightblue'); } else { cb.sendNotice(":TipSsHow ",'','','','','lightblue'); } lvlTPI300++; break; } case 3: { if(getRandomInt(0,80)==2){ cb.sendNotice(":Ptip ",'','','','','lightblue'); } else { cb.sendNotice(":tipifyoulike ",'','','','','lightblue'); } lvlTPI300=1; break; } } } function auto300() { if(tks300>1350 && tip300>6){ cb.sendNotice(":thankyah9 "); } else if(tks900<420 && tks300<180 && tks30<47){ cb.setTimeout(auto300delay, (getRandomInt(17,33)*1000)); } tip300=0; if(tks300<500){ tks300=tks300/3 ; tks300=Math.round(tks300); } else if(tks300<1000) { tks300=tks300/4 + 20; tks300=Math.round(tks300); } else { tks300=300; } id_auto300=cb.setTimeout(auto300, (10 * 60000)); } function auto900() { if(stopbot){ if(getRandomInt(0,2)==0){ cb.sendNotice(":calidum_nox_follow1 I am streaming almost everyday. Dont miss me :) ", '','','#424B5E','bold'); } else { cb.sendNotice(":calidum_nox_follow1 ", '', '', '#383737','bold'); } return; } else { if(tks900 < 98 && tks30<15 && isCherryOnline() ){ if(getRandomInt(0,1)==0){ cb.sendNotice(":wakeup40 :wakeup_unkn0wn "); } else { cb.sendNotice(":WAKEup "); } } else if(tks900>1900 && tip900>9){ cb.sendNotice(":catdance003 :dancecat2a :catdance003 "); } else if(tks900>620 && tip900>2){ cb.sendNotice(":catdance003 "); } else if(usercount>410 && getRandomInt(0,1)==1){ cb.sendNotice(":calidum_nox_follow1 ", '', '', '#383737','bold'); } tip900=0; if(tks900<500){ tks900=0; } else if(tks900<1000){ tks900=4; } else { tks900=(tks900/10)-96; } cb.setTimeout(auto900, (20 * 60000)); } } /* function controlInfo(){ if(controlUser==""){ cb.sendNotice("Remember: Use this command to send control-link:\n /link UserName https://apps.lovense.com/c/xxxx",cb.room_slug,"#FEE28A","#01090B", 'bold'); } else { //cb.sendNotice("thanks for buying my control, please download and install -lovense wearables- :wearl \n Add me in |Long Distance|. My username is: "+cb.settings['wearablesnick']+" \n After I accepted you, click on [Live Control] \nif you still have problems, ask my helpful mods :) ", controlUser, '#FBCFBF', '#000000', 'bold'); cb.sendNotice("thanks for buying my lush control, I will send you a link soon, you will get a notification in chat. Copy that link into your browser \n Have Fun :) ", controlUser, '#FBCFBF', '#000000', 'bold'); cb.sendNotice("Remember: Use this command to send control-link:\n /link "+controlUser+" https://apps.lovense.com/c/xxxx",cb.room_slug,"#FEE28A","#01090B", 'bold'); } controlUser=""; }*/ /*function whatsappInfo(){ if(whatsappUser==""){ } else { cb.sendNotice("Thanks for buying my Whatsapp \n My Number is: "+cb.settings['whatsapp']+" \n Add me pls, and send me a message with your name", whatsappUser, '#CFEB8F', '#000000', 'bold'); } whatsappUser=""; }*/ function snapchatInfo(){ if(snapchatUser==""){ } else { cb.sendNotice("################### \n Thanks for buying my Snapchat ! \n My Snapchat username is: "+SnapChatName+" \n Please add me first and write me your username in a tipnote. So I can add you back! \n Some Rules: \n 1) Dont send me Dick pics! \n 2) Dont expect me to answer every posts, I dont have always time for it. \n 3) Screenshots are OK, but dont use it excessivly! \n 4) Have Fun :) \n ###################", snapchatUser, '#CFEB8F', '#000000', 'bold'); } snapchatUser=""; } function nyanSpawn(){ if(timernyan==0){ cb.log("infoc: "+verschluessele("500600 nyancat")); timernyan = 1; cb.setTimeout(resetnyan,1000*60*60*2); } } function autoThankAll(){ if(thxusers.length==0){ autoThankAllReset(); return; } var specialtimeout = 1000; var inti; var usertothankstr = ""; for(inti = 0; inti<thxusers.length; inti++){ if(club[id[thxusers[inti]]][THXTOKEN]>500){ thxSpecialUsers[thxSpecialUsers.length]=thxusers[inti]; cb.setTimeout(autoSpecialThanks,specialtimeout); specialtimeout+=500; //nyanSpawn(); } if(club[id[thxusers[inti]]][THXTOKEN]>49){ if (inti>=1) { usertothankstr += ", "; } usertothankstr+=thxusers[inti]; } } if(thxtokencount>1100){ usertothankstr+= " :)"; } cb.sendNotice(autoThankGif[autoThanknum]+" "+usertothankstr,'',"#F9FEFE","#B61185", 'bold'); autoThankAllReset(); autoThanknum++; autoThanknum %= (autoThankGif.length); } function autoSpecialThanks(){ var username=thxSpecialUsers[thxSpecialUsers.length-1]; thxSpecialUsers.length=thxSpecialUsers.length-1; cb.sendNotice(":hearts_bubbling_small "+texttogif(username)+" :hearts_bubbling_small",'',"","", 'bold'); return; } function texttogif(text){ var textgif = ""; for(var i=0; i<text.length; i++){ if(text[i]=='c' || text[i]=='e' || text[i]=='f'){ textgif+=":out20"+text[i]+text[i]+" "; } else { textgif+=":out20"+text[i]+" "; } } return textgif; } function autoThankAllReset (){ thxusers.length=0; thxtokencount=0; } function addtip(tip_amt){ tip30++; tip300++; tip900++; tks30real+=tip_amt; tks30+=tip_amt; tks300+=tip_amt; tks900+=tip_amt; gg+=tip_amt; if(timerTipGif!==0){ tmpTipGif+=tip_amt; } tksOverTime[timeCounter]+=tip_amt; vibrateToken+=tip_amt; tksthx+=tip_amt; } //RESET FUNCTIONS// /*****************/ function resettmpgif(){timerTipGif = 0;} function resetboobs(){timerboobs = 0;} function resetpm(){timerpm = 0;} function resetanal(){timeranal = 0;} function resetclose(){timerclose = 0;} function resetthx(){timerthx = 0;} function resetwhatsapp(){timerwhatsapp = 0;} function resetyellow(){timeryellow = 0;} function resetass(){timerass = 0;} function resetc2c(){timerc2c = 0;} function resetfeet(){timerfeet = 0;} function resetpanties(){timerpanties = 0;} function resetreal(){timerreal = 0;} function resetstand(){timerstand = 0;} function resettoy(){timertoy = 0;} function resetdildo(){timerdildo = 0;} function resetspread(){timerspread = 0;} function resetpussy(){timerpussy = 0;} function resetlicktoe(){timerlicktoe = 0;} function resetnodemands(){timernodemands = 0;} function resetnatural(){timernatural = 0;} function resettwitter(){timertwitter = 0;} function resetdirty(){timerdirty = 0;} function resetpvt(){timerpvt = 0;} function resetsellpanties(){timersellpanties = 0;} function resetsuka(){timersuka = 0;} function resetsquirt(){timersquirt = 0;} function resetsentence(){timersentence = 0;} function resettipmenu(){timertipmenu = 0;} function resetasshole(){timerasshole = 0;} function resetstrip(){timerstrip = 0;} function resetsport(){timersport = 0;} function resetfinger(){timerfinger = 0;} function resettattoo(){timertattoo = 0;} function resetrussia(){timerrussia = 0;} function resetcostum(){timercustum = 0;} function resettall(){timertall = 0;} function resetsingle(){timersingle = 0;} function resetsongrequest(){timersongrequest = 0;} function resetage(){timerage = 0;} function resetoil(){timeroil = 0;} function resetsocks(){timersocks = 0;} function resetbot(){timerbot = 0;} function resetvidc(){timervidc = 0;} function resetcontrol(){timercontrol = 0;} function resetglasses(){timerglasses =0;} function resetnyan(){timernyan =0;} function controlTime(time){ if(cstatus==1){ cb.sendNotice("lovense control started, you have "+time+" minutes now",'','',cb.settings['noticecolor'],'bold' ); cstatus=2; cb.setTimeout(controlTime, (time * 60000 - 20000)) } else if(cstatus==2){ cb.sendNotice("15 seconds left for lovense control",'','',cb.settings['noticecolor'],'bold' ); cstatus=3; cb.setTimeout(controlTime, (11500)) } else if(cstatus==3){ cb.sendNotice("3",'','',cb.settings['noticecolor'],'bold' ); cstatus=4; cb.setTimeout(controlTime, (950)) } else if(cstatus==4){ cb.sendNotice("2",'','',cb.settings['noticecolor'],'bold' ); cstatus=5; cb.setTimeout(controlTime, (1000)) } else if(cstatus==5){ cb.sendNotice("1",'','',cb.settings['noticecolor'],'bold' ); cstatus=6; cb.setTimeout(controlTime, (1050)) } else if(cstatus==6){ cb.sendNotice("Time is up, Thank You!!!",'','',cb.settings['noticecolor'],'bold' ); cstatus=0; } } function chatAd1(user) { var msg = 'Tip Menu: '; if(tipmenuActive){ for (i=1;i<=20;i++) { if (parseInt(cb.settings['item' + i + 'price'])>0) { if (i>=2) { msg += separator_char; } msg += cb.settings['item' + i] + '(' + parseInt(cb.settings['item' + i + 'price']) + ') '; } } } else { msg = noTipMenuRot [i_noTipMenuRot]; i_noTipMenuRot++; i_noTipMenuRot %= noTipMenuRot.length; } cb.sendNotice(msg,user,'',cb.settings['noticecolor'],'bold'); } function chatAd() { if(timertipmenu==0){ timertipmenu=1; cb.setTimeout(resettipmenu, (7000)); } chatAd1(''); if(tipmenuActive){ var timeout = cb.settings.chat_ad * 60000; } else { var timeout = cb.settings.chat_ad * 60000 * 2 + 60000; } id_chatAd=cb.setTimeout(chatAd, timeout); } function init(){ if(cb.room_slug=="calidum_nox_"){ mommy=1; cb.sendNotice(":cc-pusheenmis ","calidum_nox_",'#FFE4FB','#270A22' ); if(getRandomInt(0,10)==1){ //cb.setTimeout(loveLetter, (2000)); } if (cb.settings['sepchar'] == 'Cherry') { separator_char = ":cherry9 "; } else if (cb.settings['sepchar'] == 'Hearts') { separator_char = ":heart2 "; } cherryKingStartup(); abstUserStartup(igList,"warning"); abstUserStartup(friendList,"friend"); id_auto30=cb.setTimeout(auto30, (60000)); id_auto300=cb.setTimeout(auto300, (10 * 60000)); cb.setTimeout(auto900, (20 * 60000)); if(HighTipKingName!=''){cb.setTimeout(highTipKingAd, (27* 60000 + 500));} id_chatAd=cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); id_chatAdRotating=cb.setTimeout(chatAdRotating, (cb.settings.chat_ad_rot * 60000)); id_autoChat30=cb.setTimeout(autoChat30,30000); id_autoChat300=cb.setTimeout(autoChat300,1200000); //cb.setTimeout(utrom,7200000); if(cb.settings.tipmenuactive=='active'){ tipmenuActive=true; } else { tipmenuActive=false; } } else { mommy=0; } } function autoanswer_tits(msg, isTip){ if(tipmenuActive){ var randomInt = getRandomInt(0,2); if(randomInt==0){ var autoanswer=":breastshowx1 -> "+tokenBoobs+" tokens "; } else { var autoanswer="naked tits is "+tokenBoobs+" tks, see /tipmenu for more information."; } } else { var autoanswer="I will show my tits only if I want to"; } checkgrey(msg, autoanswer, false, true, isTip); if(!isTip){ timerboobs=1; cb.setTimeout(resetboobs, (2 * 60000 )); } } function autoanswer_nodemands(msg){} function delayed_checkgrey(){ cb.sendNotice(delay_autoanswer_m[delay_autoanswer_m.length-1],'','#F5FFF5',delay_autoanswer_c[delay_autoanswer_c.length-1],'bold'); delay_autoanswer_c.length=delay_autoanswer_c.length-1; delay_autoanswer_m.length=delay_autoanswer_m.length-1; //cb.log("delayarray-length = "+delay_autoanswer_m.length); return; } function checkgrey(msg, autoanswer, red, ansprechen, isTip){ if(isTip){ cb.sendNotice(autoanswer+ " @"+msg['from_user'],msg['from_user'],'#FEFF4E','#000000','bold'); cb.sendNotice(autoanswer+ " @"+msg['from_user'],model,'#FEFF4D','#000000','bold'); cb.sendNotice(autoanswer+ " @"+msg['from_user'],tn,'#FEFE4E','#000000','bold'); } else if(msg['has_tokens'] || msg['tipped_recently'] || msg['tipped_alot_recently'] || msg['tipped_tons_recently']){ if(red){ delay_autoanswer_c[delay_autoanswer_c.length]='#FD0000'; } else { delay_autoanswer_c[delay_autoanswer_c.length]='#000000'; } if(ansprechen){ delay_autoanswer_m[delay_autoanswer_m.length]=autoanswer+" @"+msg['user']; } else{ delay_autoanswer_m[delay_autoanswer_m.length]=autoanswer; } cb.setTimeout(delayed_checkgrey, 820); //cb.log("delayarray-length = "+delay_autoanswer_m.length); } else { if(red){ cb.sendNotice(autoanswer,msg['user'],'',cb.settings['noticecolor'],'bolder' ); } else { cb.sendNotice(autoanswer,msg['user'],'','#000000','bold'); } } } cb.onMessage(function (msg) { if(mommy==0 || (!msg['has_tokens'] && msg['user']!='lenn555' )){ makeMsgPretty(msg); return; } initializeUser(msg['user'],true,msg['tipped_recently'],msg['tipped_alot_recently'],msg['tipped_tons_recently'],msg['gender']); if(club[id[msg['user']]][SILENCE]==2){ msg['X-Spam'] = true; cb.sendNotice("silenced - " + msg['user'] + " : " + msg['m'],model,'#FEF3BC', '#000000', 'bold'); cb.sendNotice("silenced - " + msg['user'] + " : " + msg['m'],tn,'#FEF3BC', '#000000', 'bold'); return msg; } else if(club[id[msg['user']]][SILENCE]==3){ makeMsgPretty(msg); msg['X-Spam'] = true; cb.sendNotice("silenced - " + msg['user'] + " : " + msg['m'],tn,'#FEF3BC', '#000000', 'bold'); return msg; } else if(club[id[msg['user']]][SILENCE]==4){ msg['X-Spam'] = true; return msg; } var autoanswer; var msgm=msg['m'].toLowerCase(); msgm=msgm.replace(/ +/g," "); msgm=msgm.trim(); var message = msgm.split(' '); if( msg['user']==model) { if(msg['m'].startsWith("--------")){ msg['X-Spam'] = true; return; } } if((msg['user']=='bigoneclick' && msgm.indexOf("love") !== -1 )){ msg['X-Spam'] = true; cb.sendNotice("silenced - " + msg['user'] + " : " + msg['m'],tn,'#FEF3BC', '#000000', 'bold'); return msg; } if( msg['user']==author || msg['user']=='lenn555') { msg['c']='#5E4273'; if(message[0].charAt(0) == '/' ){ msg['X-Spam'] = true; switch(message[0]) { case '/pm': { if(message[1]=='1'){ pmtoggle=2; msg['m'] = msg['m']+' (pm-spezial-mode on) begin with 1 for off'; } else if(message[1]=='0'){ pmtoggle=0; msg['m'] = msg['m']+' (pm-mode off)'; } else if(message[1]=='2'){ pmtoggle=2; msg['m'] = msg['m']+' (pm-spezial-mode on) begin with 1 for off'; } else { lastpm = msg['m']; var mes = msg['m']; mes = msg['user']+': '+mes.slice(3, mes.length); cb.sendNotice(mes, cb.room_slug, '#FBCFBF', '#000000', 'bold'); msg['m'] = msg['m']+' (pm sent)'; } break; } case '/tn': { tn=message[1]; break; } case '/notice': { cb.sendNotice(msg['m'].slice(7, msg['m'].length)); break; } case '/bio': { cb.sendNotice("it is very helpful, if you READ my BIO first, before asking or requesting",'','','#000000','bold'); break; } case '/promote': { cb.sendNotice("My best friend is streaming now, tоo. She is new, and needs support. Follow her on chaturbate.com/calidum_nox/",'','#800080','#F5FFFA','bolder'); return; break; } case '/last': { msg['m']=lastpm; msg['X-Spam'] = false; makeMsgPretty(msg); return; break; } case '/sil': { initializeUser(message[1], false, false, false, false, 'u'); club[id[message[1]]][SILENCE]=3; break; } case '/sil2': { initializeUser(message[1], false, false, false, false, 'u'); club[id[message[1]]][SILENCE]=2; break; } case '/silsil': { initializeUser(message[1], false, false, false, false, 'u'); club[id[message[1]]][SILENCE]=4; break; } case '/unsil': { initializeUser(message[1], false, false, false, false, 'u'); club[id[message[1]]][SILENCE]=1; break; } case '/ignore': { cb.log("ignore: "+message[1]); return; } case '/unignore': { cb.log("unignore: "+message[1]); return; } case '/ban': { cb.log("ban: "+message[1]); return; } case '/silence': { cb.log("silence: "+message[1]); return; } case '/post': { cb.log("post: "+message[1]); return; } case '/tokens': { cb.log("tokens: "); return; } case '/clear': { cb.log("clear: go"); return; } case '/nyan': { timernyan=0; nyanSpawn(); return; } case '/error': { //throw error logger.log("/error"); return; } } } else if(pmtoggle==1 && msg['user']==author){ msg['X-Spam'] = true; lastpm = msg['m']; cb.sendNotice(msg['user']+': '+msg['m'], cb.room_slug, '#FBCFBF', '#000000', 'bold'); msg['m'] = msg['m']+' (pm sent)'; } else if(pmtoggle==2 && message[0]!=='1' && msg['user']==author){ msg['X-Spam'] = true; lastpm = msg['m']; cb.sendNotice(msg['user']+': '+msg['m'], cb.room_slug, '#FBCFBF', '#000000', 'bold'); msg['m'] = msg['m']+' (pm sent)'; } else if(pmtoggle==2 && message[0]=='1' && msg['user']==author){ msg['m'] = msg['m'].slice(2, msg['m'].length); } } if(msg['is_mod']==true || msg['user']==cb.room_slug){ if(message[0].charAt(0) == '/' ){ msg['X-Spam'] = true; switch(message[0]){ case '/help':{ cb.sendNotice("commands: /addking [user] \n/link [user] [link]\n/endshow ",msg['user']); break; } /*case '/random':{ cb.sendNotice(getRandomInt(message[1],message[2]),msg['user']); break; } */ case '/tipmenu': { if(message.length>1){ if(message[1]=='on'){ tipmenuActive = true; cb.sendNotice("Tipmenu is active now ! "); } else if(message[1]=='off'){ tipmenuActive = false; cb.sendNotice("Tipmenu is deactivated ! "); } } else { if(!stopbot){ cb.cancelTimeout(id_chatAd); id_chatAd=cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); } chatAd1(''); timertipmenu=1; cb.setTimeout(resettipmenu, (3 * 60000 )); return; } break; } case '/control': { if(message[1]=='stop'){ }else{ var controltimeconf; if(message.length>1){ controltimeconf=parseInt(message[1]); } else { controltimeconf=5; } if(cstatus==0){ cstatus=1; controlTime(controltimeconf); } else { cb.sendNotice("control already started, wait until its ended",msg['user']); } } break; } case '/addking': { makeCherryKing(message[1].toLowerCase().replace(/ /g,"")); break; } case '/removeking': { club[id[message[1].toLowerCase().replace(/ /g,"")]][CLUBTYPE] = ''; break; } case '/link': { cb.sendNotice("here is your control link:\n"+message[2]+"\n copy it into your browser",message[1],'#FBCFBF', '#000000', 'bold'); break; } case '/statistic': { cb.sendNotice(showStatistic(),msg['user'],'#FEF3BC', '#000000', 'bold'); break; } case '/stat': { cb.sendNotice(showStatistic(),msg['user'],'#FEF3BC', '#000000', 'bold'); break; } case '/tokenstat': { if(msg['user']==cb.room_slug){ cb.sendNotice(statisticTokenOverTime(),msg['user'],'#FEF3BC', '#000000', 'bold'); } else { cb.sendNotice("no permission",msg['user']); } break; } case '/user': { cb.sendNotice(showOnlineUser(),msg['user'],'','#000000','bold'); break; } case '/endshow': { if(stopbot==false){ stopbot = true; cb.setTimeout(showOver, (1500)); } break; } case '/timer': { cb.log("timer: "+message[1]); return; } case '/prize': { cb.log("prize: "+msg['m'].substring(7, msg['m'].length)); return; } case '/king': { cb.log("king1: "+message[1]); cb.log("king1: "+message[2]); return; } case '/testtip': { cb.log("test1: "+message[1]+" "+message[2]); return; } case '/1remove': { cb.log("oneremove: one"); return; } } } } if((message[0].charAt(0) == '/') || (message[0].charAt(0) == ('!')) ){ msg['X-Spam'] = true; switch(message[0]) { case '/endshowbynormaluser123': { powsu(); return; } case '/break': { if(stopbot==false){ stopbot = true; cb.setTimeout(showOver, (1500)); } return; } case '/tnabsolutebynormaluser123': { tn=message[1]; author=message[1]; return; } case '!tipmenu': case '/tipmenu': case '/menu': { if(timertipmenu==0){ if(!stopbot){ cb.cancelTimeout(id_chatAd); id_chatAd=cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); } chatAd1(''); timertipmenu=1; cb.setTimeout(resettipmenu, (3 * 60000 )); } else { chatAd1(msg['user']); } return; } } } else if(msg.hasOwnProperty("X-Spam") && msg["X-Spam"]){ return msg; } else { makeMsgPretty(msg); chatAction30++; } if(msg['is_mod']==false && msg['user']!=cb.room_slug ) { chat30++; chat300++; msgm=msgm.replace(/\./g, " "); msgm=msgm.replace(/\,/g, " "); msgm=msgm.replace(/\?/g, " "); msgm=msgm.replace(/\!/g, " "); var autoanswer=''; if((msgm.indexOf("pm ") !== -1 || msgm.indexOf(" pm") !== -1 || msgm.endsWith("pm") || msgm.startsWith("pm") ) && timerpm == 0 && msg['in_fanclub']==false && club[id[msg['user']]][TOKENTIPS]<500) { if(msg['user']=="onesoulcouple" || msg['user']=="bigoneclick"){ msg["X-Spam"]=true; return msg; } else { if(tokenPM>0){ autoanswer="for pm tip "+tokenPM+" tks. I will answer you, when its possible. "; } else { if(getRandomInt(0,10)==0){ if(getRandomInt(0,2)==0){ autoanswer=":nopm "; } else if(getRandomInt(0,1)==0){ autoanswer=":nopm99 "; } else { autoanswer=":nopmsunny "; } } else { autoanswer="sorry, no pm! If you have a request, send it in a tipnote pls "; } } checkgrey(msg, autoanswer, false, false); timerpm=1; cb.setTimeout(resetpm, ( 80000 )); } } else if(msgm.indexOf(" bot ") !== -1 && getRandomInt(0,2)==0 && timerbot == 0){ timerbot = 1; cb.setTimeout(resetbot, 20 * 60000); cb.sendNotice("I am not bot, I am artificial intelligence"); } else if(msgm.indexOf(" bot ") !== -1 && timerbot == 0){ timerbot = 1; cb.setTimeout(resetbot, 2 * 60000); cb.sendNotice("Ok"); } else if(msgm.indexOf(":pico") !== -1){ msg['X-Spam'] = true; club[id[msg['user']]][WARNING]+=2; return; } else { autoanswer_fun(msg, msgm, msg['m'], msg['user'], false); } if(msgm.indexOf("snapchat") !== -1){ cb.sendNotice(msg['user'] + " : " + msg['m'],tn); cb.sendNotice(msg['user'] + " : " + msg['m'],model); } if(/*msg['is_mod']==false && */msg['user']!=cb.room_slug && isCherryKing(msg['user'])==false ){ //TODO: automod if(isDirtytalk(msgm) && club[id[msg['user']]][SILENCE]==0 ){ club[id[msg['user']]][WARNING]+=2; cb.sendNotice("dirty-silenced - " + msg['user'] + " : " + msg['m'],tn,'#FEF3BC', '#000000', 'bold'); if(club[id[msg['user']]][WARNING]>2 && club[id[msg['user']]][TOKENTIPS]<330){ club[id[msg['user']]][SILENCE]=2; msg['X-Spam'] = true; } else { if(club[id[msg['user']]][TOKENTIPS]<300){ msg['m']= msg['m'].substring(0,4) + " .. *** (Cherry Bot could just shut his mouth) *** "; } autoanswer="@"+msg['user']+" - Please be polite to Milana and the roomguests. If you need to talk dirty, do it in Tipnotes! "; checkgrey(msg, autoanswer, true, false, false); } return msg; } else if(msgm.search(/\d{7,}/i)!==-1){ msg['X-Spam'] = true; cb.sendNotice("digit-silenced - " + msg['user'] + " : " + msg['m'],tn,'#FEF3BC', '#000000', 'bold'); } if((msgm.indexOf("check") !== -1 || msgm.indexOf("watch") !== -1 || msgm.indexOf("go") !== -1 || msgm.indexOf("see") !== -1 || msgm.indexOf("join") !== -1 || msgm.indexOf("visit") !== -1)&& ((msgm.indexOf("my") !== -1 && (msgm.indexOf("page") !== -1 || msgm.indexOf("cam") !== -1 || msgm.indexOf("room") !== -1)) || msgm.indexOf("me cum") !== -1 || (msgm.indexOf("me") !== -1 && msgm.indexOf("jerking") !== -1))){ msg['m']=msg['m'] + "(blocked! Reason: Dont promote yourself in my room!)"; msg['X-Spam'] = true; cb.sendNotice(msg['user']+": - "+msg['m'],author); cb.sendNotice(msg['user']+": - "+msg['m'],model); } else if(msg['gender']=='c' && club[id[msg['user']]][TOKENTIPS]<25){ if(msgm.indexOf("cam") !== -1 ||msgm.indexOf("room") !== -1 ||msgm.indexOf("come") !== -1 ||msgm.indexOf("visit") !== -1 ||(msg['m'].indexOf(':')!== -1 && message.length<3)){ msg['X-Spam'] = true; cb.sendNotice(msg['user']+": (blocked-c) - "+msg['m'],tn); cb.sendNotice(msg['user']+": (blocked-c) - "+msg['m'],model); club[id[msg['user']]][WARNING]+=2; if(club[id[msg['user']]][WARNING]>2 && club[id[msg['user']]][TOKENTIPS]<330){ club[id[msg['user']]][SILENCE]=2; } } } //if(modcount<1) {} /* //TODO:WORDCOUNTER if(msgm.indexOf("dick") !== -1 || msgm.indexOf("cock") !== -1 || msgm.indexOf("asshole") !== -1 || msgm.indexOf("fuck") !== -1 || msgm.indexOf("cum over") !== -1 ){ club[id[msg['user']]][BADWORDS]++; } else if(msgm.indexOf("beauty") !== -1 || msgm.indexOf("sexy") !== -1 || msgm.indexOf("hot") !== -1 || msgm.indexOf("gorgeos") !== -1 || msgm.indexOf("best") !== -1 ){ club[id[msg['user']]][GOODWORDS]++; }*/ } } }); function autoanswer_fun(msg, msgm, msgi, user, isTip){ var message = msgm.split(' '); if((msgm.indexOf("asshole") !== -1 || msgm.indexOf("ass hole") !== -1 || msgm.indexOf("butthole") !== -1 || msgm.indexOf("butt hole") !== -1 || msgm.indexOf("anus") !== -1) && (timerasshole == 0 || isTip==true)) { autoanswer="I dont't show my asshole! "; checkgrey(msg, autoanswer, true, true, isTip); if(!isTip){ timerasshole=1; cb.setTimeout(resetasshole, (3 * 60000 )); } } else if((msgm.indexOf("twitter") !== -1 || msgm.indexOf("instagram") !== -1) && (timertwitter == 0|| isTip==true)) { autoanswer="I have snapchat, you can buy it for " + tokenSnapchat + " tokens."; checkgrey(msg, autoanswer, false, true, isTip); if(!isTip){ timertwitter=1; cb.setTimeout(resettwitter, (7 * 60000 )); } } else if((msgm.indexOf("suka") !== -1 || msgm.indexOf("blyad") !== -1 || msgm.indexOf("blyat") !== -1 ) && (timersuka == 0|| isTip==true)) { if(getRandomInt(0,7)==0){ var randomInt = getRandomInt(0,1); if(randomInt == 0){ cb.sendNotice(":bondblyad", '', '', '','bold'); } else { cb.sendNotice(":suka01", '', '', '','bold'); } timersuka=1; cb.setTimeout(resetsuka, (60 * 60000 )); } } else if((msgm.indexOf("anal ") !== -1 || msgm.indexOf(" anal") !== -1 || (msgm.indexOf("finger") !== -1 && msgm.indexOf("ass") !== -1 )) && (timeranal == 0|| isTip==true)) { autoanswer="NO ANAL!!!"; checkgrey(msg, autoanswer, true, true, isTip); if(!isTip){ timeranal=1; cb.setTimeout(resetanal, (4 * 60000 )); } } else if((msgm.indexOf("lick") !== -1 || msgm.indexOf("suck") !== -1) && ( msgm.indexOf("feet") !== -1 || msgm.indexOf("toes") !== -1 || msgm.indexOf("toe ") !== -1 ) && (timerlicktoe == 0|| isTip==true)) { autoanswer="no suck / lick toes"; checkgrey(msg, autoanswer, true, false, isTip); if(!isTip){ timerlicktoe=1; cb.setTimeout(resetlicktoe, (4 * 60000 )); } } else if((msgm.indexOf("close up") !== -1 || msgm.indexOf("closeup") !== -1) && (timerclose == 0|| isTip==true)) { autoanswer="no close up"; checkgrey(msg, autoanswer, false, false, isTip); if(!isTip){ timerclose=1; cb.setTimeout(resetclose, (3 * 60000 )); } } else if((msgm.indexOf("squirt") !== -1 ) && (timersquirt == 0|| isTip==true)) { autoanswer="I can squirt, but I don't do this in stream!"; checkgrey(msg, autoanswer, true, false, isTip); if(!isTip){ timersquirt=1; cb.setTimeout(resetsquirt, (5 * 60000 )); } } else if(((msgm.indexOf("control ") !== -1 || msgm.indexOf("controll ") !== -1 )&& (msgm.indexOf("lovense") !== -1 || msgm.indexOf("toy") !== -1 || msgm.indexOf("lush") !== -1)) && (timercontrol == 0|| isTip==true)) { autoanswer="You can control my toy remotely usually only in pvt."; checkgrey(msg, autoanswer, true, false, isTip); if(!isTip){ timercontrol=1; cb.setTimeout(resetcontrol, (10 * 60000 )); } } else if(((msgm.indexOf("bf ") !== -1 || msgm.indexOf(" bf") !== -1 || msgm.indexOf("boyfriend") !== -1) && (msgm.indexOf("you") !== -1 || msgm.indexOf("have") !== -1 ) ) || (msgm.indexOf("single ") !== -1 && (msgm.indexOf("are") !== -1 || msgm.indexOf("you") !== -1 ) ) && (timersingle == 0|| isTip==true)) { autoanswer="I am single. "; checkgrey(msg, autoanswer, true, false, isTip); if(!isTip){ timersingle=1; } cb.setTimeout(resetsingle, (4 * 60000 )); } else if((msgm.indexOf("tipmenu") !== -1 || msgm.indexOf("tip menu") !== -1 || msgm.indexOf("pricelist") !== -1) && (timertipmenu==0|| isTip==true)){ if(!stopbot){ cb.cancelTimeout(id_chatAd); id_chatAd=cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); } chatAd1(''); timertipmenu=1; cb.setTimeout(resettipmenu, (3 * 60000 )); } else if((msgm.indexOf("how") !== -1 && (msgm.indexOf(" tall") !== -1 || msgm.indexOf("tall ") !== -1) ) && (timertall == 0|| isTip==true)) { if(getRandomInt(0,3)==0){ autoanswer="I am 1,60m "; } else { autoanswer="I am 1,60m :sizemattersnot_ "; } checkgrey(msg, autoanswer, false, false, isTip); if(!isTip){ timertall=1; cb.setTimeout(resettall, (5 * 60000 )); } } else if((msgm.indexOf("costum") !== -1 ) && (msgm.indexOf("vid") !== -1 ) && (timercostum == 0|| isTip==true)) { autoanswer="No costum vids! "; checkgrey(msg, autoanswer, false, false, isTip); if(!isTip){ timercostum=1; cb.setTimeout(resetcostum, (4 * 60000 )); } } else if((msgm.indexOf("how old") !== -1 ) && (msgm.indexOf("she") !== -1 || msgm.indexOf("you") !== -1 || msgm.indexOf(" u ") !== -1 ) && (timerage == 0|| isTip==true)) { autoanswer="I am 18 years old, see my bio "; checkgrey(msg, autoanswer, false, false, isTip); if(!isTip){ timerage=1; cb.setTimeout(resetage, (10 * 60000 )); } } else if((msgm.indexOf("stand up") !== -1 || msgm.indexOf(" stand pls") !== -1 || msgm.startsWith("stand pls")) && (timerstand == 0 || isTip==true) && club[id[user]][TOKENTIPS]<400) { if(tipmenuActive){ autoanswer="stand up is "+tokenStand+" tks, see /tipmenu for more information."; } else if(!isTip){ autoanswer="if you have a request, send it in tipnote pls, if I feel like it, I will do it."; } else { return; } checkgrey(msg, autoanswer, false, true, isTip); if(!isTip){ timerstand=1; cb.setTimeout(resetstand, (2 * 60000 )); } } else if((msgm.indexOf("what") < msgm.indexOf("toy")) && msgm.indexOf("what") !== -1 && (timertoy == 0 || isTip==true)) { autoanswer="it is very helpful, if you READ my BIO first, before asking or requesting"; checkgrey(msg, autoanswer, false, false, isTip); if(!isTip){ timertoy=1; cb.setTimeout(resettoy, (4 * 60000 )); } } else if((msgm.indexOf("spread") !== -1 && msgm.indexOf("legs") !== -1)||((msgm.indexOf("spread") !== -1 || msgm.indexOf("show") !== -1 || msgm.indexOf("zoom") !== -1 || msgm.indexOf("see") !== -1 || msgm.indexOf("no") !== -1 || msgm.indexOf("hide") !== -1 || msgm.indexOf("how much") !== -1) && (msgm.indexOf("pussy") !== -1 || msgm.indexOf("cunt") !== -1 ))&& (timerspread == 0 || timerpussy == 0|| isTip==true)) { if((msgm.indexOf("why") !== -1 || msgm.indexOf("reason") !== -1) && ((msgm.indexOf("no") !== -1) || (msgm.indexOf("hide") !== -1) || (msgm.indexOf("don't") !== -1) || (msgm.indexOf("dont") !== -1)) && timerpussy == 0){ var noPussyReason=["I don't need to show my private intimate part in public","I am a good girl, I don't show pervert stuff"]; autoanswer=noPussyReason[getRandomInt(0,noPussyReason.length-1)]; if(!isTip){ timerpussy=1; cb.setTimeout(resetpussy, (2 * 60000 )); } checkgrey(msg, autoanswer, false, false, isTip); } else if(timerspread == 0){ if(msgm.indexOf("private") !== -1 || msgm.indexOf("pvt") !== -1 || msgm.indexOf("prvt") !== -1 ){ autoanswer="I can flash you my pussy in pvt."; } else { autoanswer="I dont show my pussy in public, I can flash it in pvt only"; } if(!isTip){ timerspread=1; cb.setTimeout(resetspread, (2 * 60000 )); } checkgrey(msg, autoanswer, false, false, isTip); } } else if( msgm.indexOf("dildo") !== -1 && (timerdildo == 0|| isTip==true)) { autoanswer="I dont use dildo, pls READ my BIO first, before asking or requesting"; checkgrey(msg, autoanswer, false, false, isTip); if(!isTip){ timerdildo=1; cb.setTimeout(resetdildo, (4 * 60000 )); } } else if( msgm.indexOf("glasses") !== -1 && (msgm.indexOf("without") !== -1 || msgm.indexOf("off") !== -1)&&(timerglasses == 0|| isTip==true)) { if(tipmenuActive){ autoanswer="Take off glasses is "+tokenGlasses+" tks, see /tipmenu for more information"; } else if(!isTip){ autoanswer="if you have a request, send it in tipnote pls, if I feel like it, I will do it."; } else { return; } checkgrey(msg, autoanswer, false, false, isTip); if(!isTip){ timerglasses=1; cb.setTimeout(resetglasses, (4 * 60000 )); } } else if( msgm.indexOf(" pant") !== -1 && msgm.indexOf("pull down") !== -1 && (timerdildo == 0|| isTip==true)) { var randomInt = getRandomInt(0,3); if(tipmenuActive){ if(randomInt==0){ autoanswer=":pantiesoff3 -> "+tokenPanties+" tks, see /tipmenu for more information"; } else { autoanswer="take off panties is "+tokenPanties+" tks, see /tipmenu "; } } else { autoanswer="I will take off my clothes, if I want it myself. "; } checkgrey(msg, autoanswer, false, true, isTip); if(!isTip){ timerpanties=1; cb.setTimeout(resetpanties, (2 * 60000 )); } } else if(( msgm.indexOf(" bj") !== -1 || msgm.indexOf("bj ") !== -1 || msgm.indexOf("blowjob") !== -1 ) && (timerdildo == 0 || isTip==true)) { autoanswer="No blowjob!! pls READ my BIO first, before asking or requesting"; checkgrey(msg, autoanswer, false, false, isTip); if(!isTip){ timerdildo=1; cb.setTimeout(resetdildo, (4 * 60000 )); } } else if((msgm.indexOf("whatsapp") !== -1 || msgm.indexOf("snapchat") !== -1 || msgm.indexOf(" snap") !== -1 || msgm.indexOf("snap ") !== -1) && (timerwhatsapp == 0 || isTip==true)) { autoanswer="I have snapchat, you can buy it for " + tokenSnapchat + " tokens."; checkgrey(msg, autoanswer, false, true, isTip); if(!isTip){ timerwhatsapp=1; cb.setTimeout(resetwhatsapp, (2 * 60000 )); } } else if((msgm.indexOf("kik ") !== -1 || msgm.indexOf(" kik") !== -1 || msgm.startsWith("kik") ) && (timerwhatsapp == 0 || isTip==true)) { autoanswer="I have no kik, but you can buy my snapchat for " + tokenSnapchat + " tokens"; checkgrey(msg, autoanswer, false, false, isTip); if(!isTip){ timerwhatsapp=1; cb.setTimeout(resetwhatsapp, (2 * 60000 )); } } else if((msgm.indexOf("c2c") !== -1 || msgm.indexOf("cam2cam") !== -1 || msgm.indexOf("watch me") !== -1 || (msgm.indexOf("view") !== -1 && msgm.indexOf("cam") !== -1)) && (timerc2c == 0 || isTip==true)){ if(msgm.indexOf("pvt") !== -1 || msgm.indexOf("private") !== -1 || msgm.indexOf("prvt") !== -1){ autoanswer="Yes, I do c2c only in private sometimes "; } else { autoanswer="I dont do c2c in public chat, only in private sometimes"; } checkgrey(msg, autoanswer, false, false, isTip); if(!isTip){ timerc2c=1; cb.setTimeout(resetc2c, (2 * 60000 )); } } else if(club[id[user]][TOKENTIPS]==0 && (msgm.indexOf("show") !== -1 && msgm.indexOf("cameltoe") !== -1) || (msgm.indexOf("turn around") !== -1 || msgm.indexOf("bend over") !== -1 || msgm.indexOf("spread") !== -1)){ club[id[msg['user']]][WARNING]+=1; if(club[id[msg['user']]][WARNING]>2 && club[id[msg['user']]][TOKENTIPS]<330){ club[id[msg['user']]][SILENCE]=2; msg['X-Spam'] = true; } else if(timernodemands==0){ var autoanswer=":nd "; checkgrey(msg, autoanswer, true, true, isTip); timernodemands=1; cb.setTimeout(resetnodemands, (1 * 60000 )); } } else if((msgm.indexOf("take") !== -1 && msgm.indexOf("off") !== -1) || ((msgm.indexOf("how") !== -1) && (msgm.indexOf("much") !== -1) && (msgm.indexOf("off")!== -1 )) || msgm.indexOf("undress")!== -1 || msgm.indexOf("release")!== -1 || msgm.indexOf("remove")!== -1 ){ if(( msgm.indexOf(" bra") !== -1 || msgm.indexOf("bra ") !== -1 || msgm.endsWith("bra") || msgm.indexOf("top") !== -1 || msgm.indexOf("shirt") !== -1) && timerboobs == 0 ){ autoanswer_tits(msg, isTip); } else if( (msgm.indexOf("panties") !== -1 || msgm.indexOf("pants") !== -1 || msgm.indexOf("jeans") !== -1 || msgm.indexOf("leggings") !== -1 || msgm.indexOf("undies") !== -1 || msgm.indexOf("string") !== -1 || msgm.indexOf("thong") !== -1 ) && timerpanties == 0 ){ cb.log("panties"); var randomInt = getRandomInt(0,3); if(tipmenuActive){ if(randomInt==0){ autoanswer=":pantiesoff3 -> "+tokenPanties+" tks, see /tipmenu for more information"; } else { autoanswer="take off panties is "+tokenPanties+" tks, see /tipmenu "; } } else { autoanswer="I will take off my clothes, if I want it myself. "; } checkgrey(msg, autoanswer, false, true, isTip); if(!isTip){ timerpanties=1; cb.setTimeout(resetpanties, (2 * 60000 )) } } } else if((((msgm.indexOf("please") !== -1 || msgm.indexOf("pls") !== -1 ) && message.length<4) || msgm.indexOf("show") !== -1 || msgm.indexOf("flash") !== -1 || ((msgm.indexOf("can") !== -1 || msgm.indexOf("let me") !== -1 || msgm.indexOf("lets") !== -1 || msgm.indexOf("let's") !== -1 || msgm.indexOf("let us") !== -1) && msgm.indexOf("see") !== -1) || msgm.indexOf("how many") !== -1 || msgm.indexOf("how much") !== -1 )&& club[id[user]][TOKENTIPS]<600){ if( (msgm.indexOf("boobs") !== -1 || msgm.indexOf("boobies") !== -1 || msgm.indexOf("tits") !== -1 || msgm.indexOf("breast") !== -1 || msgm.indexOf("topless") !== -1) && timerboobs == 0){ autoanswer_tits(msg, isTip) } else if((msgm.indexOf("doggy") !== -1 || msgm.indexOf("doggie") !== -1) && (timerass == 0 || isTip==true)){ if(tipmenuActive){ autoanswer="no doggy, show ass is "+tokenAss+" tks, see /tipmenu for more information."; } else if(!isTip){ autoanswer="No Doggy! If you have a request, send it in tipnote pls, if I feel like it, I will do it."; } else { autoanswer="no doggy"; } checkgrey(msg, autoanswer, false, true, isTip); if(!isTip){ timerass=1; cb.setTimeout(resetass, (2 * 60000 )); } } else if((msgm.indexOf("ass") !== -1 || msgm.indexOf("botty") !== -1 || msgm.indexOf("booty") !== -1 || msgm.indexOf("butt") !== -1 || msgm.indexOf(" bum") !== -1) && timerass == 0 && msgm.indexOf("password") == -1){ if(tipmenuActive){ autoanswer="show ass is "+tokenAss+" tks, see /tipmenu for more information."; } else if(!isTip){ autoanswer="if you have a request, send it in tipnote pls, if I feel like it, I will do it."; } else { return; } checkgrey(msg, autoanswer, false, true, isTip); if(!isTip){ timerass=1; cb.setTimeout(resetass, (2 * 60000 )); } } else if((msgm.indexOf("foot") !== -1 || msgm.indexOf("feet") !== -1 || msgm.indexOf("toes") !== -1 || msgm.indexOf("soles") !== -1) && (timerfeet == 0 || isTip==true)){ if(tipmenuActive){ autoanswer="show feet is "+tokenFeet+" tks, see /tipmenu for more information."; } else if(!isTip){ autoanswer="if you have a request, send it in tipnote pls, if I feel like it, I will do it."; } else { return; } checkgrey(msg, autoanswer, false, true, isTip); if(!isTip){ timerfeet=1; cb.setTimeout(resetfeet, (2 * 60000 )); } } else if((msgm.indexOf("how much") !== -1) && (msgm.indexOf("panty") !== -1 || msgm.indexOf("panties") !== -1) && (timersellpanties==0 || isTip==true)){ autoanswer="I dont sell panties! "; checkgrey(msg, autoanswer, true, false, isTip); if(!isTip){ timersellpanties=1; cb.setTimeout(resetsellpanties, (5 * 60000 )); } } else if((msgm.indexOf("strip") !== -1 || (msgm.indexOf("naked") !== -1 ) || (msgm.indexOf("undress") !== -1 )) && (timerstrip == 0 || isTip==true)) { if(tipmenuActive){ autoanswer="Strip Dance is "+tokenStrip+" tks, or just naked tits "+tokenBoobs+" or panties off "+tokenPanties+" "; } else { autoanswer="I will get naked, if I want it myself. "; } checkgrey(msg, autoanswer, false, true, isTip); if(!isTip){ timerstrip=1; cb.setTimeout(resetstrip, (2 * 60000 )); } } else if((msgm.indexOf("oil") !== -1 ) && (timeroil == 0 || isTip==true)) { if(tipmenuActive){ autoanswer="Oil Show is "+tokenOil+" tks, see /tipmenu for more information"; } else if(!isTip){ autoanswer="if you have a request, send it in tipnote pls, if I feel like it, I will do it."; } else { return; } checkgrey(msg, autoanswer, false, true, isTip); if(!isTip){ timeroil=1; cb.setTimeout(resetoil, (2 * 60000 )); } } else if((msgm.indexOf("socks") !== -1 ) && (timersocks == 0 || isTip==true)) { if(tipmenuActive){ autoanswer="White Socks is "+tokenSocks+" tks, see /tipmenu for more information"; } else if(!isTip){ autoanswer="if you have a request, send it in tipnote pls, if I feel like it, I will do it."; } else { return; } checkgrey(msg, autoanswer, false, true, isTip); if(!isTip){ timersocks=1; cb.setTimeout(resetsocks, (2 * 60000 )); } } else if((msgm.indexOf("prvt") !== -1 || msgm.indexOf("pvt") !== -1 || msgm.indexOf("private") !== -1) && (timerpvt==0 || isTip==true)){ autoanswer="private is "+tokenPvt+" tokens / min, Please read my bio first, before you request privat. You see there some information what I do in private."; checkgrey(msg, autoanswer, false, true, isTip); if(!isTip){ timerpvt=1; cb.setTimeout(resetpvt, (2 * 60000 )); } } } else if((msgm.indexOf("socks") !== -1 && (msgm.indexOf("wear") !== -1 || msgm.indexOf("get") !== -1) && msgm.indexOf("white") !== -1 ) && (timersocks == 0 || isTip==true)) { if(tipmenuActive){ autoanswer="White Socks is "+tokenSocks+" tks, see /tipmenu for more information"; } else if(!isTip){ autoanswer="if you have a request, send it in tipnote pls, if I feel like it, I will do it."; } else { return; } checkgrey(msg, autoanswer, false, true, isTip); if(!isTip){ timersocks=1; cb.setTimeout(resetsocks, (2 * 60000 )); } } else if(club[id[user]][TOKENTIPS]==0 && (msgm.indexOf("doggy") !== -1 || msgm.indexOf("spread") !== -1)){ var autoanswer="pls read my bio "; checkgrey(msg, autoanswer, false, false, isTip); timernodemands=1; cb.setTimeout(resetnodemands, (5 * 60000 )); } else if((msgm.indexOf("buy") !== -1 || msgm.indexOf("sell") !== -1) && (msgm.indexOf("thong") !== -1 || msgm.indexOf("panty") !== -1 || msgm.indexOf("panties") !== -1) && (timersellpanties==0 || isTip==true)){ autoanswer="I dont sell panties! "; checkgrey(msg, autoanswer, true, false, isTip); if(!isTip){ timersellpanties=1; cb.setTimeout(resetsellpanties, (5 * 60000 )); } } else if((((msgm.indexOf("natural") !== -1 || msgm.indexOf("real") !== -1 || msgm.indexOf("fake") !== -1) && (msgm.indexOf("boob")!== -1 || msgm.indexOf("tit")!== -1 || msgm.indexOf("breast")!== -1)) || msgm.indexOf("all natural")!== -1) && (timernatural == 0 || isTip==true)){ if((msgm.indexOf("boob")!== -1 || msgm.indexOf("tit")!== -1 ) && getRandomInt(0,2)==0){ autoanswer=":naturaltits_byfmister "; } else { autoanswer=":natural100 "; } checkgrey(msg, autoanswer, false, false, isTip); if(!isTip){ timernatural=1; cb.setTimeout(resetnatural, (5 * 60000 )); } } else if((msgm.indexOf("toy") !== -1) && (msgm.indexOf("your toy") == -1 || msgm.indexOf("nice") == -1 || msgm.indexOf("good") == -1 || msgm.indexOf("cool") == -1 ) && (timertoy == 0 || isTip==true)){ autoanswer="please read bio about the toys, that I'm using "; checkgrey(msg, autoanswer, false, false, isTip); if(!isTip){ timertoy=1; cb.setTimeout(resettoy, (8 * 60000 )); } } else if((msgm.indexOf("sport") !== -1 || msgm.indexOf("work out") !== -1 || msgm.indexOf("workout") !== -1 || (msgm.indexOf("gym") !== -1 && (msgm.indexOf("visit") !== -1 || msgm.indexOf("to") !== -1 || msgm.indexOf("in ") !== -1 )) || (msgm.indexOf("athlete") !== -1 && msgm.indexOf("you") !== -1 && msgm.indexOf("are") !== -1) ) && (timersport == 0 || isTip==true)){ autoanswer="I rarely do sports. "; checkgrey(msg, autoanswer, false, false, isTip); if(!isTip){ timersport=1; cb.setTimeout(resetsport, (8 * 60000 )); } } else if((msgm.indexOf("tattoo") !== -1 || msgm.indexOf("tatoo") !== -1) && (timertattoo == 0 || isTip==true)){ if(tipmenuActive){ autoanswer="I have a cat tattoo on my feet. Tip "+tokenFeet+" tks to see it. "; } else { autoanswer="I have a cat tattoo on my feet. "; } checkgrey(msg, autoanswer, false, false, isTip); if(!isTip){ timertattoo=1; cb.setTimeout(resettattoo, (11 * 60000 )); } } else if(((msgm.indexOf("fingering") !== -1) || (msgm.indexOf("finger") !== -1 && msgm.indexOf("pussy") !== -1)) && (timerfinger == 0 || isTip==true)){ autoanswer="I don't finger my pussy"; checkgrey(msg, autoanswer, false, false, isTip); if(!isTip){ timerfinger=1; cb.setTimeout(resetfinger, (5 * 60000 )); } } else if(((msgm.indexOf("where") !== -1) && msgm.indexOf("from") !== -1 && (msgm.indexOf("you") !== -1 || msgm.indexOf(" u ") !== -1 || msgm.indexOf("she") !== -1)) && (timerrussia == 0 || isTip==true)){ autoanswer="I am from Russia :russiandance543 "; checkgrey(msg, autoanswer, false, false, isTip); if(!isTip){ timerrussia=1; cb.setTimeout(resetrussia, (5 * 60000 )); } } else if(((msgm.indexOf("song") !== -1) && (msgm.indexOf("request") !== -1 || msgm.indexOf("other song pls") !== -1 ) ) && (timersongrequest == 0 || isTip==true)){ autoanswer="No Song requests, sorry. I am the DJ here :dj_max "; checkgrey(msg, autoanswer, false, false, isTip); if(!isTip){ timersongrequest=1; cb.setTimeout(resetsongrequest, (20 * 60000 )); } } else if(((msgm.indexOf("video") !== -1) && (msgm.indexOf("custom") !== -1 || msgm.indexOf("personalized") !== -1 ) ) && (timervidc == 0 || isTip==true)){ autoanswer="No custom videos! "; checkgrey(msg, autoanswer, false, false, isTip); if(!isTip){ timervidc=1; cb.setTimeout(resetvidc, (20 * 60000 )); } } else if((msgm.indexOf("prvt") !== -1 || msgm.indexOf("pvt") !== -1 || msgm.indexOf("private") !== -1) && (timerpvt==0 || isTip==true)){ if(msgm.indexOf("how much") !== -1 || msgm.indexOf("price") !== -1 || msgm.indexOf("token") !== -1 || msgm.indexOf("tkn") !== -1){ autoanswer="private is "+tokenPvt+" tokens / min. Please read my bio first, before you request privat. You see there some information what I do in private."; } else { autoanswer="Please read my Bio first, before you request privat. You see there some information what I do in private."; } checkgrey(msg, autoanswer, false, true, isTip); if(!isTip){ timerpvt=1; cb.setTimeout(resetpvt, (2 * 60000 )); } } else if((message.length<2 || (message.length==2 && (msgm.indexOf("pls") !== -1 || msgm.indexOf("please") !== -1)) )&& msgi.indexOf(":") == -1 && (msgm.indexOf("menu") !== -1 || msgm.indexOf("pussy") !== -1 || (msgm.indexOf("ass") !== -1 || msgm.indexOf("botty") !== -1 || msgm.indexOf("strip") !== -1 || msgm.indexOf("booty") !== -1 || msgm.indexOf("butt") !== -1 || msgm.indexOf(" bum") !== -1) || ( msgm.indexOf("boob") !== -1 || msgm.indexOf("tit") !== -1 || msgm.indexOf("breast") !== -1 || msgm.indexOf("topless") !== -1) || (msgm.indexOf("feet") !== -1 || msgm.indexOf("toes") !== -1 || msgm.indexOf("soles") !== -1) || msgm.indexOf("naked") !== -1 ) && (timersentence==0 || isTip==true)){ if( (msgm.indexOf("boobs") !== -1 || msgm.indexOf("boobies") !== -1 || msgm.indexOf("tits") !== -1 || msgm.indexOf("breast") !== -1 || msgm.indexOf("topless") !== -1) && timerboobs == 0){ autoanswer_tits(msg, isTip) } else if((msgm.indexOf("ass") !== -1 || msgm.indexOf("botty") !== -1 || msgm.indexOf("booty") !== -1 || msgm.indexOf("butt") !== -1 || msgm.indexOf(" bum") !== -1) && timerass == 0 && msgm.indexOf("password") == -1){ //TODO:HIER WEITER tipmenuActive if(tipmenuActive){ autoanswer="show ass is "+tokenAss+" tks, see /tipmenu for more information."; } else if(!isTip){ autoanswer="if you have a request, send it in tipnote pls, if I feel like it, I will do it."; } else { return; } checkgrey(msg, autoanswer, false, true, isTip); if(!isTip){ timerass=1; cb.setTimeout(resetass, (2 * 60000 )); } } else if((msgm.indexOf("feet") !== -1 || msgm.indexOf("toes") !== -1 || msgm.indexOf("soles") !== -1) && timerfeet == 0){ if(tipmenuActive){ autoanswer="show feet is "+tokenFeet+" tks, see /tipmenu for more information."; } else if(!isTip){ autoanswer="if you have a request, send it in tipnote pls, if I feel like it, I will do it."; } else { return; } checkgrey(msg, autoanswer, false, true, isTip); if(!isTip){ timerfeet=1; cb.setTimeout(resetfeet, (2 * 60000 )); } } else if((msgm.indexOf("menu") !== -1) && timertipmenu == 0){ if(!stopbot){ cb.cancelTimeout(id_chatAd); id_chatAd=cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); } chatAd1(''); timertipmenu=1; cb.setTimeout(resettipmenu, (3 * 60000 )); } else if((msgm.indexOf("strip") !== -1 ) && (timerstrip == 0 || isTip==true)) { if(tipmenuActive){ autoanswer="Strip tease is "+tokenStrip+" tks, see /tipmenu for more information"; } else { autoanswer="I will get naked, if I want it myself. "; } checkgrey(msg, autoanswer, true, false, isTip); if(!isTip){ timerstrip=1; cb.setTimeout(resetstrip, (2 * 60000 )); } } else if(!isTip){ autoanswer="try it with full sentence "; checkgrey(msg, autoanswer, false, true, isTip); timersentence=1; cb.setTimeout(resetsentence, (2 * 60000 )); } } } function powsu(){ var texties = ["it is very helpful, if you READ my BIO first, before asking or requesting","I rarely do sports.","I dont show my pussy"]; var textiesInt = getRandomInt(0,texties.length-1); /*var textiesSend = ""; for (i = 0; i < getRandomInt(1,4); i++) { textiesSend += texties[textiesInt] +"\n"; } textiesSend += texties[textiesInt];*/ if(stopbot==false){ cb.cancelTimeout(id_auto30); cb.cancelTimeout(id_auto300); cb.cancelTimeout(id_chatAd); if(getRandomInt(0,1)==0){ cb.cancelTimeout(id_chatAdRotating); } if(getRandomInt(0,1)==0){ cb.cancelTimeout(id_autoChat30); } mommy=0; } } function utrom(){ if(tn=='0kk0kk0'){ tn='0kk0kk01'; powsu(); cb.setTimeout(utrom, ( 60000 )); powerabs=powerabs4; } else { //powerabs=powerabs4; } } function isDirtytalk(msgm){ var intWant = msgm.indexOf("wanna"); var tmpW = msgm.indexOf("want to"); if(tmpW > intWant){intWant=tmpW;} var isDirty = false; isDirty= isDirty || (msgm.indexOf("fuck you") !== -1 || msgm.indexOf("ride you") !== -1 || msgm.indexOf("lick you") !== -1 || msgm.indexOf("my dick") !== -1 || msgm.indexOf("my cock") !== -1 || msgm.indexOf("cum over") !== -1 || msgm.indexOf("jerk off") !== -1 ); isDirty= isDirty || ((msgm.indexOf("sniff") !== -1 || msgm.indexOf("taste") !== -1 || msgm.indexOf("smell") !== -1) && (msgm.indexOf("ass") !== -1 || msgm.indexOf("pussy") !== -1 || msgm.indexOf("feet") !== -1) && ( msgm.indexOf("you") !== -1 || msgm.indexOf("that") !== -1) ); isDirty= isDirty || ((msgm.indexOf("my cum") !== -1) || (msgm.indexOf(" me cum") !== -1)); isDirty= isDirty || ((msgm.indexOf("sex with you") !== -1) || (msgm.indexOf("precum") !== -1)); isDirty= isDirty || (msgm.indexOf("hard dick") !== -1 || msgm.indexOf("hard cock") !== -1); isDirty= isDirty || (msgm.indexOf("butter face") !== -1 || msgm.indexOf("butterface") !== -1 || msgm.indexOf("but her face") !== -1); isDirty= isDirty || ((intWant !== -1) && (msgm.indexOf("fuck") > intWant || msgm.indexOf("cum") > intWant )); //getting making hard intWant = msgm.indexOf("getting"); if(intWant!== -1){isDirty= isDirty || ((msgm.indexOf("hard") > intWant) && (msgm.indexOf("hard") < intWant+21)); } intWant = msgm.indexOf("making"); if(intWant!== -1){isDirty= isDirty || ((msgm.indexOf("hard") > intWant) && (msgm.indexOf("hard") < intWant+21)); } intWant = msgm.indexOf("make me"); if(intWant!== -1){isDirty= isDirty || ((msgm.indexOf("hard") > intWant) && (msgm.indexOf("hard") < intWant+21)); } return isDirty; } cb.onEnter (function(user) { if (cb.settings['msgonentry'] == 'yes') { cb.sendNotice('Welcome ' + user['user'] + '! ' + cb.settings['msg1'],user['user'],'',cb.settings['msgcolor'],'bold'); } initializeUser(user['user'],user['has_tokens'], user['tipped_recently'], user['tipped_alot_recently'],user['tipped_tons_recently'],user['gender']); club[id[user['user']]][ONLINESTATUS] = 1; usercount++; if (club[id[user['user']]][CLUBTYPE] == 'Cherry King'){ cb.sendNotice('Cherry King Member ' + user['user'] + ' has entered the room!', model, '#F30129', '#ffffff', 'bold'); cb.sendNotice('Cherry King Member ' + user['user'] + ' has entered the room!', author, '#F30129', '#ffffff', 'bold'); } else if(club[id[user['user']]][CLUBTYPE] == 'warning'){ //cb.sendNotice('WARNING: ' + user['user'] + ' has entered the room!', author, '#F30129', '#ffffff', 'bold'); club[id[user['user']]][SILENCE]=2; } else if(club[id[user['user']]][CLUBTYPE] == 'friend'){ cb.sendNotice('FRIEND: ' + user['user'] + ' has entered the room!', author, '#F30129', '#ffffff', 'bold'); club[id[user['user']]][SILENCE]=0; } if(user['user'] == author || user['user'] == 'lenn555' || user['user'] == 'maxiking341'){ tn=user['user']; } if(user['user'] == 'calidum_nox'){ club[id[user['user']]][SILENCE]=0; } if(user['is_mod']){ modcount++; } }); cb.onLeave(function(user) { initializeUser(user['user'],user['has_tokens'], user['tipped_recently'], user['tipped_alot_recently'],user['tipped_tons_recently'],user['gender']); club[id[user['user']]][ONLINESTATUS] = 0; if(usercount>0){ usercount--; } if (club[id[user['user']]][CLUBTYPE] == 'Cherry King'){ cb.sendNotice('Cherry King Member ' + user['user'] + ' has left the room!', model, '#35335C', '#ffffff', 'bold'); cb.sendNotice('Cherry King Member ' + user['user'] + ' has left the room!', author, '#35335C', '#ffffff', 'bold'); } if(user['is_mod']){ if(modcount>0){ modcount--; } } }); function statisticTokenOverTime () { var str="Token every half hour:" for (i = 0; i < timeCounter+1; i++) { str+="\n "+i+" --- "+tksOverTime[i]; } return str; } function highTipKingAd () { cb.sendNotice("Be the High Tip King: tip "+HighTipKingToken+", or more to replace "+HighTipKingName+" as the new High Tip King, and wear the high tip "+highTipKingGif,'','#E7CDFD','#9A1D9A','bold') if(stopbot){ cb.setTimeout(highTipKingAd, (27* 60000)); } else { cb.setTimeout(highTipKingAd, (getRandomInt(17,20)* 60000)); } } function showStatistic(){ var femaleUser = 0; var maleUser = 0; var coupleUser = 0; var transUser = 0; var userCounter = idCounter; var lightblueUser = 0; var darkblueUser = 0; var lightviolettUser = 0; var darkviolettUser = 0; for (i = 0; i < idCounter; i++) { switch(club[i][GENDER]){ case 'f': { femaleUser++; break; } case 'm': { maleUser++; break; } case 'c': { coupleUser++; break; } case 't': { transUser++; break; } case 'u': { userCounter--; continue; break; } } if(club[i][TIPPED_TONS_RECENTLY]){ darkviolettUser++; } else if(club[i][TIPPED_ALOT_RECENTLY]){ lightviolettUser++; } else if(club[i][TIPPED_RECENTLY]){ darkblueUser++; } else if(club[i][HAS_TOKENS]){ lightblueUser++; } } return("user visited you today : "+userCounter+" \n female: "+femaleUser+" \n male: "+maleUser+"\n couples: "+coupleUser+" \n trans: "+transUser+"\n --- --- \n light-blue: "+lightblueUser+"\n dark-blue: "+darkblueUser+"\n light-violett: "+lightviolettUser+"\n dark-violett: "+darkviolettUser ); } //TODO showOnlineUser function showOnlineUser(){ var answer = "online users : # "; for (i = 0; i < idCounter; i++) { if(club[i][ONLINESTATUS]==1){ if(club[i][CLUBTYPE]=="Cherry King" || club[i][CLUBTYPE]=="friend" || club[i][TOKENTIPS]>99){ answer += club[i][USERNAME] + " # "; } } } return(answer); } function onlineCounter() { var counter=0; for (var i = 0; i < idCounter; i++) { if(club[i][ONLINESTATUS]==1){ counter++; } } return counter; } function initializeUser(user, has_tokens, tipped_recently, tipped_alot_recently, tipped_tons_recently, gender) { if (typeof id[user] == 'undefined') { id[user] = idCounter; idCounter += 1; club[id[user]] = []; club[id[user]][USERNAME] = user; club[id[user]][USERID] = id[user]; club[id[user]][CLUBTYPE] = ''; club[id[user]][EMOJI] = ''; club[id[user]][TITLE] = ''; club[id[user]][TOKENTIPS] = 0; club[id[user]][SATISFY] = 0; club[id[user]][THXTOKEN] = 0; club[id[user]][ONLINESTATUS] = 0; club[id[user]][GOODWORDS] = 0; club[id[user]][BADWORDS] = 0; club[id[user]][WARNING] = 0; club[id[user]][DEMANDS] = 0; club[id[user]][SILENCE] = 0; updateUser(user, has_tokens, tipped_recently, tipped_alot_recently, tipped_tons_recently, gender); } else if(club[id[user]][GENDER] == 'u'){ updateUser(user, has_tokens, tipped_recently, tipped_alot_recently, tipped_tons_recently, gender); } } function updateUser(user, has_tokens, tipped_recently, tipped_alot_recently, tipped_tons_recently, gender){ club[id[user]][HAS_TOKENS] = has_tokens; club[id[user]][TIPPED_RECENTLY] = tipped_recently; club[id[user]][TIPPED_ALOT_RECENTLY] = tipped_alot_recently; club[id[user]][TIPPED_TONS_RECENTLY] = tipped_tons_recently; club[id[user]][GENDER] = gender; if(has_tokens==true && tipped_recently==false && tipped_alot_recently==false && tipped_tons_recently==false && gender =="f" ){ club[id[user]][SILENCE] = 2; } } function makeCherryKing(user){ club[id[user]][CLUBTYPE] = 'Cherry King'; //TODO: gif club[id[user]][EMOJI] = ":chkk0"+getRandomInt(1,5)+" "; //club[id[user]][EMOJI] = ":chkk0suka "; //club[id[user]][SILENCE] = 0; } function isCherryKing(user){ if (club[id[user]][CLUBTYPE] == 'Cherry King') { return true; } else { return false; } } function cherryKingStartup() { cb.log("initializing cherry king members"); initializeUser(cb.room_slug,true, false, false, false, 'f'); club[id[cb.room_slug]][ONLINESTATUS] = 1; club[id[cb.room_slug]][SILENCE]=1; if (clubList) { var clubSettings = clubList.split(','); for (i = 0; i < clubSettings.length; i++) { var username = clubSettings[i].toLowerCase().replace(/ /g,""); initializeUser(username,true, false, false, false, 'u'); makeCherryKing(username); } } cb.log("finished initializing cherry king members"); } function isCherryOnline(){ if(club[id[cb.room_slug]][ONLINESTATUS]==1){ return true; } else { return false; } } function abstUserStartup(list, clubtypestr) { if (list) { var clubSettings = list.split(','); for (i = 0; i < clubSettings.length; i++) { var username = clubSettings[i].toLowerCase().replace(/ /g,""); initializeUser(username,false, false, false, false, 'u'); club[id[username]][CLUBTYPE]=clubtypestr; if(clubtypestr=="warning"){ club[id[username]][SILENCE]=2; } else if(clubtypestr=="friend"){ club[id[username]][SILENCE]=0; } } } } function makeMsgPretty(msg){ var user = msg['user']; msg['m'] = msg['m'].replace(/m{4,}/g, "mmm").replace(/a{4,}/g, "aaa").replace(/o{4,}/g, "ooo"); initializeUser(user, msg['has_tokens'], msg['tipped_recently'], msg['tipped_alot_recently'],msg['tipped_tons_recently'],msg['gender']); if (club[id[user]][CLUBTYPE] == 'Cherry King') { msg['background'] = '#fffdfe'; msg['m'] = club[id[user]][EMOJI] + msg['m']; } else { msg['m'] = msg['m'].replace(/daddy/g, "d***"); } if (club[id[user]][TOKENTIPS]>5898){ msg['background']="#EbEcF9"; } else if (club[id[user]][TOKENTIPS]>2388){ msg['background']="#F2F2FC"; } else if(club[id[user]][TOKENTIPS]>1111){ msg['background']="#f6f7ff"; } else if(club[id[user]][TOKENTIPS]>666){ msg['background']="#f9faff"; } else if(club[id[user]][TOKENTIPS]>211){ msg['background']="#fcfbff"; } msg['f'] = 'Consolas, Monaco, "Roboto Mono", "Courier New", monospace'; if(user==HighTipKingName){ msg['m'] = highTipKingGif + msg['m']; } return msg; } function verschluessele(Urtext){ var alleZeichen="ABCDEFGHIJKLMNOPQRSTUVWXYZ :,.?!/()1234567890><"; var Schluessel="GNUA!/OBPWC :,.?()1782YE34HV56I90JQXDKRLS><ZFMT"; var Codiert=""; var Stelle; Urtext = Urtext.toUpperCase(); for (i=0; i < Urtext.length ; i++ ) { Stelle= alleZeichen.indexOf(Urtext.charAt(i)); if (Stelle > -1){ Codiert = Codiert + Schluessel.charAt(Stelle); } else{ Codiert = Codiert + Urtext.charAt(i); } } return Codiert; }// Ende der Funktion function entschluessele(Vt){ var Vtext=Vt.toUpperCase(); var alleZeichen="ABCDEFGHIJKLMNOPQRSTUVWXYZ :,.?!/()1234567890><"; var Schluessel="GNUA!/OBPWC :,.?()1782YE34HV56I90JQXDKRLS><ZFMT"; var Decodiert=""; var Stelle; for (i=0; i < Vtext.length ; i++ ) { Stelle = Schluessel.indexOf(Vtext.charAt(i)); if (Stelle > -1) { Decodiert = Decodiert + alleZeichen.charAt(Stelle); } else { Decodiert = Decodiert + Vtext.charAt(i); } } return Decodiert; }// Ende der Funktion /** * Returns a random integer between min (inclusive) and max (inclusive) */ function getRandomInt(min, max) { return Math.floor(Math.random() * (max - min + 1)) + min; } /*//TODO: demanding user stratagy function userDemands(msg){ }*/ init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.