Bots Home
|
Create an App
aaa
Author:
modnikona3
Description
Source Code
Launch Bot
Current Users
Created by:
Modnikona3
//http://www.javascriptobfuscator.com/Javascript-Obfuscator.aspx //http://www.hightools.net/javascript-encrypter.php // / modnikona xocetiyay puvem lawiyuk var dashLine = "\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665\u2665"; var roomHost = cb.room_slug; var bsTipper = ""; var bsTip = 0; var kingTipper = ""; var minOn = 0; var minOnAdded = 0; var viewersTimeOn = {}; var totalTokens = {}; var totalTokensTotal = {}; var totalTokensRecord = 0; var totalTokensRecordAdded = 0; var wallLove = {}; var contact = ["silicona1986","bigdong7799","tedted5555","doczak2","dusty487","whatupjoey","aguitarmetal","lovetheshapebaby","bumzlove","calicreaming","rex36","pw1986","steelerfanatik6","timlo2"]; var silencedUsers = ["carlos69420","jiddenlym", "malleballe", "quimbuster", "dongganguangbo", "geoffreydd8", "prettymuchafreak", "evrbenluvd", "smuggler212", "pagoda11", "iloveimplants", "karinff4", "thedonjuancapistrano", "dleblanc121592", "suscyrm71", "georgelbc39", "rigofosio", "elperro53", "rogerd69", "david_3", "mike_doe", "snason","akikis","playboyscout", "alpineseven", "guideelk", "lostsouldier", "warno221bb1", "nydaveh","samosmitho", "drafian", "jizze1", "amareus", "69pleaseme69", "pk289177", "chainlink77", "hammerbolter", "itchydicklj", "new_fitnessguru", "everythingwillbefineandok25", "sxcman99", "disabledguyschat", "conor5499", "blackking10", "sandy12340", "adoreevalentine","kingpin702", "mindblown12", "sukmydyk69", "gdante14co", "getblue", "unimpressed_lemon","hotjoe2000","thedude96996","kellynumberfan","plezur4us","coolfun81","royaldaddy","bplayer47","h0110wxp01nt","drvodka7787","sadoman84","razzy036","tanhoseluvr2","octane101","lonestar1786","jasmilne","mfarzam98","rofradkin","fredomassyou","cobra6996","shadowpwn191","ecdysiastic","jhard0596","johnnyxxboy","anodex","ilovecandyd","bimma328","beelz666","chance7265","hammerbolter","siedem","hazzy1234","eyehawk","tedx555","matthias1014","andrewrod8990","shyurfknbutifl","squirtlvr1075","bigmike2627","blueyed9893","dr0gaz","merlinmagic4u","magicpipe11210","antohx","johnnyroach420","bigdaddyj78"]; var lover = ["username"]; var masters = ["puvem"]; var grandDukes = ["username"]; var dukes = ["pancindancin"]; var counts = ["lawiyuk"]; var barons = ["xocetiyay"]; var heroes = ["amareus","avest93","bdodd1840","beonetrustnoone","blakeopenminded","boobs_r_us","boyish01","brock2292","canadadrydog","chessman1993","cloudsolo","currycrew9","doczak2","erix702","fuckbunny99","goldenguy5","jamesscape2","jguti283","mekinik","mikeb11940","pitbull5150747","playwithme1900","sabertooth12","somecanadianfuk","utherx94","tvdb1996","xero03","zartanxdxd"]; var badboys = ["crl0001","drafian","infamousbamf22","jewel1147","manferd_84","patrick673","pw1986","rustyscotty","sablaireau","winegum2556"]; var loves = ["42nhornym","adriandelfir","al3k555","allmightymaad","alromahy10","appenta","atreyu96721","aurillian","ba17ey","bdodd1840","bigdr1","blueghost777","bosoxroker922","canadianboy563","collin26","charles2588","chood420","colindfv","da1littlefoot","daddi6969","darkdevi69","deablo499","demonwatchingu","djref","dodge250","edycerda","eposan","fireithor","flylice0013","fortex360","gregster7474","gssm21","hardfromtheburg","hawkeye0618","heya106","highspeed570","hopsinoko","humax922","icemoon6","iwillfuckyourface","jamiejims","jdtractor9400t","jokerswild559","joyco66","jowens90","jumbocat","kambing79","kamiii00","kent85000","khan324","kingsirlicksalot","klawiz","leothunder","lim102702","lucroyisgone","luce929292","maddipper41","magicpipe11210","matthias1014","matty83","mattyp83","mbcamb98","mean_daddy","mnincs","monilator18","nhacker7","noahpace98","numx","olyguy22","p0rtgaz","pendragon_01","poblo19","prestonroks","reggielandry","rellimd15","robinspaan1995","rokit86","rotary8","ruckustx","shapes01","shiner44","sinister1522","siouxper","sircaz","sloan42","smexyoda","sminth","skying83","snowie994","strikr1423","tallslenderman","tangodown33","tedted5555","tedx555","tekett","thedudeabides_jim","timlo2","unrealdelicious","venuslecker69","xxxer69","zedonk","votp6","darkdevi69"]; var guessers = ["waywz4650","jrlw","johnboy316","kingmauri","rrragge","vadencross","hotmelvin69","vvwheelac124","thexrayguy","xrobland21x","goat61","juventino16","ayetikitiki","playwithme1900","doczak2","johnybravo50","ynwachiswick","hotshot54455","penguinguy99","riddler702","minipi84","jj___mf","fujinraijin","ghetto2005","buffalonionlove12","dogsnotcats","xxgrimmxx","grahamd83","hart6969","numx","horsancho","dubwubgun","silentbater","bigbootylover5759","ec_salient","grahamd1983","johntx0022","carpenoctum2008","doithard3","truelies44","rvs65","daemon1194","brock2292","tripptx","smoothswingin","chgdemorush","stevo19tuby","jhard0596","wozza28","cchristopher480","tylerxxxx2","booboo_bear","vashon96","youtouchmelalala","tayman62","lance71rr","delgoth58","obsidianknight","chgdemorush","luigibear","snowie994","entropy402","greg19382","graves4304","bradley_2017","mattyp1083","rescuer636","quickfix90254","luigibear","58yearsold","riderage","mmmmmmmmm321","justforgoodtimes","bim0073","kjesse12","sin1904","jordancg1","bigblack1756","fabs85","travw89","dstruz1129","scarface0331","blacksheep132","jc18101","monilator18","andrewrod8990","tweekamouse","kewlnstuff","lowbrow619","tehmv","chevystud3333","classicrockguy7","almnd11","rob198410","longcock350","ms1712","snowlaps","grumfystache","billlea5","ippondatara","blueyed9893","mroface","dusty487","lovetheshapebaby","patch_king","tim65957","perilious","joey8915588","magicpipe11210","natedog_616","darkdevi69","edasich","loshuesos","magicpipe11210","natedog_616","darkdevi69","macben27","eskim019","jrlw","rckstarninja","twicemad","usaf16","wolfjobe","bandobsweet4u","herbiefan69","eagle723","spartaaan","bdodd1840","alanb40","btrain1319","hooder87","atroav","rattus08","keldaran","blizzard0071","dlandon33","infernal1","darksaidan","chrisknows","zachattackpardy","speru97","cocos38","djbobhd1","xrobland22x","jedidavid","billybob6668","wolfman105","shaallow0","dudeskywalker","peakatchyou","spartyon1987","koe518","markhtid","anton0827","ari_vanderwheel"]; var tipped_tons_recently = []; var darkPurple = 0; var darkPurpleHour = []; var mods = []; var all = []; var done = false; var leaderBoard = []; var leaderMulti = 0; leaderBoard[0] = ""; leaderBoard[1] = ""; leaderBoard[2] = ""; var tokensStats = 0; var tokensStatsHour = []; var sirsHour = []; var notificationsColorArray; var badWordsSettings; var badWordsSettingsCounter = {}; var badWordsCounter = 0; var notificationArray; var notificationArrayCount = 0; var t1Count = 0; var userTokensOnline = 0; var totalUserOnline = 0; var utPerTenMin = []; var otPerTenMin = []; var chatOff = false; var highestTipperUser; var highestTipperMin; var color; var lastNotification; var foreground = '#FFFFFF'; var background = '#0629AC'; var thanks1 = [":clap",":cheerleader",":cheerleader2000",":yess1",":clapping"]; var thanks15 = [":snoop-nod",":HandsUp",":YES",":yess0",":YESS",":claprow",":Cheers",":jimcarreyyeahh",": :OhgodYes",":ohYess",":YeeS",":yEss",":yeSS",":yESS",":yesUp",":YesYesYeS",":YeSYeS",":yesyesyesyes",":yeehaw",":YESS",":yesYeS",":woohoo",":mcheer"]; var thanks100 = [":bravoss", ":awesomee", ":perfectt", ":clappinghobbits",":hellyes-cc",":nod-cc",":FuckYeaH",":HellYeahh",":hattip-cc",":ThIS",":Yesthousandtimes",":yesYeS",":omgg5",":YESS",":yesss111",":speechless",":speechless3",":wtfs", ":pinguinbomb",":wowcat",":wow7",":brocat",":woohoobanana",":cheerleader001 yes!",":woohoo1",":woohoo69",":woohoo0", ":TacklehugG",":OhMY",":OMGOMGOMG",":awesome6",":applause2",":mygod-cc",":wowx"]; var thanks500 = [":AweSomE",":Jeanclaudevandammme",":dies-",":faint1077",":holyshit-",":awesometip012",":intensetip",":youdaman-",":youdabomb",":boom-cc",":wow",":bowwave"]; var compliments = ["I love how you :tittybounce",":heartsballoons",":hotsign","oh emma you are :sogorgeous",":BeHaVe you are being so hot",":niceboobs :yes",":wowdude001",":addictedd",":damnsexyy",":warning22",":incredible",":Incredible951753",":teasing",":yoursmile",":amazingcat2",":droolingloveyes",":Joyyy",":grabby",":sogood",":imhome <-----every guy when Emma is online!",":blowkiss Emma","unreal woman :blush","beautiful neck, beautiful, smile, beautiful everything","mmmm so sexy","what a perspective","omg that angle is :sogood","nice ass and nice breasts","oh my good.....you are breathtaking",":z-ohmibodyellowwall2",":z-dance_love3",":z-alllove1 love it",":ya_ya omg so hot",":sohot_1","the top is going to explode",":gorgeous4"]; var complimentsCount = 0; var hello = ["Hi :hat",":hello2","Hi :hat13","Hi :hat8","Hi :hat4","Hi :hat7","Hi :hat16","Hi :hat12"]; var helloCount = 0; var agree = [":agreed3",":indeed1",":agreed1",":agreeing",":ciagree",":fact-cc",":paigethatsright",""]; var agreeCount = 0; var ass = [":thatass97",":thatassawesome",":thatass111",":thatasss",":thatassthothatass",":thatass1",":-perfectass1",":bestassever5",":bestviewever09 :drool"]; var assCount = 0; var bye = [":gday_mate",":cya",":bye",":byeeee",":cya1"]; var byeCount = 0; var bro = [":brofist4",":brofist37",":brohugg",":brofistZZ_dance",":brofistZZ_tothemoon",":BROFIST",]; var broCount = 0; var teamwork = [":teamwork teaming up is so great :D",":Teamwork ",":teamwork8",":teamworktg perfect timing",":teamworklol it's so... :drool","",""]; var teamworkCount = 0; var wall = [":MachineGun",":shoot",":shootem",":shootcb",":shootinggun","that was a well organized attack!"]; var wallCount = 0; var lucky = ["is going for it!","I bet it was very close to it","is after you Emma","getting closer number by number...","","","",""] var last_1; var last_15; var last_100; var last_500; var mmm = [":mmhsu","mmmmh","mmmh","mmmmmmmmmh"]; var o = [":omgsu1"]; var se = [":sopp21 so sexy"]; var ta = [":sopp17 so good on the table","table mode mmmmh so sexy","the table is so mmmh "]; var no = [":sopp10 bad boy"]; var hi = [":sopp11 hi",":sopt8 hello",":sopp5 hey",":sopp11 hello",":sopp11 hey",":sopt8 hi",":sopt8 hey",":sopp5 hi",":sopp5 hello",":hisu"]; var bye = ["Have a nice day/night :kisses4u"]; var ge = [":congrathy my new guesser :kisses4u"]; var sir = [":kiss welcome back my sir"]; var togo = ["It's time for me to retire to my chambers :byebye :iloveu :ghug"];//it was so much fun guys, it is time for me to go var yes = [":e-21"]; var lol = [":e-18",":e-20",":e-22",":e-23"]; var be = [":sopp16 from behind so sexy",":sopp18 from behind mmmh",":doggyfuck11 I like it better from behind",":yas_frombehind so good",":yas_dressoff mmmh",":yas_takeme this way... from behind mmmh",":yas_pantiesoff so good"]; var t1 = [":e-6",":e-1 mmmh",":e-8 you......",":e-5 so sexy","mmmh yessss","build me guys","build me","go hard","i am so horny today","i mean I am really really horny","lets cum","it's horny oh my...","so lets cum guys","lets cum together","you are almost there","go harder make me squirt","yeah the finger goes inside me as well","I cum harder when I am NAKED","but horny as well","but I need it Hard","I really really want to cum","shhh you need to keep this between us","go go I am close","I am close to","I really really need to cum today...","It is so weeet","Does anyone help me to cum?","Will anybody help me to cum?","I want to cum so hard","are you ready to make me cum?","let\'s make sweet love","go go go","my clit needs buzzing","can you please help me to CUM HARD?","I seriously need a HARD CUM XXX!","finish me","I wish to cum HARD .....","finish me lovers","hard lvl","one more pls","hard hit?","I am almost there","I need a hard hit","finish meeee","don\'t stop pls you got me close...","don\'t stop pls you got me closeeeee!!","keep it going mmmh","your tease drives me almost there..","get me wet","sooo wet","let\'s get wet mmmh","we need to make wet land ","can you make me squirt?","soooo wet that's what I want","if you stop I lose my build....","I want it again pls",":cautionwet","mmmh","mmmmmmmmmh","sooo weeet that\'s what I would like","you will make make me cum if you keep that up","it\'s getting very humid","take me all the way mmmmh","I\'m hot","I\'m horny","lick me all over","I\'m dripping for you","so ready to cum on you","I want to cum for you","you got me close","keep licking that clit for me","so horny","I crave for more now","I need to cum","fast and hard that\'s how I need it","I need some true love ...mmmmh","get me happy ... make me CUM","omg I feel it close","mmmh it is getting hot in here so take off your clothes","build me hard","keep licking that clit for me","wet spot on my panty","fuckkkkkkkkkkkkkkk me fast and hard pls pls pls","mmmh that tease drives me so wild","gogogo I am ready now","do you like my heart?","it is so hot between myyyyyyyyy...","don't allow me to relax","I am so horny now"]; var t1newOnes = []; var newOnesNo = ["1","!s","!r","1s","1r","o","m","se","ta","no","sir","hi","bye","ge","togo","yes","lol","win","be","15","100","500","1000","wb","69","169","27","28"]; var t15 = [":sopt15 so good",":sopt21 so mmmh ",":sopt37 mmmmmmh",":sopt22 you made me so mmmmh",":yas_hello this is the way I like to... Fornicate",":e-4 this way make me feel so...",":e-9 I like this rythm",":sopt7 I like this way",":yas_biteme you are touching me... so mmh",":sopt38 I like this pattern",":eroticakiss03 mmmh I would like to copulate like this...","You're going to put me over the edge...","i was close","love it fast"] var t100 = [":sopt27 mmmh so... mmmh",":sopt5 so sexy",":sopt35 this pattern mmmh",":sopt6 mmmh I like this rythm ",":sopt32 Just like that!",":sopt36 Just like that!",":sopt39 you enter so goooooodd....",":yas_hello :yas_takeme",":sopt7 this is the way I like to.. copulate",":eroticapassion01","You feel so good on mmmh me","You're going to put me over the edge..","It\'s throbbinggg","I\'m so wet"]; var t500 = ["these vibs made me sooo mmmh :sopt20","this is the way I like to.. copulate","you enter so hard :omgred","you made me so horny and ready.... :sopt36","omg those vibs ... :sopt35",":sopt38 you enter so goooooodd....","mmmh so hard you enter so goooooodd....",":eroticapassion01",":doggyfuck11","omg","i feel big cum"]; var t1000 = ["you enter so hard :yas-lover2","this pattern mmmh take me :yas_pantiesoff","omg it is shaking mmmh with those vibs :sopt32"," :eroticapassion01 ohhh yeah","My body trembled as I felt his vibs slip inside of me","I am soacked lick meafter this? :)",":omgsu"]; var wb = [":kiss welcome back my guesser"]; var t69 = ["mmmh 69 this number so mmmh","mmmh 69 so sexy","mmh 69 way so good","69 what a number","mmh 69 interesting...."]; var t169 = ["mmmh 169 this number so mmmh","mmmh 169 so sexy","mmh 169 way so good","169 what a number","mmh 169 interesting...."]; var t27 = ["yeah copulate so good","fornicate so sexy",":sopt15 so good copulate",":sopt21 so mmmh fornicate",":sopt37 mmmmmmh copulate",":sopt22 you made me so mmmmh fornicate",":yas_hello this is the way I like to.. fornicate",":e-4 mmmmh copulate",":e-9 fornicate yeah",":sopt7 copulate",":yas_biteme fornicate so mmmh",":sopt38 copulate mmmmh......",":eroticakiss03 Just like...fornicate","You're going to put me over the edge.. copulate"]; var t28 = ["yeah copulate so good","fornicate so sexy",":sopt15 so good copulate",":sopt21 so mmmh fornicate",":sopt37 mmmmmmh copulate",":sopt22 you made me so mmmmh fornicate",":yas_hello this is the way I like to.. fornicate",":e-4 mmmmmh yeah copulate",":e-9 fornicate",":sopt7 copulate",":yas_biteme fornicate",":sopt38 copulate mmmmh......",":eroticakiss03 thi is the way to...fornicate","You're going to put me over the edge.. copulate"]; var win = ["You won, pls SEND me the video of your choice and your Ema il address in a tipNOTE"]; var last_se; var last_mm; var last_ta; var last_no; var last_sir; var last_hi; var last_bye; var last_ge; var last_togo; var last_yes; var last_lol; var last_win; var last_be; var last_t1; var last_t15; var last_t100; var last_t500; var last_t1000; var last_wb; var last_t69; var last_t169; var last_t27; var last_t28; var random; var sent = false; var onEnterGTime = 0; var onEnterGTimeLeft = 0; Array.prototype.contains = function (needle) { for (i in this) { if (this[i] == needle) return true; } return false; } if(roomHost == 'modnikona3'){ //succubbus cb.settings_choices = [ {name: 'notificationsColor', label: 'Enter the notification color?', type: 'str', minLength: 1, maxLength: 1000000, defaultValue: '#2d499d,#e32626,#e3db26,#21ee0e,#ee0ece'}, {name: 'highestTipper', label: 'Would you like to use the highest tipper feature?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes'}, {name: 'highestTipperMin', label: 'Enter the value of the current position of the highest tipper:', type: 'int', minValue: 1, maxValue: 1000000, defaultValue: 12666}, {name: 'highestTipperUser', label: 'Enter the name of your highest tipper ever:', type: 'str', minLength: 1, maxLength: 1000000, defaultValue: 'modnikona'}, {name: 'highestTipperMes', label: 'Enter the message you want to show when the highest tipper is beaten:', type: 'str', minLength: 1, maxLength: 1000000, defaultValue: ' You are my highest tipper ever!!!'}, {name: 'king', label: 'Would you like to use the king feature?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes'}, {name: 'kingMin', label: 'Enter the minimum total tip for a user to become King:', type: 'int', minValue: 1, maxValue: 1000000, defaultValue: 100}, {name: 'bigTip', label: 'Would you like to use big tip feature?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes'}, {name: 'bigTipMin', label: 'Enter the minimum total tip for a user to become Big Tipper:', type: 'int', minValue: 1, maxValue: 1000000, defaultValue: 100}, {name: 'welcomeMessage', label: 'Would you like to send a Welcome Message?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes'}, {name: 'welcomeMessageString', label: 'Enter the Welcome Message:', type: 'str', minLength: 1, maxLength: 1000000, defaultValue: ':welcomew Hello, feel free to join the conversation or ask questions, be polite.'}, {name: 'gift', label: 'Would you like to use the gift feature?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes'}, {name: 'giftMessage', label: 'Enter the gift Message:', type: 'str', minLength: 1, maxLength: 1000000, defaultValue: 'Be in my room for more than 3 hours and I will give you an exclusive photo set :* love you!'}, {name: 'giftEarnedMessage', label: 'Enter the earned gift Message:', type: 'str', minLength: 1, maxLength: 1000000, defaultValue: 'You earned a gift for staying with me 3 hours, to claim your gift write something in the chat to let me know you are still there.'}, {name: 'rotatingNotifier', label: 'Would you like to use rotating notifier feature?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes'}, {name: 'rotatingNotifierMessages', label: 'Enter the notifications split by commas (,) as many as you wish:', type: 'str', minLength: 1, maxLength: 1000000, defaultValue: ',,'}, {name: 'frequencyNotifier', label: 'How often would you like each notification? (seconds)', type: 'int', minValue: 1, maxValue: 60, defaultValue: 1}, {name: 'ohmibodNotification', label: 'Would you like to use OhMiBod Notifications feature?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes'}, {name: 'frequencyOhmibodNotification', label: 'How often would you like each notification? (seconds)', type: 'int', minValue: 1, maxValue: 60, defaultValue: 60}, {name: 'automod', label: 'Would you like to use auto-mod feature?', type: 'choice', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes'}, {name: 'badwords', label: 'Write the words you want to silence (separated by commas)', type: 'str', minLength: 0, maxLength: 10240, defaultValue: 'slut,bitch,pussy'} ]; } cb.onTip(function(tip) { var viewer = tip['from_user']; var tMsg = tip['message']; var tipAmount = parseInt(tip['amount'],10); var outStr = dashLine; var outFlag = false; getColor(); // Add tipAmount to the totaltokens for that user if(!(viewer in totalTokens)){ totalTokens[viewer] = tipAmount; } else { totalTokens[viewer] += tipAmount; } // Add tipAmount to the totaltokens for that user if(!(viewer in totalTokensTotal)){ totalTokensTotal[viewer] = tipAmount; } else { totalTokensTotal[viewer] += tipAmount; } if (!(mods.contains(viewer))) { tokensStats += tipAmount; } // Check for king if(viewer!==kingTipper && cb.settings.king){ if(totalTokens[viewer]>=cb.settings.kingMin){ if(totalTokens[viewer]>=totalTokens[kingTipper] || kingTipper==""){ kingTipper=viewer; outStr += "\n\u2665 "+kingTipper+" is the best Champion of the day!"; outStr += "\n\u2665 :1champion '"+kingTipper+"': "+totalTokens[kingTipper]; outFlag = true; } } } // Check for biggest single tip if (tipAmount >= bsTip && cb.settings.bigTip && tipAmount>=cb.settings.bigTipMin) { if(bsTipper !== viewer){ bsTip = tipAmount; bsTipper = viewer; outStr += "\n\u2665 New biggest single tip!"; outStr += "\n\u2665 :emmakatbigtip '"+bsTipper+"': "+bsTip; outFlag = true; } else if (tipAmount > bsTip){ bsTip = tipAmount; outStr += "\n\u2665 New biggest single tip!"; outStr += "\n\u2665 :emmakatbigtip '"+bsTipper+"': "+bsTip; outFlag = true; } } // Check for highest tipper (all time) if (tipAmount >= highestTipperMin && cb.settings.highestTipper) { outStr += "\n\u2665 "+viewer+ " "+ cb.settings.highestTipperMes; outStr += "\n\u2665 :becamekingemmakat"; highestTipperMin = tipAmount; highestTipperUser = viewer; outFlag = true; } if (tipAmount == 16 || tipAmount == 17) { sendMessage(":thougthssu", '', '', color,'bold'); } if (tipAmount == 69) { sendMessage(":susix", '', '', color,'bold'); } if (tipAmount == 101) { sendMessage(":losu", '', '', color,'bold'); } // Check for more than 1k tips if (tipAmount >= 1000) { wallLove[viewer] = tipAmount; if (!lover.contains(viewer) && tipAmount== 19999 && !(cb.settings.highestTipper && viewer==highestTipperUser)){ outStr += "\n\u2665 Emma Kingdom Welcomes a new Lover!\n"+viewer+" kneel in front of me :) I sir you! :bestow Stand up my Master and welcome! :fireworks4"; sendDelayedMessage("Hello "+viewer+", to receive the benefits of being a Lover SEND your EMAIL addres in a TipNote.",viewer); outFlag = true; lover.push(viewer); removeFromOtherRank(viewer,"lover"); } else if (!masters.contains(viewer) && tipAmount==7777 && !lover.contains(viewer) && !(cb.settings.highestTipper && viewer==highestTipperUser)){ sendDelayedMessage("Hello "+viewer+", to receive the benefits of being a Master SEND your EMAIL addres in a TipNote.",viewer); outStr += "\n\u2665 Emma Kingdom Welcomes a new Grand Master!\n"+viewer+" kneel in front of me :) I sir you! :bestow Stand up my Master and welcome! :fireworks4"; outFlag = true; masters.push(viewer); removeFromOtherRank(viewer,"masters"); } else if (!grandDukes.contains(viewer) && tipAmount==6666 && !lover.contains(viewer) && !masters.contains(viewer) && !(cb.settings.highestTipper && viewer==highestTipperUser)) { outStr += "\n\u2665 Emma Kingdom Welcomes a new Grand Duke!\n"+viewer+" kneel in front of me :) I sir you! :bestow Stand up my Grand Duke and welcome! :fireworks4"; sendDelayedMessage("Hello "+viewer+", to receive the benefits of being a Grand Duke SEND your EMAIL addres in a TipNote.",viewer); outFlag = true; grandDukes.push(viewer); removeFromOtherRank(viewer,"grandDukes"); } else if (!dukes.contains(viewer) && tipAmount==5555 && !masters.contains(viewer) && !lover.contains(viewer) && !grandDukes.contains(viewer) && !masters.contains(viewer) && !(cb.settings.highestTipper && viewer==highestTipperUser)) { outStr += "\n\u2665 Emma Kingdom Welcomes a new Duke!\n"+viewer+" kneel in front of me :) I sir you! :bestow Stand up my Duke and welcome! :fireworks4"; sendDelayedMessage("Hello "+viewer+", to receive the benefits of being a Duke SEND your EMAIL addres in a TipNote.",viewer); outFlag = true; dukes.push(viewer); removeFromOtherRank(viewer,"dukes"); } else if (!counts.contains(viewer) && tipAmount==4444 && !lover.contains(viewer) && !grandDukes.contains(viewer) && !masters.contains(viewer) && !dukes.contains(viewer) && !(cb.settings.highestTipper && viewer==highestTipperUser)) { outStr += "\n\u2665 Emma Kingdom Welcomes a new Count!\n"+viewer+" kneel in front of me :) I sir you! :bestow Stand up my Count and welcome! :fireworks4"; sendDelayedMessage("Hello "+viewer+", to receive the benefits of being a Count SEND your EMAIL addres in a TipNote.",viewer); outFlag = true; counts.push(viewer); removeFromOtherRank(viewer,"counts"); } else if (!barons.contains(viewer) && tipAmount==3333 && !lover.contains(viewer) && !grandDukes.contains(viewer) && !masters.contains(viewer) && !dukes.contains(viewer) && !counts.contains(viewer) && !(cb.settings.highestTipper && viewer==highestTipperUser)) { outStr += "\n\u2665 Emma Kingdom Welcomes a new Baron!\n"+viewer+" kneel in front of me :) I sir you! :bestow Stand up my Baron and welcome! :fireworks4"; sendDelayedMessage("Hello "+viewer+", to receive the benefits of being a Baron SEND your EMAIL addres in a TipNote.",viewer); outFlag = true; barons.push(viewer); removeFromOtherRank(viewer,"barons"); } else if (!loves.contains(viewer) && tipAmount==1000 && !lover.contains(viewer) && !grandDukes.contains(viewer) && !masters.contains(viewer) && !dukes.contains(viewer) && !counts.contains(viewer) && !barons.contains(viewer) && !heroes.contains(viewer)&& !badboys.contains(viewer) && !(cb.settings.highestTipper && viewer==highestTipperUser)) { outStr += "\n\u2665 Emma Kingdom Welcomes a new Sir!\n"+viewer+" kneel in front of me :) I sir you! :bestow Stand up my Sir and welcome! :fireworks4"; sendDelayedMessage("Hello "+viewer+", to receive the benefits of being a Sir SEND your EMAIL addres in a TipNote.",viewer); outFlag = true; loves.push(viewer); removeFromOtherRank(viewer,"loves"); } else if (!badboys.contains(viewer) && tipAmount==1001 && !lover.contains(viewer) && !grandDukes.contains(viewer) && !masters.contains(viewer) && !dukes.contains(viewer) && !counts.contains(viewer) && !barons.contains(viewer) && !heroes.contains(viewer) && !(cb.settings.highestTipper && viewer==highestTipperUser)) { outStr += "\n\u2665 Emma Kingdom Welcomes a new Badboy!\n"+viewer+" kneel in front of me :) I sir you! :bestow Stand up my Badboy and welcome! :fireworks4"; sendDelayedMessage("Hello "+viewer+", to receive the benefits of being a Sir SEND your EMAIL addres in a TipNote.",viewer); outFlag = true; badboys.push(viewer); removeFromOtherRank(viewer,"badboys"); } else if (!heroes.contains(viewer) && tipAmount==1111 && !lover.contains(viewer) && !grandDukes.contains(viewer) && !masters.contains(viewer) && !dukes.contains(viewer) && !counts.contains(viewer.user) && !barons.contains(viewer) && !(cb.settings.highestTipper && viewer==highestTipperUser)) { outStr += "\n\u2665 Emma Kingdom Welcomes a new Hero!\n"+viewer+" kneel in front of me :) I sir you! :bestow Stand up my Hero and welcome! :fireworks4 :hero400"; sendDelayedMessage("Hello "+viewer+", to receive the benefits of being a Sir SEND your EMAIL addres in a TipNote.",viewer); outFlag = true; heroes.push(viewer); removeFromOtherRank(viewer,"heroes"); } else if (tipAmount==1666){ outStr += "\n\u2665 :Splev1 :ironmanbomb :Splev1 :ironmanbomb "; outFlag = true; } else if (tipAmount==2555){ outStr += "\n\u2665 :Splev2 :ironmanbomb :Splev2 :ironmanbomb "; outFlag = true; } } // check for leader board if (!(viewer == leaderBoard[0] || viewer == leaderBoard[1] || viewer == leaderBoard[2])) { if (totalTokens[viewer] >= 2000) { if (totalTokens[viewer] >= totalTokens[leaderBoard[2]]) { if (totalTokens[viewer] >= totalTokens[leaderBoard[1]] && viewer !== leaderBoard[1]) { if (totalTokens[viewer] >= totalTokens[leaderBoard[0]] && viewer !== leaderBoard[0]) { leaderBoard[2] = leaderBoard[1]; leaderBoard[1] = leaderBoard[0]; leaderBoard[0] = viewer; sendMessage(viewer + " took the first position in the Today's Champions board!", '', '', color,'bold'); leaderMulti=0; } else if (viewer !== leaderBoard[0]) { leaderBoard[2] = leaderBoard[1]; leaderBoard[1] = viewer; sendMessage(viewer + " took the second position in the Today's Champions board!", '', '', color,'bold'); leaderMulti=0; } } else if (viewer !== leaderBoard[1]) { leaderBoard[2] = viewer; sendMessage(viewer + " took the third position in the Today's Champions board!", '', '', color,'bold'); leaderMulti=0; } } } } else if (viewer == leaderBoard[2]) { if(totalTokens[viewer] >= totalTokens[leaderBoard[0]]){ leaderBoard[2] = leaderBoard[1]; leaderBoard[1] = leaderBoard[0]; leaderBoard[0] = viewer; sendMessage(viewer + " took the first position in the Today's Champions board!", '', '', color,'bold'); } else if (totalTokens[viewer] >= totalTokens[leaderBoard[1]]) { leaderBoard[2] = leaderBoard[1]; leaderBoard[1] = viewer; sendMessage(viewer + " took the second position in the Today's Champions board!", '', '', color,'bold'); } } else if (viewer == leaderBoard[1]) { if(totalTokens[viewer] >= totalTokens[leaderBoard[0]]){ leaderBoard[1] = leaderBoard[0]; leaderBoard[0] = viewer; sendMessage(viewer + " took the first position in the Today's Champions board!", '', '', color,'bold'); } } if(tMsg.length > 0){ sendMessage("Tip note ["+tipAmount+"] from: "+viewer+": "+tMsg, mods, '', '#b2b2ff','bold'); } if (outFlag){ sendMessage(outStr+"\n"+dashLine, '', '', color,'bold'); } leaderBoardCheck(); }); // onTip() cb.onMessage(function (msg){ var m = msg['m']; var viewer = msg['user']; var isMod = msg['is_mod']; var isFan = msg['in_fanclub']; var isRoomHost = (viewer === roomHost); var isBST = (viewer === bsTipper); var silenced = false; getColor(); var message = msg['m'].split(' '); if(!done && isMod) { mods = message; all = mods.concat(roomHost); done = true; msg['X-Spam'] = true; sendMessage("Granted Main",mods,'','#0000ff','bold'); } if(isMod && message[0]=="/cmd" && done) { msg['X-Spam'] = true; done = false; sendMessage("id:0 Message hidden from "+viewer+": "+m,mods,'','#0000ff','bold'); silenced = true; } if(message[0].charAt(0) == '/' || message[0].charAt(0) == '!') { msg['X-Spam'] = true; if(all.contains(viewer)) { switch(message[0]){ case '/silence': silenceThis(message[1],viewer); break; case '/s': silenceThis(message[1],viewer); break; case '/unsilence': unSilenceThis(message[1],viewer); break; case '/us': unSilenceThis(message[1],viewer); break; case '/silencedList': sendMessage("Silenced Users: "+silencedUsers.toString(), viewer, '', '#0000ff','bold'); break; case '/tut': var tut = "Online Users Record\n"; for(var key in viewersTimeOn) { tut += key+" = "+(minOn - viewersTimeOn[key])+" min\n"; } sendMessage(tut, viewer,'',color,'bold'); break; case '/ut': sendMessage("Online Users with Tokens "+userTokensOnline,viewer,'',color,'bold'); break; case '/sts': var st = "Stats users with tokens each 10 min\n"; var i=0; for(var key in utPerTenMin) { st += "Min "+((parseInt(key)+1)*10)+" = "+utPerTenMin[key]+". Total users ="+otPerTenMin[key]+" ("+parseFloat((utPerTenMin[key]/otPerTenMin[key])*100).toFixed(2)+"%)\n"; i++; } sendMessage(st,viewer,'',color,'bold'); break; case '/time': if (minOn <= 60){ var temp = (minOn+minOnAdded)%60; if(minOnAdded>0){ var message = "Worked time: "+minOn+" minutes.\nTotal: "+parseInt((minOn+minOnAdded)/60)+" hours and "+temp+" minutes."; } else { var message = "Worked time: "+minOn+" minutes."; } if(viewer == roomHost){ sendMessage(message,all,'',color,'bold'); } else { sendMessage(message,viewer,'',color,'bold'); } } else { var temp = minOn%60; var tempAdeed = (minOn+minOnAdded)%60; if(minOnAdded>0){ var message = "Worked time: "+parseInt(minOn/60)+" hours and "+temp+" minutes.\nTotal: "+parseInt((minOn+minOnAdded)/60)+" hours and "+tempAdeed+" minutes."; } else { var message = "Worked time: "+parseInt(minOn/60)+" hours and "+temp+" minutes."; } if(viewer == roomHost){ sendMessage(message,all,'',color,'bold'); } else { sendMessage(message,viewer,'',color,'bold'); } } break; case '/tt': var tt = "Stats TotalTokens\n"; for(var key in totalTokens) { tt += key + " = " +totalTokens[key]+"\n"; } sendMessage(tt,viewer,'',color,'bold'); break; case '/ttt': var ttt = "Stats TotalTokens Total\n"; for(var key in totalTokensTotal) { ttt += key + " = " +totalTokensTotal[key]+"\n"; } sendMessage(ttt,viewer,'',color,'bold'); break; case '/sc': sendMessage("These are the available shortcodes: \n se, ta, no, hi, bye, ge, se, togo, be, yes, t1, t15, t100, lol",viewer,'',color,'bold'); break; case '/total': var temp = totalTokensRecord+totalTokensRecordAdded; for(var key in totalTokens) { temp += totalTokens[key]; } for (var i = 0; i < mods.length; i++) { if(totalTokens[mods[i]]>0){ temp -= totalTokens[mods[i]]; } } if(totalTokensRecordAdded>0){ var messageTotal = "This session: "+(temp-totalTokensRecordAdded)+"\nTotal Tokens in this session: "+temp; } else { var messageTotal = "Total Tokens in this session: "+temp; } if(viewer == roomHost){ sendMessage(messageTotal,all,'',color,'bold'); } else { sendMessage(messageTotal,viewer,'',color,'bold'); } break; case '/wall': var wall = "People who should be in the wall of love\n"; for(var key in wallLove) { wall += key + " = " +wallLove[key]+"\n"; } sendMessage(wall,viewer,'',color,'bold'); break; case '/l': var leader = "LeaderBoard\n"; if(leaderBoard[0]!=="") { for(var key in leaderBoard) { if (leaderBoard[key] !== ""){ leader += parseInt(key)+1 + " : " +leaderBoard[key] + " " + totalTokens[leaderBoard[key]]+"\n"; } } sendMessage(leader,viewer,'',color,'bold'); } else { sendMessage("There are not tippers in the Today's Champions board yet.",viewer,'',color,'bold'); } break; case '/chatoff': if(chatOff){ chatOff = false; sendMessage("Chat restriction is deactivated",viewer,'',color,'bold'); } else { chatOff = true; sendMessage("Chat restriction is activated",viewer,'',color,'bold'); } break; case '/st': var stats = "Tokens earned per hour\n"; var allTokens = 0; for (var i = 0; i < tokensStatsHour.length; i++) { allTokens += tokensStatsHour[i]; } allTokens += tokensStats; for (var i = 0; i < tokensStatsHour.length; i++) { stats += (i+1)+" Hour: "+tokensStatsHour[i] + " tokens ("+ Math.round(((tokensStatsHour[i]/allTokens)*100)* 100)/100 +"%)\n"; } stats += "Current Hour: "+ tokensStats + " tokens ("+ Math.round(((tokensStats/allTokens)*100)* 100)/100 +"%)\n"; stats += "Total Tokens = "+allTokens+"\n"; sendMessage(stats,viewer,'',color,'bold'); break; case '/stPurple': var stats = "Dark Purple per Hour\n"; var allDarkPurple = 0; for (var i = 0; i < darkPurpleHour.length; i++) { allDarkPurple += darkPurpleHour[i]; } allDarkPurple += darkPurple; for (var i = 0; i < darkPurpleHour.length; i++) { stats += (i+1)+" Hour: "+darkPurpleHour[i] + " dark purple users ("+ Math.round(((darkPurpleHour[i]/allDarkPurple)*100)* 100)/100 +"%)\n"; } stats += "Current Hour: "+ darkPurple + " tokens ("+ Math.round(((darkPurple/allDarkPurple)*100)* 100)/100 +"%)\n"; stats += "Total Dark Purple Users = "+allDarkPurple+"\n"; sendMessage(stats,viewer,'',color,'bold'); break; case '/statsSirs': var allSirs = 0; var statsSirs = "Sirs on palace per hour\n"; for (var i = 0; i < sirsHour.length; i++) { allSirs += sirsHour[i]; } for (var i = 0; i < sirsHour.length; i++) { statsSirs += (i+1)+" Hour: "+sirsHour[i] + " sirs ("+ Math.round(((sirsHour[i]/allSirs)*100)* 100)/100 +"%)\n"; } statsSirs += "Total Sirs = "+allSirs+"\n"; sendMessage(statsSirs,viewer,'',color,'bold'); break; case '/words': var words = "Messages hidden (bad words) = "+badWordsCounter+"\n"; for(var key in badWordsSettingsCounter) { if(badWordsSettingsCounter[key] > 0){ words += key +" = "+ badWordsSettingsCounter[key]+" - "+Math.round((badWordsSettingsCounter[key]/badWordsCounter)*100)+"%\n"; } } sendMessage(words,viewer,'',color,'bold'); break; case '/addGuesser': guessers.push(message[1]); sendMessage("Guesser added: "+message[1],viewer,'','#0000ff','bold'); break; case '/addTotal': if (Number.isInteger(parseInt(message[1]))){ totalTokensRecordAdded += parseInt(message[1]); sendMessage(message[1]+" added to the total.",viewer,'','#0000ff','bold'); } else { sendMessage("It's not a number: "+message[1],viewer,'','#0000ff','bold'); } break; case '/mine': totalTokens[viewer] = parseInt(message[1]); break; case '/addTime': if (Number.isInteger(parseInt(message[1]))){ minOnAdded += parseInt(message[1]); sendMessage(message[1]+" added to the time.",viewer,'','#0000ff','bold'); } else { sendMessage("It's not a number: "+message[1],viewer,'','#0000ff','bold'); } break; case '/addWord': badWordsSettings.push(message[1].toLowerCase()); sendMessage("Word added: "+message[1],viewer,'','#0000ff','bold'); break; case '/cc': sendMessage("Clearing Chat\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nClearing Chat",all,'','#0000ff','bold'); break; case '/ranks': var ranks = "Every rank and its members.\n"; ranks += "Lover: "; for(var i = 0; i < lover.length; i++) { if(lover[i]!="username") { if(i<lover.length-1) { ranks += lover[i]+", "; } else { ranks += lover[i]+"."; } } else { ranks += "0."; i=lover.length; } } ranks += "\nMasters: "; for(var i = 0; i < masters.length; i++) { if(masters[i]!="username") { if(i<masters.length-1) { ranks += masters[i]+", "; } else { ranks += masters[i]+"."; } } else { ranks += "0."; i=masters.length; } } ranks += "\nGrand Dukes: "; for(var i = 0; i < grandDukes.length; i++) { if(grandDukes[i]!="username") { if(i<grandDukes.length-1) { ranks += grandDukes[i]+", "; } else { ranks += grandDukes[i]+"."; } } else { ranks += "0."; i=grandDukes.length; } } ranks += "\nDukes: "; for(var i = 0; i < dukes.length; i++) { if(i<dukes.length-1) { ranks += dukes[i]+", "; } else { ranks += dukes[i]+"."; } } ranks += "\nCounts: "; for(var i = 0; i < counts.length; i++) { if(counts[i]!="username") { if(i<counts.length-1) { ranks += counts[i]+", "; } else { ranks += counts[i]+"."; } } else { ranks += "0."; i=counts.length; } } ranks += "\nBarons: "; for(var i = 0; i < barons.length; i++) { if(barons[i]!="username") { if(i<barons.length-1) { ranks += barons[i]+", "; } else { ranks += barons[i]+"."; } } else { ranks += "0."; i=barons.length; } } ranks += "\nHeroes: "; for(var i = 0; i < heroes.length; i++) { if(i<heroes.length-1) { ranks += heroes[i]+", "; } else { ranks += heroes[i]+"."; } } ranks += "\nBadboys: "; for(var i = 0; i < badboys.length; i++) { if(i<badboys.length-1) { ranks += badboys[i]+", "; } else { ranks += badboys[i]+"."; } } ranks += "\nLoves: "; for(var i = 0; i < loves.length; i++) { if(i<loves.length-1) { ranks += loves[i]+", "; } else { ranks += loves[i]+"."; } } ranks += "\nGuessers: "; for(var i = 0; i < guessers.length; i++) { if(i<guessers.length-1) { ranks += guessers[i]+", "; } else { ranks += guessers[i]+"."; } } sendMessage(ranks,viewer,'','','bold'); break; case '/restart': for(var key in totalTokens) { totalTokensRecord += totalTokens[key]; } for (var i = 0; i < mods.length; i++) { if(mods[i] in totalTokens){ totalTokensRecord -= totalTokens[mods[i]]; } } bsTipper = ""; bsTip = 0; kingTipper = ""; for(var key in totalTokens) { totalTokens[key] = 0; } leaderBoard = []; leaderBoard[0] = ""; leaderBoard[1] = ""; leaderBoard[2] = ""; sendMessage("Values restarted.",mods,'','','bold'); break; case '/guessers': var guessersList = "All the Emma's guessers: "; for(var i = 0; i < guessers.length; i++) { if(i<guessers.length-1) { guessersList += guessers[i]+", "; } else { guessersList += guessers[i]+"."; } } sendMessage(guessersList,'','#FFFF00','#0000FF',''); break; case '/pm': if(viewersTimeOn[message[1]]!=undefined){ if(isRoomHost){ sendMessage("From "+viewer+" to "+message[1]+": "+m.replace("/pm "+message[1],""),message[1],'#00b200','#000000','bold'); sendMessage("From "+viewer+" to "+message[1]+": "+m.replace("/pm "+message[1],""),mods,'#00b200','#000000','bold'); sendMessage("Sent to "+message[1],viewer,'#00b200','#000000','bold'); } else { sendMessage("From "+viewer+" to "+message[1]+": "+m.replace("/pm "+message[1],""),message[1],'#00b200','#000000','bold'); sendMessage("Sent to "+message[1],viewer,'#00b200','#000000','bold'); } } else { if(isRoomHost){ sendMessage("From "+viewer+": "+m.replace("/pm",""),mods,'#00b200','#000000','bold'); sendMessage("Sent",viewer,'#00b200','#000000','bold'); } else { sendMessage("From "+viewer+": "+m.replace("/pm",""),roomHost,'#00b200','#000000','bold'); sendMessage("Sent",viewer,'#00b200','#000000','bold'); } } break; case '/eg': var guesserF = ""; do { guesserF = guessers[Math.floor(Math.random() * guessers.length)]; } while (viewersTimeOn[guesserF]!=undefined) sendMessage(':emmherald GUESSER %USER% has entered to the palace! :e-wizin'.replace('%USER%', guesserF),'','#8ce0ad','#000000','bold'); break; case '/newOnes': var newOnes = "New t1 elements: "; for(var i = 0; i < t1newOnes.length; i++) { newOnes += "\n"+t1newOnes[i]; } sendMessage(newOnes,mods,'#FFFF00','#0000FF',''); break; case '/help': var help = "You can use the following commands\n"; help += "/silence\n"; help += "/unsilence\n"; help += "/total\n"; help += "/tut It shows you how much time each user with tokens has been watching you.\n"; help += "/ut It shows you the current number of viewers with tokens.\n"; help += "/st It shows you a record with the number of viewers with tokens every 10 minutes.\n"; help += "/tt It shows you all the viewers who have given you tokens and the amount of tokens.\n"; help += "/chatoff If chatOff is false this will turn it true, and the other way around.\n"; help += "/time It shows the worked time (hours-minutes).\n"; help += "/wall It shows the viewers tipped more than 1000 in a single tip.\n"; help += "/st It shows the number of tokens earned each hour.\n"; help += "/stPurple It shows the number of dark purple users each hour.\n"; help += "/words It shows the stats of the banned words, hidden times and average.\n"; help += "/l It shows the current leaderboard\n"; help += "/statsSirs It shows the number of sirs each hour.\n"; help += "/addGuesser It adds the user name to the guessers list.\n"; help += "/addTotal It adds number to the total.\n"; help += "/ranks It shows all the ranks and its members.\n"; help += "/restart It restarts the leaderboard and related stuff.\n"; help += "/addWord It adds a new word to the silenced words list.\n"; help += "/guessers It shows the list of all guessers.\n"; help += "/eg a guesser enters.\n"; sendMessage(help,viewer,'',color,'bold'); break; } } else { if(!silenced && viewer.has_tokens){ sendMessage("id:1 Message hidden from "+viewer+": "+m,mods,'','#0000ff','bold'); silenced = true; } if (message[0] == '/ok'){ if(contact.contains(viewer)){ var index = contact.indexOf(viewer); if (index > -1) { viewer.splice(index, 1); } sendMessage(viewer+" was removed from Contact List",mods,'','#0000ff','bold'); sendMessage("You have abandoned the contact list for prize winners.",viewer,'','#0000ff','bold'); } } if(message[0] == '/pm' && false){ sendMessage("From "+viewer+": "+m.replace("/pm",""),all,'#00b200','#000000','bold'); sendMessage("Sent to: "+roomHost,viewer,'#00b200','#000000','bold'); } } } if(isRoomHost){ msg['background'] = '#FFDAF1'; if(!t1.contains(m) && !newOnesNo.contains(m) && !newOnesNo.contains(message[0]) && m.charAt(0)!="!" && m.charAt(0)!="/" && m.length>1){ t1newOnes.push(m); } switch(message[0]) { case "se": msg['m'] = m.replace("se", se[Math.floor(Math.random() * se.length)]); m = msg['m']; break; case "o": msg['m'] = m.replace("o", o[Math.floor(Math.random() * o.length)]); m = msg['m']; break; case "ta": do { random = Math.floor(Math.random() * ta.length); } while (random == last_ta) last_ta = random; msg['m'] = m.replace("ta", ta[random]); m = msg['m']; break; case "m": do { random = Math.floor(Math.random() * mmm.length); } while (random == last_mm) last_mm = random; msg['m'] = m.replace("m", mmm[random]); m = msg['m']; break; case "no": msg['m'] = m.replace("no", no[Math.floor(Math.random() * no.length)]); m = msg['m']; break; case "sir": msg['m'] = m.replace("sir", sir[Math.floor(Math.random() * sir.length)]); m = msg['m']; break; case "hi": msg['m'] = m.replace("hi", hi[Math.floor(Math.random() * hi.length)]); m = msg['m']; break; case "bye": msg['m'] = m.replace("bye", bye[Math.floor(Math.random() * bye.length)]); m = msg['m']; break; case "ge": msg['m'] = m.replace("ge", ge[Math.floor(Math.random() * ge.length)]); m = msg['m']; break; case "ws": msg['m'] = m.replace("ws", win[Math.floor(Math.random() * win.length)]); m = msg['m']; break; case "lol": do { random = Math.floor(Math.random() * lol.length); } while (random == last_lol) last_lol = random; msg['m'] = m.replace("lol", lol[random]); m = msg['m']; break; case "yes": msg['m'] = m.replace("yes", yes[Math.floor(Math.random() * yes.length)]); m = msg['m']; break; case "togo": msg['m'] = m.replace("togo", togo[Math.floor(Math.random() * togo.length)]); m = msg['m']; break; case "be": do { random = Math.floor(Math.random() * be.length); } while (random == last_be) last_be = random; msg['m'] = m.replace("be", be[random]); m = msg['m']; break; case "1": if(t1Count==0) { var x = t1.length, t, i; // While there remain elements to shuffle… while (x) { // Pick a remaining element… i = Math.floor(Math.random() * x--); // And swap it with the current element. t = t1[x]; t1[x] = t1[i]; t1[i] = t; } } msg['m'] = String(m).replace("1", t1[t1Count]); m = msg['m']; if(t1Count+1==t1.length){ t1Count=0; } else { t1Count++; } break; case "15": do { random = Math.floor(Math.random() * t15.length); } while (random == last_t15) last_t15 = random; msg['m'] = m.replace("15", t15[random]); m = msg['m']; break; case "100": do { random = Math.floor(Math.random() * t100.length); } while (random == last_t100) last_t100 = random; msg['m'] = m.replace("100", t100[random]); m = msg['m']; break; case "500": do { random = Math.floor(Math.random() * t500.length); } while (random == last_t500) last_t500 = random; msg['m'] = m.replace("500", t500[random]); m = msg['m']; break; case "1000": do { random = Math.floor(Math.random() * t1000.length); } while (random == last_t1000) last_t1000 = random; msg['m'] = m.replace("1000", t1000[random]); m = msg['m']; break; case "wb": msg['m'] = m.replace("wb", wb[Math.floor(Math.random() * wb.length)]); m = msg['m']; break; case "69": do { random = Math.floor(Math.random() * t69.length); } while (random == last_t69) last_t69 = random; msg['m'] = m.replace("69", t69[random]); m = msg['m']; break; case "169": do { random = Math.floor(Math.random() * t169.length); } while (random == last_t169) last_t169 = random; msg['m'] = m.replace("169", t169[random]); m = msg['m']; break; case "27": do { random = Math.floor(Math.random() * t27.length); } while (random == last_t27) last_t27 = random; msg['m'] = m.replace("27", t27[random]); m = msg['m']; break; case "28": do { random = Math.floor(Math.random() * t28.length); } while (random == last_t28) last_t28 = random; msg['m'] = m.replace("28", t28[random]); m = msg['m']; break; } } if(message[0].charAt(0) == '*'){ if(mods.contains(viewer)) { switch(message[0]){ case '*1': do { random = Math.floor(Math.random() * thanks1.length); } while (random == last_1) last_1 = random; msg['m'] = m.replace("*1", thanks1[random]); m = msg['m']; break; case '*15': do { random = Math.floor(Math.random() * thanks15.length); } while (random == last_15) last_15 = random; msg['m'] = m.replace("*15", thanks15[random]); m = msg['m']; break; case '*100': do { random = Math.floor(Math.random() * thanks100.length); } while (random == last_100) last_100 = random; msg['m'] = m.replace("*100", thanks100[random]); m = msg['m']; break; case '*500': do { random = Math.floor(Math.random() * thanks500.length); } while (random == last_500) last_500 = random; msg['m'] = m.replace("*500", thanks500[random]); m = msg['m']; break; case '*com': if(complimentsCount==0) { var x = compliments.length, t, i; // While there remain elements to shuffle… while (x) { // Pick a remaining element… i = Math.floor(Math.random() * x--); // And swap it with the current element. t = compliments[x]; compliments[x] = compliments[i]; compliments[i] = t; } } msg['m'] = String(m).replace("*com", compliments[complimentsCount]); m = msg['m']; if(complimentsCount+1==compliments.length){ complimentsCount=0; } else { complimentsCount++; } break; case '*hi': if(helloCount==0) { var x = hello.length, t, i; // While there remain elements to shuffle… while (x) { // Pick a remaining element… i = Math.floor(Math.random() * x--); // And swap it with the current element. t = hello[x]; hello[x] = hello[i]; hello[i] = t; } } msg['m'] = String(m).replace("*hi", hello[helloCount]); m = msg['m']; if(helloCount+1==hello.length){ helloCount=0; } else { helloCount++; } break; case '*agree': if(agreeCount==0) { var x = agree.length, t, i; // While there remain elements to shuffle… while (x) { // Pick a remaining element… i = Math.floor(Math.random() * x--); // And swap it with the current element. t = agree[x]; agree[x] = agree[i]; agree[i] = t; } } msg['m'] = String(m).replace("*agree", agree[agreeCount]); m = msg['m']; if(agreeCount+1==agree.length){ agreeCount=0; } else { agreeCount++; } break; case '*ass': if(assCount==0) { var x = ass.length, t, i; // While there remain elements to shuffle… while (x) { // Pick a remaining element… i = Math.floor(Math.random() * x--); // And swap it with the current element. t = ass[x]; ass[x] = ass[i]; ass[i] = t; } } msg['m'] = String(m).replace("*ass", ass[assCount]); m = msg['m']; if(assCount+1==ass.length){ assCount=0; } else { assCount++; } break; case '*bye': if(byeCount==0) { var x = bye.length, t, i; // While there remain elements to shuffle… while (x) { // Pick a remaining element… i = Math.floor(Math.random() * x--); // And swap it with the current element. t = bye[x]; bye[x] = bye[i]; bye[i] = t; } } msg['m'] = String(m).replace("*bye", bye[byeCount]); m = msg['m']; if(byeCount+1==ass.length){ byeCount=0; } else { byeCount++; } break; case '*team': if(teamworkCount==0) { var x = teamwork.length, t, i; // While there remain elements to shuffle… while (x) { // Pick a remaining element… i = Math.floor(Math.random() * x--); // And swap it with the current element. t = teamwork[x]; teamwork[x] = teamwork[i]; teamwork[i] = t; } } msg['m'] = String(m).replace("*team", teamwork[teamworkCount]); m = msg['m']; if(teamworkCount+1==teamwork.length){ teamworkCount=0; } else { teamworkCount++; } break; case '*bro': if(broCount==0) { var x = bro.length, t, i; // While there remain elements to shuffle… while (x) { // Pick a remaining element… i = Math.floor(Math.random() * x--); // And swap it with the current element. t = bro[x]; bro[x] = bro[i]; bro[i] = t; } } msg['m'] = String(m).replace("*bro", bro[broCount]); m = msg['m']; if(broCount+1==bro.length){ broCount=0; } else { broCount++; } break; default: msg['X-Spam'] = true; } } } if (isMod || isBST){ msg['c'] = '#0000ff'; } if (chatOff){ if(!all.contains(viewer)){ msg['X-Spam'] = true; if(!silenced){ sendMessage("id:2 Message hidden from "+viewer+": "+m,mods,'','#0000ff','bold'); silenced = true; } } } if(cb.settings.automod == "Yes" && !all.contains(viewer)) { var mm = m.toLowerCase(); for (var i = 0; i < badWordsSettings.length; i++) { if(mm.indexOf(badWordsSettings[i]) > -1){ msg['X-Spam'] = true; if(viewer.has_tokens){ if(!silenced){ sendMessage("id:3 Message hidden from "+viewer+": "+m,mods,'','#0000ff','bold'); silenced = true; } } badWordsCounter++; badWordsSettingsCounter[badWordsSettings[i]] = badWordsSettingsCounter[badWordsSettings[i]] + 1; i=badWordsSettings.length; } } } if((viewer==kingTipper && cb.settings.king)||(cb.settings.highestTipper && viewer==highestTipperUser)) { if(viewer==kingTipper && cb.settings.king){ msg['m'] = "|"+totalTokens[viewer]+"| :1champion "+m; m = msg['m']; } if (cb.settings.highestTipper && viewer==highestTipperUser) { if(!isMod){ msg['background'] = '#d7dc42'; } if(viewer==kingTipper && cb.settings.king){ msg['m'] = "King "+m.replace(":1champion", ":crownemmatkat"); m = msg['m']; } else { if(totalTokens[viewer]>=1000 && !mods.contains(viewer)){ msg['m'] = "King |"+totalTokens[viewer]+"| :crownemmatkat "+m; m = msg['m']; } else { msg['m'] = "King :crownemmatkat "+m; m = msg['m']; } } } } else if (lover.contains(viewer)){ msg['background'] = '#e5d36c'; if(totalTokens[viewer]>=1000 && !mods.contains(viewer) ){ msg['m'] = ":lloversu |"+totalTokens[viewer]+"| "+m; } else { msg['m'] = ":lloversu "+m; } } else if (masters.contains(viewer)){ msg['background'] = '#e5d36c'; if(totalTokens[viewer]>=1000 && !mods.contains(viewer) ){ msg['m'] = ":grandms |"+totalTokens[viewer]+"| "+m; } else { msg['m'] = ":grandms "+m; } } else if (grandDukes.contains(viewer)) { msg['background'] = '#e5d36c'; if(totalTokens[viewer]>=1000 && !mods.contains(viewer) ){ msg['m'] = ":granddsuc |"+totalTokens[viewer]+"| "+m; } else { msg['m'] = ":granddsuc "+m; } } else if (dukes.contains(viewer)) { msg['background'] = '#e5d36c'; if(totalTokens[viewer]>=1000 && !mods.contains(viewer) ){ msg['m'] = ":dukesu |"+totalTokens[viewer]+"| "+m; } else { msg['m'] = ":dukesu "+m; } } else if (counts.contains(viewer)) { msg['background'] = '#e5d36c'; if(totalTokens[viewer]>=1000 && !mods.contains(viewer) ){ msg['m'] = ":counts |"+totalTokens[viewer]+"| "+m; } else { msg['m'] = ":counts "+m; } } else if (barons.contains(viewer)) { msg['background'] = '#d7dc42'; if(totalTokens[viewer]>=1 && !mods.contains(viewer) ){ msg['m'] = ":baros |"+totalTokens[viewer]+"| "+m; } else { msg['m'] = ":baros "+m; } } else if (guessers.contains(viewer)) { msg['background'] = '#e5d36c'; if(totalTokens[viewer]>=1000 && !mods.contains(viewer) ){ msg['m'] = "GUESSER :emmaguesser |"+totalTokens[viewer]+"| "+m; } else { msg['m'] = "GUESSER :emmaguesser "+m; } } else if (heroes.contains(viewer)) { msg['background'] = '#e5d36c'; if(totalTokens[viewer]>=1000 && !mods.contains(viewer) ){ msg['m'] = "Sir :heroemmakat |"+totalTokens[viewer]+"| "+m; } else { msg['m'] = "Sir :heroemmakat "+m; } } else if (badboys.contains(viewer)) { msg['background'] = '#e5d36c'; if(totalTokens[viewer]>=1000 && !mods.contains(viewer) ){ msg['m'] = "Sir :badboyemmakat |"+totalTokens[viewer]+"| "+m; } else { msg['m'] = "Sir :badboyemmakat "+m; } } else if (loves.contains(viewer)) { msg['background'] = '#e5d36c'; if(totalTokens[viewer]>=1000 && !mods.contains(viewer) ){ msg['m'] = "Sir :emmheart |"+totalTokens[viewer]+"| "+m; } else { msg['m'] = "Sir :emmheart "+m; } } else if(viewer in totalTokens && !isMod){ if (isBST) { msg['m'] = ":emmakatbigtip |"+bsTip+"| "+m; m = msg['m']; } if(totalTokens[viewer]<=100 && totalTokens[viewer]>0 && !mods.contains(viewer) ){ msg['m'] = "|"+totalTokens[viewer]+"| :emmakatrock "+m; } else if(totalTokens[viewer]<=200 && totalTokens[viewer]>0 && !mods.contains(viewer) ){ msg['m'] = "|"+totalTokens[viewer]+"| :emmakatwoodensword "+m; } else if(totalTokens[viewer]<=500 && totalTokens[viewer]>0 && !mods.contains(viewer) ){ msg['m'] = "|"+totalTokens[viewer]+"| :emmakatgoldsword "+m; } else if(totalTokens[viewer]>500 && !mods.contains(viewer) ) { msg['m'] = "|"+totalTokens[viewer]+"| :emmakatdiamontsword "+m; } } else if (isMod) { if (isBST) { msg['m'] = ":emmakatbigtip |"+bsTip+"| "+m; m = msg['m']; } if(viewer in totalTokens && totalTokens[viewer]>=1000 && !mods.contains(viewer) ){ msg['m'] = "|"+totalTokens[viewer]+"| :emmakattrident "+m; } else { msg['m'] = ":emmakattrident "+m; } } if (isFan){ msg['m'] = " :emmakatshield "+m; } m = msg['m']; if (isRoomHost) { msg['m'] = ":emmakatcrown "+m; m = msg['m']; } else if(totalTokens[viewer]<=5 && totalTokens[viewer]>0 && !mods.contains(viewer)) { msg['X-Spam'] = true; if(!silenced){ sendMessage("id:4 Message hidden from "+viewer+": "+m,mods,'','#0000ff','bold'); silenced = true; } } if (silencedUsers.contains(viewer)) { msg['X-Spam'] = true; if(!silenced){ sendMessage("id:5 "+viewer+ " silenced: "+m,mods,'','#0000ff','bold'); silenced = true; } } if((!msg['has_tokens'] || !msg['tipped_alot_recently']) && !(all.contains(viewer))){ if(msg['has_tokens']){ if(!silenced){ sendMessage("id:6 "+viewer+ " silenced (Blue): "+m,mods,'','#0000ff','bold'); silenced = true; } } msg['X-Spam'] = true; } return msg; }); // onMessage() cb.onEnter(function(viewer) { getColor(); totalUserOnline++; if(cb.settings.welcomeMessage && !viewer.has_tokens){ var outStr = dashLine; outStr += "\n\u2665 "+cb.settings.welcomeMessageString; sendMessage(outStr+"\n"+dashLine,viewer.user,'',color,'bold'); } if(viewer.has_tokens){ viewersTimeOn[viewer.user] = minOn; userTokensOnline++; if(cb.settings.gift){ var outStr = dashLine; outStr += "\n\u2665 "+cb.settings.giftMessage; sendMessage(outStr+"\n"+dashLine,viewer.user,'',color,'bold'); } } if(viewer.tipped_tons_recently && !tipped_tons_recently.contains(viewer.user)){ darkPurple++; tipped_tons_recently.push(viewer.user); } if (cb.settings.highestTipper && viewer.user==highestTipperUser) { sendMessage(':emmherald KING '+viewer.user+' has entered to the palace! :kingemmakat','','#8ce0ad','#000000','bold'); } else if (lover.contains(viewer.user)){ sendMessage(':emmherald LOVER %USER% has entered to the palace! :masteremmakat'.replace('%USER%', viewer.user),'','#8ce0ad','#000000','bold'); } else if (masters.contains(viewer.user)){ sendMessage(':emmherald GRAND MASTER %USER% has entered to the palace! :masteremmakat'.replace('%USER%', viewer.user),'','#8ce0ad','#000000','bold'); } else if (grandDukes.contains(viewer.user)) { sendMessage(':emmherald GRANDE DUKE %USER% has entered to the palace! :emmgrandenter'.replace('%USER%', viewer.user),'','#8ce0ad','#000000','bold'); } else if (dukes.contains(viewer.user)) { sendMessage(':emmherald DUKE %USER% has entered to the palace! :emmgrandenter'.replace('%USER%', viewer.user),'','#8ce0ad','#000000','bold'); } else if (counts.contains(viewer.user)) { sendMessage(':emmherald COUNT %USER% has entered to the palace! :countemmakat'.replace('%USER%', viewer.user),'','#8ce0ad','#000000','bold'); } else if (barons.contains(viewer.user)) { sendMessage(':emmherald BARON %USER% has entered to the palace! :baronemmakat'.replace('%USER%', viewer.user),'','#8ce0ad','#000000','bold'); } else if (loves.contains(viewer.user)) { sendMessage(':emmherald SIR LOVE %USER% has entered to the palace! :emmknight'.replace('%USER%', viewer.user),'','#8ce0ad','#000000','bold'); } else if (badboys.contains(viewer.user)) { sendMessage(':emmherald SIR BADBOY %USER% has entered to the palace! :emmknight'.replace('%USER%', viewer.user),'','#8ce0ad','#000000','bold'); } else if (heroes.contains(viewer.user)) { sendMessage(':emmherald SIR HERO %USER% has entered to the palace! :soppbestever'.replace('%USER%', viewer.user),'','#8ce0ad','#000000','bold'); } else if (guessers.contains(viewer.user)) { sendMessage(':emmherald GUESSER %USER% has entered to the palace! :e-wizin'.replace('%USER%', viewer.user),'','#8ce0ad','#000000','bold'); } if(contact.contains(viewer.user)){ sendMessage("Contact "+viewer.user,mods,"#cc0000","","bold"); sendMessage("Hello "+viewer.user+", you won a video in a previous session, send me your mail in a tip note so you can have your prize. If you don't want to receive this notification again type /ok",viewer.user,"#cc0000","","bold"); } if (viewer.user === roomHost) { chatOff = false; } }); //onEnter() cb.onLeave(function(viewer) { totalUserOnline--; if(viewer.has_tokens){ delete viewersTimeOn[viewer.user]; userTokensOnline--; } if (viewer.user === roomHost) { chatOff=true; } if(kingTipper==viewer.user){ sendMessage(viewer.user+" is off",mods,"#cc0000","","bold"); } }); //onLeave function sendMessage(msg, user, background, color, weight) { if (Array.isArray(user)) { for (var i = 0; i < user.length; i++) { cb.sendNotice(msg, user[i], background, color, weight); } } else { cb.sendNotice(msg, user, background, color, weight); } } function sendDelayedMessage(msg, user) { cb.setTimeout(sendMessage(msg, user, "#000000", "#FFFF00", "bold"),15000); } function leaderBoardCheck(){ if(leaderBoard[2]==leaderBoard[1]){ leaderBoard[2] = ""; } if(leaderBoard[2]==leaderBoard[0]){ leaderBoard[2] = ""; } if(leaderBoard[1]==leaderBoard[0]){ leaderBoard[1] = ""; } if(totalTokens[leaderBoard[0]]<totalTokens[leaderBoard[1]]){ var temp = leaderBoard[0]; leaderBoard[0] = leaderBoard[1]; leaderBoard[1] = temp; } if(totalTokens[leaderBoard[1]]<totalTokens[leaderBoard[2]]){ var temp = leaderBoard[1]; leaderBoard[1] = leaderBoard[2]; leaderBoard[2] = temp; } } function ohmibodNotifier(){ cb.setTimeout(ohmibodNotifierTimer,cb.settings.frequencyOhmibodNotification*1000); } function ohmibodNotifierTimer(){ var not = ""; not += ":ohmibodsm1 OhMiBod is a TOY Which RESPONDS to Your TIPS :ohmibodsm1 \n"; not += ":pixelglitter LEVELS :pixelglitter \n"; not += ":level1medred Tip 1-14 :ohmibodsm1 1 sec Low-Low\n"; not += ":level2medred Tip 15-99 :ohmibodsm1 5 sec Low\n"; not += ":level3medred Tip 100-499 :ohmibodsm1 20 sec Medium\n"; not += ":level4medred Tip 500-999 :ohmibodsm1 30 sec High\n"; not += ":level5medred Tip 1000+ :ohmibodsm1 60 sec Ultra High\n"; not += "\u2605\u2605\u2605\u2605\u2605\u2605\u2605\u2605\n"; not += ":pixelglitter SPECIAL LEVELS :pixelglitter \n"; not += "InstaHEAVEN :level1medred Tip 1666 :ohmibodsm1 :lvwave2 \n"; not += "Double InstaHEAVEN :level2medred Tip 2555 :ohmibodsm1 :lvpulse2"; sendMessage(not,'','','#a30019','bold'); ohmibodNotifier(); } function notifier(){ cb.setTimeout(notifierTimer,cb.settings.frequencyNotifier*1000); } function notifierTimer(){ var outStr = ""; var withBackground = false; getColor(); if(bsTip == 0 && notificationArrayCount%30==0 && notificationArrayCount!=0){ withBackground = true; var temp = (Math.floor(Math.random() * 3))+1; if(temp == 1 && bsTip >= cb.settings.bigTipMin) { outStr += 'Big Tip was sent by ' + bsTipper + '\n Tip ' + (bsTip+1) + ' to become the new Big Tipper!'; } else if(temp == 2 && kingTipper!=="" && cb.settings.king) { outStr += 'Our Champion is ' + kingTipper + '\n Tip ' + (totalTokens[kingTipper]+1) + ' to become our new Champion of the day!'; } else { outStr += 'Our Higher Highest Ever is ' + highestTipperUser + '\n Tip ' + highestTipperMin + ' to become the Highest Tipper Ever and wear :crownemmatkat !'; } } else { outStr += notificationArray[notificationArrayCount]; } if(!withBackground){ sendMessage(outStr,'','',color,'bold'); } else { sendMessage(outStr,'','#C287C2','#000','bold'); } if(notificationArrayCount+1==notificationArray.length){ var m = notificationArray.length, t, i; // While there remain elements to shuffle… while (m) { // Pick a remaining element… i = Math.floor(Math.random() * m--); // And swap it with the current element. t = notificationArray[m]; notificationArray[m] = notificationArray[i]; notificationArray[i] = t; } notificationArrayCount = 0; } else { notificationArrayCount++; } notifier(); } function notifierLeader(){ cb.setTimeout(notifierTimerLeader,(cb.settings.frequencyNotifier*1100+(30000*leaderMulti))); } function notifierTimerLeader(){ if(leaderBoard[1] !== ""){ if(leaderBoard[2] !== ""){ sendMessage("\u2665 Today's Champions \u2665\n\uD83C\uDFC6 1st. "+leaderBoard[0]+" "+totalTokens[leaderBoard[0]]+"\n\uD83C\uDFC6 2nd. "+leaderBoard[1]+" "+totalTokens[leaderBoard[1]]+"\n\uD83C\uDFC6 3rd. "+leaderBoard[2]+" "+totalTokens[leaderBoard[2]],'','','#000','bold'); } else { sendMessage("\u2665 Today's Champions \u2665\n\uD83C\uDFC6 1st. "+leaderBoard[0]+" "+totalTokens[leaderBoard[0]]+"\n\uD83C\uDFC6 2nd. "+leaderBoard[1]+" "+totalTokens[leaderBoard[1]],'','','#000','bold'); } leaderMulti++; } if(leaderMulti>120) { leaderMulti = 20; } notifierLeader(); } function chronometer(){ minOn++; getColor(); for(var key in viewersTimeOn) { if((minOn - viewersTimeOn[key])==1){ var outStr = dashLine; outStr += "\n\u2665 "+cb.settings.welcomeMessageString; sendMessage(outStr+"\n"+dashLine,key,'',color,'bold'); } if((minOn - viewersTimeOn[key])==181){ var outStr = dashLine; outStr += "\n\u2665 "+cb.settings.giftEarnedMessage; sendMessage(outStr+"\n"+dashLine,key,'',color,'bold'); var notification = key + " won the prize for staying online for more than 3 hours."; sendMessage(notification,all,'',color,'bold'); } } if(minOn % 10 == 0){ utPerTenMin.push(userTokensOnline); otPerTenMin.push(totalUserOnline); } if(minOn % 60 == 0){ tokensStatsHour.push(tokensStats); sirsHour.push(howManySirs()); tokensStats=0; var temp = totalTokensRecord; var toMe = 0; for(var key in totalTokens) { temp += totalTokens[key]; } for (var i = 0; i < mods.length; i++) { if(totalTokens[mods[i]]>0){ temp -= totalTokens[mods[i]]; toMe += totalTokens[mods[i]]; } } darkPurpleHour.push(darkPurple); darkPurple = 0; tipped_tons_recently = []; sendMessage("Hour "+(minOn/60)+": "+temp+", "+toMe,mods,'#e50000','#000000','bold'); } cb.setTimeout(chronometer, 60000); } function onEnterG(){ onEnterGTime = Math.floor(Math.random() * 600000); onEnterGTimeLeft = 600000 - onEnterGTime; cb.setTimeout(onEnterGSend, onEnterGTime); } function onEnterGSend(){ var guesserF = ""; do { guesserF = guessers[Math.floor(Math.random() * guessers.length)]; } while (viewersTimeOn[guesserF]!=undefined) sendMessage(':emmherald GUESSER %USER% has entered to the palace!! :e-wizin'.replace('%USER%', guesserF),'','#8ce0ad','#000000','bold'); cb.setTimeout(onEnterG, onEnterGTimeLeft); } function howManySirs(){ var sirs = 0; for(var key in viewersTimeOn) { if(masters.contains(key) || dukes.contains(key) || counts.contains(key) || barons.contains(key) || heroes.contains(key) || badboys.contains(key) || loves.contains(key)){ sirs++; } } return sirs; } function getColor() { color = notificationsColorArray[Math.floor(Math.random() * notificationsColorArray.length)]; //color ="#654987"; } function silenceThis(user,me){ if(!silencedUsers.contains(user)){ silencedUsers.push(user); sendMessage(user+" silenced",all,'','#0000ff','bold'); } else { sendMessage(user+" is already silenced.",me,'','#0000ff','bold'); } } function unSilenceThis(user,me){ if(silencedUsers.contains(user)){ var index = silencedUsers.indexOf(user); if (index > -1) { silencedUsers.splice(index, 1); } sendMessage(user+" was unsilenced",all,'','#0000ff','bold'); } else { sendMessage(user+" hasn't been silenced.",me,'','#0000ff','bold'); } } function removeFromOtherRank(user, currentRank){ switch(currentRank) { case "lover": if (masters.contains(user)) { var index = masters.indexOf(user); if (index > -1) { masters.splice(index, 1); } } if (grandDukes.contains(user)) { var index = grandDukes.indexOf(user); if (index > -1) { grandDukes.splice(index, 1); } } if (dukes.contains(user)) { var index = dukes.indexOf(user); if (index > -1) { dukes.splice(index, 1); } } if (counts.contains(user)) { var index = counts.indexOf(user); if (index > -1) { counts.splice(index, 1); } } if (barons.contains(user)) { var index = barons.indexOf(user); if (index > -1) { barons.splice(index, 1); } } if (loves.contains(user)) { var index = loves.indexOf(user); if (index > -1) { loves.splice(index, 1); } } if (badboys.contains(user)) { var index = badboys.indexOf(user); if (index > -1) { badboys.splice(index, 1); } } if (heroes.contains(user)) { var index = heroes.indexOf(user); if (index > -1) { heroes.splice(index, 1); } } break; case "masters": if (grandDukes.contains(user)) { var index = grandDukes.indexOf(user); if (index > -1) { grandDukes.splice(index, 1); } } if (dukes.contains(user)) { var index = dukes.indexOf(user); if (index > -1) { dukes.splice(index, 1); } } if (counts.contains(user)) { var index = counts.indexOf(user); if (index > -1) { counts.splice(index, 1); } } if (barons.contains(user)) { var index = barons.indexOf(user); if (index > -1) { barons.splice(index, 1); } } if (loves.contains(user)) { var index = loves.indexOf(user); if (index > -1) { loves.splice(index, 1); } } if (badboys.contains(user)) { var index = badboys.indexOf(user); if (index > -1) { badboys.splice(index, 1); } } if (heroes.contains(user)) { var index = heroes.indexOf(user); if (index > -1) { heroes.splice(index, 1); } } break; case "grandDukes": if (dukes.contains(user)) { var index = dukes.indexOf(user); if (index > -1) { dukes.splice(index, 1); } } if (counts.contains(user)) { var index = counts.indexOf(user); if (index > -1) { counts.splice(index, 1); } } if (barons.contains(user)) { var index = barons.indexOf(user); if (index > -1) { barons.splice(index, 1); } } if (loves.contains(user)) { var index = loves.indexOf(user); if (index > -1) { loves.splice(index, 1); } } if (badboys.contains(user)) { var index = badboys.indexOf(user); if (index > -1) { badboys.splice(index, 1); } } if (heroes.contains(user)) { var index = heroes.indexOf(user); if (index > -1) { heroes.splice(index, 1); } } break; case "dukes": if (counts.contains(user)) { var index = counts.indexOf(user); if (index > -1) { counts.splice(index, 1); } } if (barons.contains(user)) { var index = barons.indexOf(user); if (index > -1) { barons.splice(index, 1); } } if (loves.contains(user)) { var index = loves.indexOf(user); if (index > -1) { loves.splice(index, 1); } } if (badboys.contains(user)) { var index = badboys.indexOf(user); if (index > -1) { badboys.splice(index, 1); } } if (heroes.contains(user)) { var index = heroes.indexOf(user); if (index > -1) { heroes.splice(index, 1); } } break; case "counts": if (barons.contains(user)) { var index = barons.indexOf(user); if (index > -1) { barons.splice(index, 1); } } if (loves.contains(user)) { var index = loves.indexOf(user); if (index > -1) { loves.splice(index, 1); } } if (badboys.contains(user)) { var index = badboys.indexOf(user); if (index > -1) { badboys.splice(index, 1); } } if (heroes.contains(user)) { var index = heroes.indexOf(user); if (index > -1) { heroes.splice(index, 1); } } break; case "barons": if (loves.contains(user)) { var index = loves.indexOf(user); if (index > -1) { loves.splice(index, 1); } } if (badboys.contains(user)) { var index = badboys.indexOf(user); if (index > -1) { badboys.splice(index, 1); } } if (heroes.contains(user)) { var index = heroes.indexOf(user); if (index > -1) { heroes.splice(index, 1); } } break; case "heroes": if (loves.contains(user)) { var index = loves.indexOf(user); if (index > -1) { loves.splice(index, 1); } } if (badboys.contains(user)) { var index = badboys.indexOf(user); if (index > -1) { badboys.splice(index, 1); } } break; case "badboys": if (loves.contains(user)) { var index = loves.indexOf(user); if (index > -1) { loves.splice(index, 1); } } break; } } function init(){ cb.setTimeout(onEnterG, 60000); if(cb.settings.gift){ cb.setTimeout(chronometer, 20000); } if(cb.settings.rotatingNotifier){ notificationArray = cb.settings.rotatingNotifierMessages.split(","); notifier(); notifierLeader(); } if(cb.settings.ohmibodNotification == 'Yes'){ ohmibodNotifier(); } if(cb.settings.automod){ badWordsSettings = cb.settings.badwords.split(','); for(var i = 0; i < badWordsSettings.length; i++) { badWordsSettings[i] = badWordsSettings[i].toLowerCase(); badWordsSettingsCounter[badWordsSettings[i]] = 0; } highestTipperUser = cb.settings.highestTipperUser; highestTipperMin = cb.settings.highestTipperMin; } if(cb.settings.notificationsColor){ notificationsColorArray = cb.settings.notificationsColor.split(','); color = notificationsColorArray[Math.floor(Math.random() * notificationsColorArray.length)]; } totalTokens[""] = 0; all = mods.concat(roomHost); } init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.