Bots Home
|
Create an App
testing me colors
Author:
219yearoldcouple
Description
Source Code
Launch Bot
Current Users
Created by:
219yearoldcouple
/* -------------------------------------------------------------------- * Name: "I am your true color" * Author: Shaggy ("18YearOldCouple" on cb) * VIP idea: mr_likes_it_ * -------------------------------------------------------------------- * Version: 2 revision 1 * Built on: 13 June 2016 * -------------------------------------------------------------------- * Additional notes: * Feel free to use and edit! :) Email Shaggy of 18yearoldcouple for help. * 18yearoldcouple@gmail.com * --------------------------------------------------------------------*/ // -------------------------------------------------- cb.sendNotice("I am your true color app has started.", cb.room_slug, "", "#9966ff", "bolder"); cb.sendNotice("Version: 2.1 By: Shaggy of 18yearoldcouple", cb.room_slug, "", "#9966ff", "bolder"); cb.sendNotice("Build date: 13 June 2016 Revision date: 9 Aug 2016", cb.room_slug, "", "#9966ff", "bolder"); cb.sendNotice("You just started an app by 18yearoldcouple, congrats.", "", "", "#9966ff", "bolder"); var TEXT = { preset_colors : { '/red': '#FF0000', '/green': '#00aa00', '/blue': '#0000FF', '/pink': '#FF00FF', '/yellow': '#AAAA00', '/cyan': '#008888', '/purple': '#990099'}, colors : [], fonts : [], available_fonts : ["default", "Arial, Helvetica", "Bookman Old Style", '"Comic Sans MS", cursive', '"Courrier New"',"Lucida", "Palantino", "Tahoma, Geneva", '"Times New Roman"'], min_level : 0.5, gamma : 0.1 }; var CUMTIMER = { dashLine : "------------------------------------------------------------", timerMinutes : 0, timerSeconds : 1, addedSeconds : 0 }; CUMTIMERstartTime = new Date(); var VIP = { all : [["18yearoldcouple", 10001,1],["19yearoldcouple", 10001,1]], changed : [["18yearoldcouple", 10001,1],["19yearoldcouple", 10001,1]], colorList : [["18yearoldcouple", 10001],["19yearoldcouple", 10001]], colorListSorted : [], colorListOriginal : [], modList : [], modListOriginal : [], dickList : [], dickListOriginal : [], universalList : [], universalListOriginal : [], changedList : [], botList : [], colorEntered : [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0], rainbowListEntered : cb.settings.rainbowList, MAXLEVELS : 10 }; if(cb.room_slug == "18yearoldcouple"||cb.room_slug == "19yearoldcouple"){VIP.colorList = [["20yearoldcouple", 10001],["21yearoldcouple", 1]]; } var MAIN = { ranAlread : false, isYOC : (cb.room_slug == "18yearoldcouple" || cb.room_slug == "19yearoldcouple" || cb.room_slug == "119yearoldcouple" || cb.room_slug == "120yearoldcouple"|| cb.room_slug == "219yearoldcouple") }; var POLL = { fg_warn : '#FF0000', txt_never : 'When I end it', txt_minutes : 'After x minutes', txt_votecount : 'After x votes', txt_wincount : 'When one option reaches x votes', opt_votes : [0, 0, 0, 0, 0, 0, 0], opt_lead : 0, voted : [false,false], opt_labels : [cb.settings.opt1_label, cb.settings.opt2_label, cb.settings.opt3_label, cb.settings.opt4_label, cb.settings.opt5_label, cb.settings.opt6_label,cb.settings.opt7_label], opt_tokens : [cb.settings.opt1_tokens, cb.settings.opt2_tokens, cb.settings.opt3_tokens, cb.settings.opt4_tokens, cb.settings.opt5_tokens, cb.settings.opt6_tokens, cb.settings.opt7_tokens], mins_remain : cb.settings.poll_count, votes_remain : cb.settings.poll_count, poll_running : true, captains : [], tempTotalAmount : 0 }; var MENU = { separator_char : "| ", tipMenuMsg : '', menuOn : false, menuShort : false, menuShortMsg : "", MAXITEMS : 35, tipmenuprice : [], tipmenuitem : [], tipmenuitemr : [], MAXSEP : 6, tipmenuitem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-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/],[/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/,/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/,/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/,/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/,/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/,/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/,/^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/]], separators : [{label:'Hearts',shortcut:':heart2'},{label:'Glitter',shortcut:':pixelglitter'},{label:'Flowers',shortcut:':tinyflower2'},{label:'Bow',shortcut:':bluebow'},{label:'Hearts2',shortcut:':pixelheart'},{label:'Smiley',shortcut:':smile'}] }; var DICE = { playingDice : false, diceArray : [], normalArray : [], rareArray : [], langTokens : (cb.settings.tokens > 1) ? 'tokens' : 'token', diceSides : [1, 2, 3, 4, 5, 6], lastPrizeWon : '--', rollCounter : 0, winners : [] }; if(MAIN.isYOC){ cb.settings_choices = [ // TOKEN POLL SETTINGS {name:"rainbowList",label:"Put saved list in here, or use /load command in room:"+" PS: Enter in saved list with no spaces, and no /load in-front.",type:"str",minLength:1,maxLength:14048,required:false}, {name:"box1",label:"BOX 1",type:"str",minLength:1,maxLength:2048,required:false}, {name:"box2",label:"BOX 2",type:"str",minLength:1,maxLength:2048,required:false}, { name: "ignoreTheRest2", label: "------------------------------------------------------------------------------------------------- " + " Part 1) ------------- TOKEN POLL :) ------------------------------------------------- " + "------------------------------------------------------------------------------------------ ", required: !1, type: "choice" }, {name: 'poll_on', type: 'choice', label: 'Do you want to use a token poll?', choice1: "Yes", choice2: "No", defaultValue: "No"}, {name: 'foreground', type: 'str', minLength: 1, maxLength: 7, label: 'Poll Text Color (Hex color codes start with #):', defaultValue:"#FFFFFF"}, {name: 'background', type: 'str', minLength: 1, maxLength: 7, label: 'Poll Background Color:', defaultValue:"#0629AC"}, {name: 'poll_title', type: 'str', minLength: 1, maxLength: 255, label: 'Poll Title',defaultValue: "My Poll"}, {name: 'board_interval', type: 'int', minValue: 1, default: 3, label: 'Board Display Interval (mins)'}, {name: 'poll_mode', type: 'choice', label: 'Poll ends...', choice1: POLL.txt_never, choice2: POLL.txt_minutes, choice3: POLL.txt_votecount, choice4: POLL.txt_wincount, defaultValue: POLL.txt_minutes}, {name: 'poll_count', type: 'int', minValue: 1, default: 15, label: '... Where x is ...'}, {name: 'opt1_label', type: 'str', minLength: 1, maxLength: 255, label: 'Option 1',defaultValue: "I Suck!"}, {name: 'opt1_tokens', type: 'int', minValue: 1, default: 10, label: 'Option 1 tokens'}, {name: 'opt2_label', type: 'str', minLength: 1, maxLength: 255, label: 'Option 2',defaultValue: "I Rock!"}, {name: 'opt2_tokens', type: 'int', minValue: 1, default: 11, label: 'Option 2 tokens'}, {name: 'opt3_label', type: 'str', minLength: 1, maxLength: 255, label: 'Option 3', required: false}, {name: 'opt3_tokens', type: 'int', minValue: 0, default: 0, label: 'Option 3 tokens', required: false}, {name: 'opt4_label', type: 'str', minLength: 1, maxLength: 255, label: 'Option 4', required: false}, {name: 'opt4_tokens', type: 'int', minValue: 0, default: 0, label: 'Option 4 tokens', required: false}, {name: 'opt5_label', type: 'str', minLength: 1, maxLength: 255, label: 'Option 5', required: false}, {name: 'opt5_tokens', type: 'int', minValue: 0, default: 0, label: 'Option 5 tokens', required: false}, {name: 'opt6_label', type: 'str', minLength: 1, maxLength: 266, label: 'Option 6', required: false}, {name: 'opt6_tokens', type: 'int', minValue: 0, default: 0, label: 'Option 6 tokens', required: false}, {name: 'opt7_label', type: 'str', minLength: 1, maxLength: 277, label: 'Option 7', required: false}, {name: 'opt7_tokens', type: 'int', minValue: 0, default: 0, label: 'Option 7 tokens', required: false}, //tip menu { name: "ignoreTheRest4", label: "----------------------------------------------------------------------------------------------- " + " Part 2) ------------- TIP MENU :) ------------------------------------------------- " + "------------------------------------------------------------------------------------------ ", required: !1, type: "choice" }, {name:"tipMenu",label:"This is an optional tip menu. :) Start and stop with /menuoff & /menuon "+"Would you like to start the menu immediately?",type:'choice',choice1:'Yes',choice2:'No',defaultValue:'No',required:false}, {name:"tipMENU.menuShort",label:"Send the full menu on the rotation? If NO, the below message will display instead: ",type:'choice',choice1:'Yes',choice2:'No',defaultValue:'Yes',required:false}, {name:"addOneOption",label:"If NO, would you like to send a random tip menu option with each reminder?",type:'choice',choice1:'Yes',choice2:'No',defaultValue:'No',required:false}, {name: 'shortMsg', type: 'str', label: '!menu reminder:', defaultValue:"TIP MENU ACTIVE! type !menu to show!"}, {name: 'sepchar', type: 'choice', choice1: 'Vertical Bar', choice2: 'Hearts', choice3:'Glitter',choice4:'Flowers',choice5:'Bow',choice6:'Hearts2',choice7:'Smiley',defaultValue: 'Vertical Bar', label: "Separator character"}, {name:'item1', type:'str', label:'Item 1 (eg 10--flash tits)'}, {name:'item2', type:'str', required: false, label:'Item 2'}, {name:'item3', type:'str', required: false, label:'Item 3'}, {name:'item4', type:'str', required: false, label:'Item 4'}, {name:'item5', type:'str', required: false, label:'Item 5'}, {name:'item6', type:'str', required: false, label:'Item 6'}, {name:'item7', type:'str', required: false, label:'Item 7'}, {name:'item8', type:'str', required: false, label:'Item 8'}, {name:'item9', type:'str', required: false, label:'Item 9'}, {name:'item10', type:'str', required: false, label:'Item 10'}, {name:'item11', type:'str', required: false, label:'Item 11'}, {name:'item12', type:'str', required: false, label:'Item 12'}, {name:'item13', type:'str', required: false, label:'Item 13'}, {name:'item14', type:'str', required: false, label:'Item 14'}, {name:'item15', type:'str', required: false, label:'Item 15'}, {name:'item16', type:'str', required: false, label:'Item 16'}, {name:'item17', type:'str', required: false, label:'Item 17'}, {name:'item18', type:'str', required: false, label:'Item 18'}, {name:'item19', type:'str', required: false, label:'Item 19'}, {name:'item20', type:'str', required: false, label:'Item 20'}, {name:'item21', type:'str', required: false, label:'Item 21'}, {name:'item22', type:'str', required: false, label:'Item 22'}, {name:'item23', type:'str', required: false, label:'Item 23'}, {name:'item24', type:'str', required: false, label:'Item 24'}, {name:'item25', type:'str', required: false, label:'Item 25'}, {name:'item26', type:'str', required: false, label:'Item 26'}, {name:'item27', type:'str', required: false, label:'Item 27'}, {name:'item28', type:'str', required: false, label:'Item 28'}, {name:'item29', type:'str', required: false, label:'Item 29'}, {name:'item30', type:'str', required: false, label:'Item 30'}, {name:'item31', type:'str', required: false, label:'Item 31'}, {name:'item32', type:'str', required: false, label:'Item 32'}, {name:'item33', type:'str', required: false, label:'Item 33'}, {name:'item34', type:'str', required: false, label:'Item 34'}, {name:'item35', type:'str', required: false, label:'Item 35'}, { name: "ignoreTheRest8", label: "------------------------------------------------------------------------------- " + " -----Response Messages: (Sends a reply to the tipper)------ " + "------------------------------------------------------------------------------------------ ", required: !1, type: "choice" }, {name:'itemr1', type:'str', required: false, label:'Reply 1 (eg tell us who!)'}, {name:'itemr2', type:'str', required: false, label:'Reply 2'}, {name:'itemr3', type:'str', required: false, label:'Reply 3'}, {name:'itemr4', type:'str', required: false, label:'Reply 4'}, {name:'itemr5', type:'str', required: false, label:'Reply 5'}, {name:'itemr6', type:'str', required: false, label:'Reply 6'}, {name:'itemr7', type:'str', required: false, label:'Reply 7'}, {name:'itemr8', type:'str', required: false, label:'Reply 8'}, {name:'itemr9', type:'str', required: false, label:'Reply 9'}, {name:'itemr10', type:'str', required: false, label:'Reply 10'}, {name:'itemr11', type:'str', required: false, label:'Reply 11'}, {name:'itemr12', type:'str', required: false, label:'Reply 12'}, {name:'itemr13', type:'str', required: false, label:'Reply 13'}, {name:'itemr14', type:'str', required: false, label:'Reply 14'}, {name:'itemr15', type:'str', required: false, label:'Reply 15'}, {name:'itemr16', type:'str', required: false, label:'Reply 16'}, {name:'itemr17', type:'str', required: false, label:'Reply 17'}, {name:'itemr18', type:'str', required: false, label:'Reply 18'}, {name:'itemr19', type:'str', required: false, label:'Reply 19'}, {name:'itemr20', type:'str', required: false, label:'Reply 20'}, {name:'itemr21', type:'str', required: false, label:'Reply 21'}, {name:'itemr22', type:'str', required: false, label:'Reply 22'}, {name:'itemr23', type:'str', required: false, label:'Reply 23'}, {name:'itemr24', type:'str', required: false, label:'Reply 24'}, {name:'itemr25', type:'str', required: false, label:'Reply 25'}, {name:'itemr26', type:'str', required: false, label:'Reply 26'}, {name:'itemr27', type:'str', required: false, label:'Reply 27'}, {name:'itemr28', type:'str', required: false, label:'Reply 28'}, {name:'itemr29', type:'str', required: false, label:'Reply 29'}, {name:'itemr30', type:'str', required: false, label:'Reply 30'}, {name:'itemr31', type:'str', required: false, label:'Reply 31'}, {name:'itemr32', type:'str', required: false, label:'Reply 32'}, {name:'itemr33', type:'str', required: false, label:'Reply 33'}, {name:'itemr34', type:'str', required: false, label:'Reply 34'}, {name:'itemr35', type:'str', required: false, label:'Reply 35'}, { name: "ignoreTheRest11", label: "------------------------------------------------------------------------------- " + " -----Targeted Messages: (triggered by keyword in message)------ " + "------------------------------------------------------------------------------------------ ", required: !1, type: "choice" }, {name:'itemtrigger1', type:'str', required: false, label:'KeyWord 1 (eg footjob!)'}, {name:'itemtrigger2', type:'str', required: false, label:'KeyWord 2'}, {name:'itemtrigger3', type:'str', required: false, label:'KeyWord 3'}, {name:'itemtrigger4', type:'str', required: false, label:'KeyWord 4'}, {name:'itemtrigger5', type:'str', required: false, label:'KeyWord 5'}, {name:'itemtrigger6', type:'str', required: false, label:'KeyWord 6'}, {name:'itemtrigger7', type:'str', required: false, label:'KeyWord 7'}, {name:'itemtrigger8', type:'str', required: false, label:'KeyWord 8'}, {name:'itemtrigger9', type:'str', required: false, label:'KeyWord 9'}, {name:'itemtrigger10', type:'str', required: false, label:'KeyWord 10'}, {name:'itemtrigger11', type:'str', required: false, label:'KeyWord 11'}, {name:'itemtrigger12', type:'str', required: false, label:'KeyWord 12'}, {name:'itemtrigger13', type:'str', required: false, label:'KeyWord 13'}, {name:'itemtrigger14', type:'str', required: false, label:'KeyWord 14'}, {name:'itemtrigger15', type:'str', required: false, label:'KeyWord 15'}, {name:'itemtrigger16', type:'str', required: false, label:'KeyWord 16'}, {name:'itemtrigger17', type:'str', required: false, label:'KeyWord 17'}, {name:'itemtrigger18', type:'str', required: false, label:'KeyWord 18'}, {name:'itemtrigger19', type:'str', required: false, label:'KeyWord 19'}, {name:'itemtrigger20', type:'str', required: false, label:'KeyWord 20'}, {name:'itemtrigger21', type:'str', required: false, label:'KeyWord 21'}, {name:'itemtrigger22', type:'str', required: false, label:'KeyWord 22'}, {name:'itemtrigger23', type:'str', required: false, label:'KeyWord 23'}, {name:'itemtrigger24', type:'str', required: false, label:'KeyWord 24'}, {name:'itemtrigger25', type:'str', required: false, label:'KeyWord 25'}, {name:'itemtrigger26', type:'str', required: false, label:'KeyWord 26'}, {name:'itemtrigger27', type:'str', required: false, label:'KeyWord 27'}, {name:'itemtrigger28', type:'str', required: false, label:'KeyWord 28'}, {name:'itemtrigger29', type:'str', required: false, label:'KeyWord 29'}, {name:'itemtrigger30', type:'str', required: false, label:'KeyWord 30'}, {name:'itemtrigger31', type:'str', required: false, label:'KeyWord 31'}, {name:'itemtrigger32', type:'str', required: false, label:'KeyWord 32'}, {name:'itemtrigger33', type:'str', required: false, label:'KeyWord 33'}, {name:'itemtrigger34', type:'str', required: false, label:'KeyWord 34'}, {name:'itemtrigger35', type:'str', required: false, label:'KeyWord 35'}, {name:'noticecolor', type:'str', label:'Menu text color (html code default red #FF0000)', defaultValue: '#FF0000'}, {name:'noticeback', type:'str', label:'Menu background color (html code default white #FFFFFF)', defaultValue: '#FFFFFF'}, {name: 'chat_ad', type:'int', minValue: 1, maxValue: 999, defaultValue: 1, label: 'Delay in minutes between notice being displayed (minimum 1)'}, //end tip menu { name: "ignoreTheRest9", label: "----------------------------------------------------------------------------------------------- " + " Part 3) ------------- DICE GAME :) ------------------------------------------------- " + "------------------------------------------------------------------------------------------ ", required: !1, type: "choice" }, {name: 'dice_on', type: 'choice', label: 'Do you want to start dice game immidiatly? You can use commands /diceon and /diceoff during show.', choice1: "Yes", choice2: "No", defaultValue: "No"}, {name: 'dicePrice', type: 'int', minValue: 1, default: 10, label: 'Tokens per roll:'}, {name: 'foregroundDice', type: 'str', minLength: 1, maxLength: 7, label: 'Dice Game Text Color (Hex color codes start with #):', defaultValue:"#FFFFFF"}, {name: 'backgroundDice', type: 'str', minLength: 1, maxLength: 7, label: 'Dice Game Background Color:', defaultValue:"#0629AC"}, {name: 'notice_wait_time', type: 'choice', label: 'Notification Time (in minutes)', choice1: 1, choice2: 2, choice3: 3, choice4: 4, choice5: 5, choice6: 10, choice7: 15, choice8: 20, choice9: 25, choice10: 30, choice11: 45, choice12: 60, defaultValue: 10}, {name: 'prize_2', type: 'str', label: 'Prize 2:', required: false}, {name: 'prize_3', type: 'str', label: 'Prize 3:', required: false}, {name: 'prize_4', type: 'str', label: 'Prize 4:', required: false}, {name: 'prize_5', type: 'str', label: 'Prize 5:', required: false}, {name: 'prize_6', type: 'str', label: 'Prize 6:', required: false}, {name: 'prize_7', type: 'str', label: 'Prize 7:', required: false}, {name: 'prize_8', type: 'str', label: 'Prize 8:', required: false}, {name: 'prize_9', type: 'str', label: 'Prize 9:', required: false}, {name: 'prize_10', type: 'str', label: 'Prize 10:', required: false}, {name: 'prize_11', type: 'str', label: 'Prize 11:', required: false}, {name: 'prize_12', type: 'str', label: 'Prize 12:', required: false}, {name: 'prize_13', type: 'str', label: 'Prize 13 (very rare):', required: false}, {name: 'prize_14', type: 'str', label: 'Prize 14 (very rare):', required: false}, {name: 'prize_15', type: 'str', label: 'Prize 15 (very rare):', required: false}, {name: 'dice_rand', type: 'choice', label: 'OPTIONAL: Leave "blanks" above, and fill them in randomly with each show from the options below. (to increase show variety)', choice1: "",choice2: "", defaultValue: "",required: false}, {name: 'normal_1', type: 'str', label: 'Extra Normal 1:', required: false}, {name: 'normal_2', type: 'str', label: 'Extra Normal 2:', required: false}, {name: 'normal_3', type: 'str', label: 'Extra Normal 3:', required: false}, {name: 'normal_4', type: 'str', label: 'Extra Normal 4:', required: false}, {name: 'normal_5', type: 'str', label: 'Extra Normal 5:', required: false}, {name: 'normal_6', type: 'str', label: 'Extra Normal 6:', required: false}, {name: 'normal_7', type: 'str', label: 'Extra Normal 7:', required: false}, {name: 'normal_8', type: 'str', label: 'Extra Normal 8:', required: false}, {name: 'normal_9', type: 'str', label: 'Extra Normal 9:', required: false}, {name: 'normal_10', type: 'str', label: 'Extra Normal 10:', required: false}, {name: 'normal_11', type: 'str', label: 'Extra Normal 11:', required: false}, {name: 'normal_12', type: 'str', label: 'Extra Normal 12:', required: false}, {name: 'normal_13', type: 'str', label: 'Extra Normal 13:', required: false}, {name: 'normal_14', type: 'str', label: 'Extra Normal 14:', required: false}, {name: 'normal_15', type: 'str', label: 'Extra Normal 15:', required: false}, {name: 'normal_16', type: 'str', label: 'Extra Normal 16:', required: false}, {name: 'normal_17', type: 'str', label: 'Extra Normal 17:', required: false}, {name: 'normal_18', type: 'str', label: 'Extra Normal 18:', required: false}, {name: 'normal_19', type: 'str', label: 'Extra Normal 19:', required: false}, {name: 'rare_1', type: 'str', label: 'Extra RARE 1:', required: false}, {name: 'rare_2', type: 'str', label: 'Extra RARE 2:', required: false}, {name: 'rare_3', type: 'str', label: 'Extra RARE 3:', required: false}, {name: 'rare_4', type: 'str', label: 'Extra RARE 4:', required: false}, {name: 'rare_5', type: 'str', label: 'Extra RARE 5:', required: false}, {name: 'rare_6', type: 'str', label: 'Extra RARE 6:', required: false}, {name: 'rare_7', type: 'str', label: 'Extra RARE 7:', required: false}, {name: 'rare_8', type: 'str', label: 'Extra RARE 8:', required: false}, {name: 'rare_9', type: 'str', label: 'Extra RARE 9:', required: false}, { name: "ignoreTheRest6", label: "------------------------------------------------------------------------------------------------ " + " Part 4) ------------- Color People's Text... If you want :) ------------------- " + "------------------------------------------------------------------------------------------ ", required: !1, type: "choice" }, {name:"whatMode",label:"Do you want colors to be assigned randomly or in order by when users join the room?",type:'choice',choice1:'Random',choice2:'Ordered',choice3:'Disabled',defaultValue:'Disabled'}, {name:"typicalTime",type:"str",label:"If using Ordered Colors, how long should a full color cycle be? (example: 1.5 for an hour and a half)",defaultValue:'1.5',required:false}, { name: "ignoreTheRest", label: "If you aren't 18yearoldcouple, guess what? You're done! You can ignore the rest!" + " Congrats. :)", required: !1, type: "choice" }, { name: "ignoreTheRest7", label: "------------------------------------------------------------------------------------------------ " + " Part 4) ------------- Ignore the rest. :) --------------------------------------- " + "------------------------------------------------------------------------------------------ ", required: !1, type: "choice" }, { choice1: "", choice2: "", defaultValue: "", label: "Shameless Plug: If you want your own VIP Club or another Custom App, you can ema" + "il 18yearoldcouple@gmail.com", name: "myplug", required: !1, type: "choice" }, {name:'changeStage',label:'Do you want to increase ticketprice when you reach 1000 viewers?',type:'choice',choice1:'Yes',choice2:'No',defaultValue:'No'}, {name:'tipTitles',label:'Do you want to display users\' tip totals as titles?'+" Note: VIP club will have lifetime tips as titles."+" Also: If you're using ultrabot as-well, disable tip-titles there and enable here.",type:'choice',choice1:'Yes',choice2:'No',defaultValue:'No'}, {name:'tipReminder',label:'Do you want to send users\' a notice of how many tips left until the next VIP level in the chat?',type:'choice',choice1:'Yes',choice2:'No',defaultValue:'No'}, {name:'addTop',label:'What tip total gets a user in the /addvip command for CrazyTicket show?',type:"int",required:false}, {name:'tipPoll',label:'What tip total gets a user double votes on the token poll?'+' Leave 0 if disabled',type:"int",default:0,required:false}, {name:'freeVote',label:'What tip total gets a user a free poll vote?'+' Leave 0 if disabled',type:"int",default:0,required:false}, { name: "lvl1name", label: "LVL1 (lowest level) Name:", type: "str", maxLength: 30, defaultValue: "The Awesome Club" , required: false}, { name: "lvl1color", label: "LVL1 HI-LITE", type: "str", maxLength: 7, defaultValue: "#f3d8d8" }, { name: "lvl1icon", label: "LVL1 IMAGE: (with colon):", type: "str", maxLength: 30, defaultValue: ":smallCrown" , required: false}, { name: "lvl1promote", label: "LVL1 Promotion Message: ", type: "str", maxLength: 100, defaultValue: "Welcome to VIP LVL1",required: false}, { name: "lvl1yes", label: "LVL1 Want to use:", type: "choice", choice1: "Yes", choice2: "No", defaultValue: "No", required: false}, { name: "lvl1tip", label: "LVL1 amount: " + "No Lower than 1000. Enter in Numbers only, no commas. No commas!!", type: 'int', maxValue: 100000, minValue: 1000, defaultValue: 1000}, { name: "lvl2name", label: "LVL2 Name:", type: "str", maxLength: 30, defaultValue: "The Awesome Club" , required: false}, { name: "lvl2color", label: "LVL2 HI-LITE", type: "str", maxLength: 7, defaultValue: "#f3d8d8" }, { name: "lvl2icon", label: "LVL2 IMAGE: (with colon):", type: "str", maxLength: 30, defaultValue: ":smallCrown" , required: false}, { name: "lvl2promote", label: "LVL2 Promotion Message: ", type: "str", maxLength: 100, defaultValue: "Welcome to VIP LVL2",required: false}, { name: "lvl2yes", label: "LVL2 Want to use:", type: "choice", choice1: "Yes", choice2: "No", defaultValue: "No", required: false}, { name: "lvl2tip", label: "LVL2 amount: ", type: 'int', maxValue: 100000, minValue: 1000, defaultValue: 1000}, { name: "lvl3name", label: "LVL3 Name:", type: "str", maxLength: 30, defaultValue: "The Awesome Club" , required: false}, { name: "lvl3color", label: "LVL3 HI-LITE", type: "str", maxLength: 7, defaultValue: "#f3d8d8" }, { name: "lvl3icon", label: "LVL3 IMAGE: (with colon):", type: "str", maxLength: 30, defaultValue: ":smallCrown" , required: false}, { name: "lvl3promote", label: "LVL3 Promotion Message: ", type: "str", maxLength: 100, defaultValue: "Welcome to VIP LVL3",required: false}, { name: "lvl3yes", label: "LVL3 Want to use:", type: "choice", choice1: "Yes", choice2: "No", defaultValue: "No", required: false}, { name: "lvl3tip", label: "LVL3 amount: ", type: 'int', maxValue: 100000, minValue: 1000, defaultValue: 1000}, { name: "lvl4name", label: "LVL4 Name:", type: "str", maxLength: 30, defaultValue: "The Awesome Club" , required: false}, { name: "lvl4color", label: "LVL4 HI-LITE", type: "str", maxLength: 7, defaultValue: "#f3d8d8" }, { name: "lvl4icon", label: "LVL4 IMAGE: (with colon):", type: "str", maxLength: 30, defaultValue: ":smallCrown" , required: false}, { name: "lvl4promote", label: "LVL4 Promotion Message: ", type: "str", maxLength: 100, defaultValue: "Welcome to VIP LVL4",required: false}, { name: "lvl4yes", label: "LVL4 Want to use:", type: "choice", choice1: "Yes", choice2: "No", defaultValue: "No", required: false}, { name: "lvl4tip", label: "LVL4 amount: ", type: 'int', maxValue: 100000, minValue: 1000, defaultValue: 1000}, { name: "lvl5name", label: "LVL5 Name:", type: "str", maxLength: 30, defaultValue: "The Awesome Club" , required: false}, { name: "lvl5color", label: "LVL5 HI-LITE", type: "str", maxLength: 7, defaultValue: "#f3d8d8" }, { name: "lvl5icon", label: "LVL5 IMAGE: (with colon):", type: "str", maxLength: 30, defaultValue: ":smallCrown" , required: false}, { name: "lvl5promote", label: "LVL5 Promotion Message: ", type: "str", maxLength: 100, defaultValue: "Welcome to VIP LVL5",required: false}, { name: "lvl5yes", label: "LVL5 Want to use:", type: "choice", choice1: "Yes", choice2: "No", defaultValue: "No", required: false}, { name: "lvl5tip", label: "LVL5 amount: ", type: 'int', maxValue: 100000, minValue: 1000, defaultValue: 1000}, { name: "lvl6name", label: "LVL6 Name:", type: "str", maxLength: 30, defaultValue: "The Awesome Club" , required: false}, { name: "lvl6color", label: "LVL6 HI-LITE", type: "str", maxLength: 7, defaultValue: "#f3d8d8" }, { name: "lvl6icon", label: "LVL6 IMAGE: (with colon):", type: "str", maxLength: 30, defaultValue: ":smallCrown" , required: false}, { name: "lvl6promote", label: "LVL6 Promotion Message: ", type: "str", maxLength: 100, defaultValue: "Welcome to VIP LVL6",required: false}, { name: "lvl6yes", label: "LVL6 Want to use:", type: "choice", choice1: "Yes", choice2: "No", defaultValue: "No", required: false}, { name: "lvl6tip", label: "LVL6 amount: ", type: 'int', maxValue: 100000, minValue: 1000, defaultValue: 1000}, { name: "lvl7name", label: "LVL7 Name:", type: "str", maxLength: 30, defaultValue: "The Awesome Club" , required: false}, { name: "lvl7color", label: "LVL7 HI-LITE", type: "str", maxLength: 7, defaultValue: "#f3d8d8" }, { name: "lvl7icon", label: "LVL7 IMAGE: (with colon):", type: "str", maxLength: 30, defaultValue: ":smallCrown" , required: false}, { name: "lvl7promote", label: "LVL7 Promotion Message: ", type: "str", maxLength: 100, defaultValue: "Welcome to VIP LVL7",required: false}, { name: "lvl7yes", label: "LVL7 Want to use:", type: "choice", choice1: "Yes", choice2: "No", defaultValue: "No", required: false}, { name: "lvl7tip", label: "LVL7 amount: ", type: 'int', maxValue: 100000, minValue: 1000, defaultValue: 1000}, { name: "lvl8name", label: "LVL8 Name:", type: "str", maxLength: 30, defaultValue: "The Awesome Club" , required: false}, { name: "lvl8color", label: "LVL8 HI-LITE", type: "str", maxLength: 7, defaultValue: "#f3d8d8" }, { name: "lvl8icon", label: "LVL8 IMAGE: (with colon):", type: "str", maxLength: 30, defaultValue: ":smallCrown" , required: false}, { name: "lvl8promote", label: "LVL8 Promotion Message: ", type: "str", maxLength: 100, defaultValue: "Welcome to VIP LVL8",required: false}, { name: "lvl8yes", label: "LVL8 Want to use:", type: "choice", choice1: "Yes", choice2: "No", defaultValue: "No", required: false}, { name: "lvl8tip", label: "LVL8 amount: ", type: 'int', maxValue: 100000, minValue: 1000, defaultValue: 1000}, { name: "lvl9name", label: "LVL9 Name:", type: "str", maxLength: 30, defaultValue: "The Awesome Club" , required: false}, { name: "lvl9color", label: "LVL9 HI-LITE", type: "str", maxLength: 7, defaultValue: "#f3d8d8" }, { name: "lvl9icon", label: "LVL9 IMAGE: (with colon):", type: "str", maxLength: 30, defaultValue: ":smallCrown" , required: false}, { name: "lvl9promote", label: "LVL9 Promotion Message: ", type: "str", maxLength: 100, defaultValue: "Welcome to VIP LVL9",required: false}, { name: "lvl9yes", label: "LVL9 Want to use:", type: "choice", choice1: "Yes", choice2: "No", defaultValue: "No", required: false}, { name: "lvl9tip", label: "LVL9 amount: ", type: 'int', maxValue: 100000, minValue: 1000, defaultValue: 1000}, { name: "lvl10name", label: "LVL10 Name:", type: "str", maxLength: 30, defaultValue: "The Awesome Club" , required: false}, { name: "lvl10color", label: "LVL10 HI-LITE", type: "str", maxLength: 7, defaultValue: "#f3d8d8" }, { name: "lvl10icon", label: "LVL10 IMAGE: (with colon):", type: "str", maxLength: 30, defaultValue: ":smallCrown" , required: false}, { name: "lvl10promote", label: "LVL10 Promotion Message: ", type: "str", maxLength: 100, defaultValue: "Welcome to VIP LVL10",required: false}, { name: "lvl10yes", label: "LVL10 Want to use:", type: "choice", choice1: "Yes", choice2: "No", defaultValue: "No", required: false}, { name: "lvl10tip", label: "LVL10 amount: ", type: 'int', maxValue: 100000, minValue: 1000, defaultValue: 1000} ];} //FUNCTIONS //DICE GAME FUNCTIONS function diceOptions(){for(var i=1;i<=19;i++){if(cb.settings['normal_'+i]!=''&&cb.settings['normal_'+i]!='blank'){DICE.normalArray[DICE.normalArray.length]=cb.settings['normal_'+i]}}for(var i=1;i<=9;i++){if(cb.settings['rare_'+i]!=''&&cb.settings['rare_'+i]!='blank'){DICE.rareArray[DICE.rareArray.length]=cb.settings['rare_'+i]}}for(var i=2;i<=12;i++){if(cb.settings['prize_'+i]!=''&&cb.settings['prize_'+i]!='random'){DICE.diceArray[i]=cb.settings['prize_'+i]}else{var tempRand=Math.floor(Math.random()*DICE.normalArray.length);DICE.diceArray[i]=DICE.normalArray[tempRand];DICE.normalArray.splice(tempRand,1)}}for(var i=13;i<=15;i++){if(cb.settings['prize_'+i]!=''&&cb.settings['prize_'+i]!='random'){DICE.diceArray[i]=cb.settings['prize_'+i]}else{var tempRand=Math.floor(Math.random()*DICE.rareArray.length);DICE.diceArray[i]=DICE.rareArray[tempRand];DICE.rareArray.splice(tempRand,1)}}} function sendDiceNotice(user){if(DICE.playingDice){var tmpprice=cb.settings.dicePrice;var notices="";notices+="Welcome, "+user['user']+"! We are playing Roll The Dice. \n";notices+="Tip "+tmpprice+" to ROLL! \n";notices+="Each roll reveals a prize. \n";notices+="Type /prizes to see prizes and /winners to see last DICE.winners. \n";cb.sendNotice(notices,user,cb.settings.backgroundDice,cb.settings.foregroundDice,'bolder')}} function roll(username){DICE.rollCounter++;var notices="";var dice1=DICE.diceSides[Math.floor(Math.random()*DICE.diceSides.length)];var dice2=DICE.diceSides[Math.floor(Math.random()*DICE.diceSides.length)];if(DICE.rollCounter%5==0){if((dice1==1)&&(dice2!=1)){dice1=7}if((dice2==1)&&(dice1!=1)){dice2=7}}var total=dice1+dice2;var prize=DICE.diceArray[total];notices+=":diceresult"+dice1+" :diceresult"+dice2+"\n";notices+="The outcome is "+total+"! \n";notices+=username+"'s prize: "+prize;cb.sendNotice(notices,'',cb.settings.backgroundDice,cb.settings.foregroundDice,'bolder');DICE.lastPrizeWon=prize;DICE.winners.push(username+' won: '+prize);cb.drawPanel()} function showPrizes(username){var tmpprice=cb.settings.dicePrice;var notices="";notices+="\n***** POSSIBLE PRIZES ***** \n";notices+="Tip "+tmpprice+" to ROLL! \n";var rareText="";for(var i=2;i<=15;i++){if(i==13)rareText=" (RARE)";notices+="Roll #"+i+rareText+": "+DICE.diceArray[i]+" \n "}cb.sendNotice(notices,username,cb.settings.backgroundDice,cb.settings.foregroundDice)} function showPrizesWon(username){DICE.winners.reverse();var tmpprice=cb.settings.dicePrice;var notices="\n**** LAST 200 WINNERS ****\n";notices+="Tip "+tmpprice+" to ROLL! \n";if(DICE.winners.length==0){cb.sendNotice('No one has won anything yet. Roll the dice to win a prize!',username,cb.settings.backgroundDice,cb.settings.foregroundDice,'bolder')}else{DICE.winners.slice(0,200);var prizeNum=1;for(var i=0;i<DICE.winners.length;i++){notices+=prizeNum+") "+DICE.winners[i]+" \n";prizeNum++}cb.sendNotice(notices,username,cb.settings.backgroundDice,cb.settings.foregroundDice,'bolder')}} function advertise(){if(DICE.playingDice){var tmpprice=cb.settings.dicePrice;var notices="ROLL the DICE! \n";notices+="Tip "+tmpprice+" to ROLL! \n";notices+="Each roll reveals a prize. \n";notices+="Type /prizes to see prizes and /winners to see last DICE.winners. \n";cb.sendNotice(notices,'',cb.settings.backgroundDice,cb.settings.foregroundDice);cb.setTimeout(advertise,cb.settings.notice_wait_time*60000)}} //END DICE GAME FUNCTIONS //CUM POLL TIMER // function startTimerCum(mins, user) { if (parseInt(mins, 10) < 121 && mins > 0) { CUMTIMER.timerMinutes = mins; cb.sendNotice("* " + CUMTIMER.timerMinutes + " minutes remaining to VOTE on the CUM-POLL", '', '#ff0000', '#ffffff', 'bold'); if (mins <= 10) { cb.setTimeout(timerAdvertCum, (1 * 60000)) } else { cb.setTimeout(timerAdvertCum, (2 * 60000)) } } else { cb.sendNotice("* Maximum timer length is 120.", user, '#ff0000', '#ffffff', 'bold') } } // function timerAdvertCum() { if (CUMTIMER.timerMinutes <= 10) { CUMTIMER.timerMinutes-- } else { CUMTIMER.timerMinutes = CUMTIMER.timerMinutes - 2 } if (CUMTIMER.timerMinutes <= 0) { /* REPLACED WITH SECOND TIMER END NOTICE: cb.sendNotice(CUMTIMER.dashLine + "\n* TIME IS UP! CUM-POLL IS ENDING! \n" + CUMTIMER.dashLine, '', '#ff0000', '#ffffff', 'bold')*/ } else { cb.sendNotice("* Less than " + CUMTIMER.timerMinutes + (CUMTIMER.timerMinutes > 1 == true ? " minutes" : " minute") + " remaining to VOTE on the CUM-POLL!", '', '#ff0000', '#ffffff', 'bold'); if (CUMTIMER.timerMinutes <= 10 && CUMTIMER.timerMinutes > 1) { cb.setTimeout(timerAdvertCum, (1 * 60000)) } else { cb.setTimeout(timerAdvertCum, (2 * 60000)) } if (CUMTIMER.timerMinutes <= 1) { CUMTIMER.timerSeconds = 60; CUMTIMER.addedSeconds = 0; cb.setTimeout(timerAdvertCumSeconds, (1000)) } } } // function timerAdvertCumSeconds() { var tempAddedMsg = CUMTIMER.addedSeconds == 0 ? "" : " \n " + CUMTIMER.addedSeconds + " Votes Added " + CUMTIMER.addedSeconds + " Seconds"; CUMTIMER.timerSeconds--; if (CUMTIMER.timerSeconds <= -5) { cb.sendNotice(CUMTIMER.dashLine + "\n* TIME IS UP! CUM-POLL HAS ENDED! \n" + CUMTIMER.dashLine, '', '#ff0000', '#ffffff', 'bold'); POLL.poll_running = false; showWinner(); } else { if (CUMTIMER.timerSeconds > 15 && CUMTIMER.timerSeconds <= 60 && CUMTIMER.timerSeconds % 10 == 0) { cb.sendNotice("CUMPOLL ENDS IN " + CUMTIMER.timerSeconds + " SECONDS" + tempAddedMsg, '', '#ff0000', '#ffffff', 'bold'); CUMTIMER.addedSeconds = 0 } if (CUMTIMER.timerSeconds > 60 && CUMTIMER.timerSeconds % 30 == 0) { cb.sendNotice(CUMTIMER.timerSeconds + " SECONDS until CUM-POLL ENDS! \n" + POLL.opt_labels[POLL.opt_lead] + " is in the LEAD" + tempAddedMsg, '', '#ff0000', '#ffffff', 'bold'); CUMTIMER.addedSeconds = 0 } if (CUMTIMER.timerSeconds <= 15 && CUMTIMER.timerSeconds > 0) { cb.sendNotice(CUMTIMER.timerSeconds + " SECONDS" + tempAddedMsg, '', '#ff0000', '#ffffff', 'bold'); CUMTIMER.addedSeconds = 0 } cb.setTimeout(timerAdvertCumSeconds, (1000)); } } function startTimerCum(mins, user) { if (parseInt(mins, 10) < 121 && mins > 0) { CUMTIMER.timerMinutes = mins; cb.sendNotice("* " + CUMTIMER.timerMinutes + " minutes remaining to VOTE on the CUM-POLL", '', '#ff0000', '#ffffff', 'bold'); if (mins <= 10) { cb.setTimeout(timerAdvertCum, (1 * 60000)) } else { cb.setTimeout(timerAdvertCum, (2 * 60000)) } } else { cb.sendNotice("* Maximum timer length is 120.", user, '#ff0000', '#ffffff', 'bold') } } function timerAdvertCum() { if (CUMTIMER.timerMinutes <= 10) { CUMTIMER.timerMinutes-- } else { CUMTIMER.timerMinutes = CUMTIMER.timerMinutes - 2 } if (CUMTIMER.timerMinutes <= 0) { /* REPLACED WITH SECOND TIMER END NOTICE: cb.sendNotice(CUMTIMER.dashLine + "\n* TIME IS UP! CUM-POLL IS ENDING! \n" + CUMTIMER.dashLine, '', '#ff0000', '#ffffff', 'bold')*/ } else { cb.sendNotice("* Less than " + CUMTIMER.timerMinutes + (CUMTIMER.timerMinutes > 1 == true ? " minutes" : " minute") + " remaining to VOTE on the CUM-POLL!", '', '#ff0000', '#ffffff', 'bold'); if (CUMTIMER.timerMinutes <= 10 && CUMTIMER.timerMinutes > 1) { cb.setTimeout(timerAdvertCum, (1 * 60000)) } else { cb.setTimeout(timerAdvertCum, (2 * 60000)) } if (CUMTIMER.timerMinutes <= 1) { CUMTIMER.timerSeconds = 60; CUMTIMER.addedSeconds = 0; cb.setTimeout(timerAdvertCumSeconds, (1000)) } } } function timerAdvertCumSeconds() { var tempAddedMsg = CUMTIMER.addedSeconds == 0 ? "" : " \n " + CUMTIMER.addedSeconds + " Votes Added " + CUMTIMER.addedSeconds + " Seconds"; CUMTIMER.timerSeconds--; if (CUMTIMER.timerSeconds <= -5) { cb.sendNotice(CUMTIMER.dashLine + "\n* TIME IS UP! CUM-POLL HAS ENDED! \n" + CUMTIMER.dashLine, '', '#ff0000', '#ffffff', 'bold'); POLL.poll_running = false; showWinner(); } else { if (CUMTIMER.timerSeconds > 15 && CUMTIMER.timerSeconds <= 60 && CUMTIMER.timerSeconds % 10 == 0) { cb.sendNotice("CUMPOLL ENDS IN " + CUMTIMER.timerSeconds + " SECONDS" + tempAddedMsg, '', '#ff0000', '#ffffff', 'bold'); CUMTIMER.addedSeconds = 0 } if (CUMTIMER.timerSeconds > 60 && CUMTIMER.timerSeconds % 30 == 0) { cb.sendNotice(CUMTIMER.timerSeconds + " SECONDS until CUM-POLL ENDS! \n" + POLL.opt_labels[POLL.opt_lead] + " is in the LEAD" + tempAddedMsg, '', '#ff0000', '#ffffff', 'bold'); CUMTIMER.addedSeconds = 0 } if (CUMTIMER.timerSeconds <= 15 && CUMTIMER.timerSeconds > 0) { cb.sendNotice(CUMTIMER.timerSeconds + " SECONDS" + tempAddedMsg, '', '#ff0000', '#ffffff', 'bold'); CUMTIMER.addedSeconds = 0 } cb.setTimeout(timerAdvertCumSeconds, (1000)); } } //END CUM POLL TIMER //TOKEN POLL CODE BLOCK (don't be scared... just a block of compressed code because it was annoying and took up too much room) function updateCaptain(user,option){option=Number.parseInt(option,10);for(var i=0;i<POLL.captains.length;i++){if(POLL.captains[i][0]==user){POLL.captains[i][option]++;break}}if(i==POLL.captains.length){POLL.captains.push([user,0,0,0,0,0,0,0]);updateCaptain(user,option)}return i} function whoIsCaptain(optionTemp){optionTemp=Number.parseInt(optionTemp,10);optionTemp++;var tempHighest='';var tempHighestNumber=0;for(var i=0;i<POLL.captains.length;i++){if(Number.parseInt(POLL.captains[i][optionTemp],10)>tempHighestNumber){tempHighestNumber=Number.parseInt(POLL.captains[i][optionTemp],10);tempHighest=POLL.captains[i][0]}else{if(Number.parseInt(POLL.captains[i][optionTemp],10)==tempHighestNumber){tempHighestNumber=Number.parseInt(POLL.captains[i][optionTemp],10);if(tempHighestNumber!=0){tempHighest="TIED!"}else{tempHighest=""}}}}cb.log("optionTemp : "+optionTemp+" tempHighest : "+tempHighest);return tempHighest.toUpperCase()} function showBoard(user){var response1=' \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 '+' TOKEN POLL BOARD'+(''==user?' (sent to all)':'')+': \u2022 \u2022 \u2022 \u2022 \u2022 \u2022 \n';var response2="\u2022 "+cb.settings.poll_title+" \u2022";var response=[];if(!POLL.poll_running){return}var ids=[];for(var j in POLL.opt_votes){ids.push({'votes':POLL.opt_votes[j],'id':j})}ids.sort(function(a,b){return b['votes']-a['votes']});for(i=0;i<ids.length;i++){if(0!=POLL.opt_tokens[ids[i]['id']]){response[i]="\u2022 "+POLL.opt_labels[ids[i]['id']]+" \u2022 ["+POLL.opt_votes[ids[i]['id']]+" votes]: "+POLL.opt_tokens[ids[i]['id']]+" tokens"}}var response3='';var responses='';switch(cb.settings.poll_mode){case POLL.txt_minutes:response3=POLL.mins_remain+' minute'+(POLL.mins_remain>1?'s':'')+' remaining to vote\n';break;case POLL.txt_votecount:response3=POLL.votes_remain+' vote'+(POLL.votes_remain>1?'s':'')+' remaining before poll closes\n';break;case POLL.txt_wincount:response3='First option to '+cb.settings.poll_count+' votes wins!\n';break}response3+='Simply tip the shown token amounts to register your vote. Type !poll at any time to see poll board.';if(undefined==user){user='';cb.setTimeout(showBoard,cb.settings.board_interval*60*1000)}cb.sendNotice(response1+response2,user,cb.settings.background,cb.settings.foreground,'bolder');var tempColor1='#ddd';var tempColor2='#111';var tempNum=-1;for(i=0;i<ids.length;i++){if(0!=POLL.opt_tokens[ids[i]['id']]){tempColor1=(ids[i]['id']==POLL.opt_lead?cb.settings.foreground:cb.settings.background)+'';tempColor2=(ids[i]['id']!=POLL.opt_lead?cb.settings.foreground:cb.settings.background)+'';tempNum=Number.parseInt(ids[i]['id'],10);response5=(whoIsCaptain(tempNum)==""?"":" \u2022 Captain: "+whoIsCaptain(tempNum));cb.sendNotice(response[i]+response5,user,tempColor1,tempColor2,'bolder')}}cb.sendNotice(response3,user,cb.settings.background,cb.settings.foreground)} function sanitizeBoard(){for(i=1;i<POLL.opt_tokens.length;i++){if(0!=POLL.opt_tokens[i]&&''==POLL.opt_labels[i]){cb.sendNotice("Token Poll Warning: Label for option "+(i+1)+" is blank -- removing from poll board!",cb.soom_slug,cb.settings.background,POLL.fg_warn,'bold');POLL.opt_tokens[i]=0;continue}for(j=0;j<i;j++){if(0!=POLL.opt_tokens[i]&&POLL.opt_tokens[i]==POLL.opt_tokens[j]){cb.sendNotice("Token Poll Warning: Token amount for option "+(i+1)+" is not unique -- removing from poll board!",cb.soom_slug,cb.settings.background,POLL.fg_warn,'bold');POLL.opt_tokens[i]=0;break}else if(0!=POLL.opt_tokens[i]&&POLL.opt_labels[i]==POLL.opt_labels[j]){cb.sendNotice("Token Poll Warning: Label for option "+(i+1)+" is not unique -- removing from poll board!",cb.soom_slug,cb.settings.background,POLL.fg_warn,'bold');POLL.opt_tokens[i]=0;break}}}} function showWinner(){var options=[];for(i=0;i<POLL.opt_tokens.length;i++){options[i]=i}options.sort(function(a,b){return POLL.opt_votes[b]-POLL.opt_votes[a]});var win_count=1;for(i=1;i<POLL.opt_tokens.length;i++){if(POLL.opt_votes[options[i]]!=POLL.opt_votes[options[0]]){break}if(0!=POLL.opt_tokens[options[i]]){win_count++}}var response1='---------- Token Poll has ended! ----------\n';var response2='Winner'+(win_count>1?'s ('+win_count+'-way tie)':'')+':';for(i=0;i<win_count;i++){if(POLL.opt_tokens[options[i]]!=0){response2+="\n - "+POLL.opt_labels[options[i]]+": "+POLL.opt_votes[options[i]]+" votes"}}cb.sendNotice(response1+response2,'',cb.settings.background,cb.settings.foreground,'bolder')} function checkPollEnd(){var _poll_running=POLL.poll_running;switch(cb.settings.poll_mode){case POLL.txt_never:return;case POLL.txt_minutes:if(POLL.mins_remain<1){POLL.poll_running=false}break;case POLL.txt_votecount:if(POLL.votes_remain<1){POLL.poll_running=false}break;case POLL.txt_wincount:for(i=0;i<POLL.opt_tokens.length;i++){if(POLL.opt_votes[i]>=cb.settings.poll_count){POLL.poll_running=false}}break}if(_poll_running&&!POLL.poll_running){showWinner();}} function tickTimer(){POLL.mins_remain--;checkPollEnd();if(POLL.mins_remain>0){cb.setTimeout(tickTimer,60*1000)}} function whatTime(){var currentTime=new Date();var time=CUMTIMERstartTime.getHours()*3600+CUMTIMERstartTime.getMinutes()*60+CUMTIMERstartTime.getSeconds()-currentTime.getHours()*3600-currentTime.getMinutes()*60-currentTime.getSeconds();time=time/60;return time} function to_hex(value){var str=value.toString(16);if(str.length==1){str='0'+str}return str}function toVips(message,user){var to_vip=["118yearoldcouple"];for(var i=0;i<VIP.colorList.length;i++){if(VIP.colorList[i][1]>=cb.settings.lvl1tip){cb.sendNotice("\u25ba "+user+": "+message,VIP.colorList[i][0],"#993399","#fff","bolder")}}cb.sendNotice("\u25ba "+user+": "+message,"","#993399","#fff","bolder","red");cb.sendNotice("\u25ba "+user+": "+message,cb.room_slug,"#993399","#fff","bolder")} function html_color(r,g,b){return'#'+to_hex(r)+to_hex(g)+to_hex(b)} function hue_strength(hue){return Math.pow(0.5*(1+Math.cos(2*Math.PI*hue/120)),TEXT.gamma)} function assign_color(){cb.log("assign_color(): "); currentMinutes=whatTime();baseMinutes=Number.parseFloat(cb.settings.typicalTime)*60;percentDone=currentMinutes/baseMinutes;percentDone=Math.abs(percentDone);while(percentDone>1){percentDone=percentDone-1}var r=200;var g=100;var b=0;if(percentDone<0.25){r=200}if(0.25<=percentDone&&percentDone<0.5){r=200*(0.5-percentDone)*4}if(0.5<=percentDone&&percentDone<0.75){r=0}if(0.75<=percentDone&&percentDone<1){r=200*(percentDone-0.75)*4}if(percentDone<0.25){g=200*(percentDone)*4}if(0.25<=percentDone&&percentDone<0.5){g=200}if(0.5<=percentDone&&percentDone<0.75){g=200*(0.75-percentDone)*4}if(0.75<=percentDone&&percentDone<1){g=0}if(percentDone<0.25){b=0}if(0.25<=percentDone&&percentDone<0.5){b=200*(percentDone-0.25)*4}if(0.5<=percentDone&&percentDone<0.75){b=200}if(0.75<=percentDone&&percentDone<1){b=200*(1-percentDone)*4}r=Math.round(r);g=Math.round(g);b=Math.round(b);return html_color(r,g,b)} function pick_color(){cb.log("pick_color(): "); var t=Math.random()*360;var ti=Math.floor(t/60);var v=255*(TEXT.min_level+(1.0-TEXT.min_level)*Math.random()*hue_strength(t));var f=t/60-ti;var m=Math.floor(v*(1-f));var n=Math.floor(v*f);v=Math.floor(v);var r=0;var g=0;var b=0;if(ti==0){r=v;g=n;b=0}else if(ti==1){r=m;g=v;b=0}else if(ti==2){r=0;g=v;b=n}else if(ti==3){r=0;g=m;b=v}else if(ti==4){r=n;g=0;b=v}else if(ti==5){r=v;g=0;b=m}return html_color(r,g,b)} function get_user_color(user){cb.log("get_user_color("+user+"): "); if(typeof(TEXT.colors[user])=='undefined'){set_user_color(user)}return TEXT.colors[user]} function set_user_color(user){cb.log("set_user_color("+user+"): "); if(cb.settings.whatMode=='Disabled'){TEXT.colors[user]="#444"}if(cb.settings.whatMode=='Random'){TEXT.colors[user]=pick_color()}if(cb.settings.whatMode=='Ordered'){TEXT.colors[user]=assign_color()}} function get_user_font(user){cb.log("get_user_font("+user+"): "); if(typeof(TEXT.fonts[user])=='undefined'){set_user_font(user)}return TEXT.fonts[user]} function pick_font(){cb.log("pick_font(): ");var i=Math.floor(Math.random()*TEXT.available_fonts.length);return TEXT.available_fonts[i]} function set_user_font(user){ cb.log("set_user_font("+user+"): "); TEXT.fonts[user]=pick_font();if(findLevel(user)>=1){TEXT.fonts[user] ='"Comic Sans MS", cursive';}} function findRainbowTipper(user,tip){cb.log("findRainbowTipper("+user+", "+tip+"): "); for(var i=0;i<VIP.colorList.length;i++){if(VIP.colorList[i][0]==user){VIP.colorList[i][1]=VIP.colorList[i][1]+tip;break}}if(i==VIP.colorList.length){colorListPopulate(user,tip);findRainbowTipper(user,0)}if(tip>=cb.settings.freeVote&&cb.settings.freeVote!=0&&POLL.voted[i]!=0){cb.sendNotice("HEY "+user+"!! You just got a FREE vote to go with your CrazyTicket! Use it by typing the token number for the poll option you want! For example: Type "+POLL.opt_tokens[0]+" to vote for "+POLL.opt_labels[0],user,cb.settings.foreground,cb.settings.background,"bolder")}j=VIP.colorList[i][1];if(tip!=0){var p=findLevel(user);cb.log("p in findRainbowTipper: "+p);if(p!=0&&cb.settings['lvl'+p+'tip']>j-tip&&cb.settings['lvl'+p+'yes']=="Yes"){cb.sendNotice(cb.settings['lvl'+p+'promote']+" \n "+VIP.colorList[i][0]+" is now "+cb.settings['lvl'+p+'name']+"!!","","#666",cb.settings['lvl'+p+'color'],"bolder")}}return i} function colorListPopulate(user,tip){cb.log("colorListPopulate("+user+", "+tip+"): "); VIP.colorList.push([user,tip])} function welcomeVip(p){cb.log("welcomeVip("+p+"): "); var color=findColor(VIP.colorList[p][0]);if(color!=""&&VIP.colorEntered[p]<3){cb.sendNotice("Welcome: "+VIP.colorList[p][0]+"!!","",color,"#111","bold");VIP.colorEntered[p]++}} function cyaVip(o){cb.log("welcomeVip("+o+"): "); var color=findColor(VIP.colorList[o][0]);if(color!=""&&VIP.colorEntered[o]<3){cb.sendNotice("Peace Out: "+VIP.colorList[o][0],cb.room_slug,color,"#111","bold");VIP.colorEntered[o]++}} function changeMessage(user,msg){cb.log("changeMessage("+user+", "+msg+"): "); for(var i=0;i<VIP.colorList.length;i++){if(VIP.colorList[i][0]==user){break}}if(i==VIP.colorList.length){colorListPopulate(user,0);findRainbowTipper(user,0)}var j=VIP.colorList[i][1];var color="undefined";var tipNumber=" ";var p=findLevel(user);if(cb.settings.tipTitles=="Yes"&&VIP.colorList[i][1]>0){tipNumber=" |"+j+"| "}if(p!=0){color=cb.settings['lvl'+p+'color'];msg=cb.settings['lvl'+p+'icon']+tipNumber+msg}else{msg=tipNumber+msg}return msg} function howManyLeft(user){cb.log("howManyLeft("+user+"): "); for(var i=0;i<VIP.colorList.length;i++){if(VIP.colorList[i][0]==user){break}}if(i==VIP.colorList.length){colorListPopulate(user,0);findRainbowTipper(user,0)}var j=VIP.colorList[i][1];var k;var p=findLevel(user)+1;cb.log("p in howManyLeft: "+p);if(j>99&&cb.settings['lvl'+p+'yes']=="Yes"){k=cb.settings['lvl'+p+'tip']-j;cb.sendNotice(k+" left until you're "+cb.settings['lvl'+p+'name'],user,"","#BBBBBB","")}if(j<cb.settings.lvl1tip&&j>cb.settings.lvl1tip/2&&cb.settings.lvl1yes=="Yes"){cb.sendNotice("PS: Once you're VIP, you're VIP forever! Sounds cool right? You're almost there too!",user,"","#BBBBBB","")}} function findColor(user){cb.log("findColor("+user+"): ");for(var i=0;i<VIP.colorList.length;i++){if(VIP.colorList[i][0]==user){break}}if(i==VIP.colorList.length){colorListPopulate(user,0);findRainbowTipper(user,0)}var color="undefined";var j=findLevel(user);if(j!=0){color=cb.settings['lvl'+j+'color']}else{color=""}if(color!=""){return color}} function findLevel(user){cb.log("findLevel("+user+"): "); var SuperTempId=findRainbowTipper(user,0);var j=VIP.colorList[SuperTempId][1];var levelTemp="undefined";for(m=1;m<VIP.MAXLEVELS;m++){if(j>=cb.settings['lvl'+m+'tip']&&cb.settings['lvl'+m+'yes']=="Yes"){levelTemp=m}}if(j<cb.settings['lvl1tip']&&cb.settings['lvl1yes']=="Yes"){levelTemp=0}if(levelTemp=="undefined"){return 0}else{cb.log("levelTemp in findLevel: "+levelTemp);return parseInt(levelTemp,10)}} function sortColorsOriginal() { cb.log("sortColorsOriginal(): "); var juser = ""; var swapped; do { swapped = false; for (var i = 0; i < VIP.colorListOriginal.length; i++) { j = VIP.colorListOriginal[i][1]; juser = VIP.colorListOriginal[i][0]; if (j.valueOf() == 0) { VIP.universalListOriginal.push([juser, j]); VIP.universalList.push([juser, j]) } if (j.valueOf() == -1) { VIP.modListOriginal.push([juser, j]); VIP.modList.push([juser, j]) } if (j.valueOf() == -2) { VIP.dickListOriginal.push([juser, j]); VIP.dickList.push([juser, j]) } if (j.valueOf() < cb.settings.lvl1tip) { VIP.colorListOriginal.splice(i, 1); i += -1; swapped = true } } } while (swapped) } function makeChangedList() { for (var i = 0; i < VIP.colorList.length; i++) { if (VIP.colorList[i][0] != VIP.colorListOriginal[i][0] || VIP.colorList[i][1] != VIP.colorListOriginal[i][1]) { VIP.changedList.push([VIP.colorList[i][0], VIP.colorList[i][1]]) } } for (var i = 0; i < VIP.modList.length; i++) { if (VIP.modList[i][0] != VIP.modListOriginal[i][0]) { VIP.changedList.push([VIP.modList[i][0], -1]) } } for (var i = 0; i < VIP.dickList.length; i++) { if (VIP.dickList[i][0] != VIP.dickListOriginal[i][0]) { VIP.changedList.push([VIP.dickList[i][0], -2]) } } } function findModDick(user, num) { if (num == -1) { for (var i = 0; i < VIP.modList.length; i++) { if (VIP.modList[i][0] == user) { break } } if (i == VIP.modList.length) { modListPopulate(user); findModDick(user, -1) } } if (num == -2) { for (var i = 0; i < VIP.dickList.length; i++) { if (VIP.dickList[i][0] == user) { break } } if (i == VIP.dickList.length) { dickListPopulate(user); findModDick(user, -2) } } return i } function modListPopulate(user) { VIP.modList.push([user, -1]); } function dickListPopulate(user) { VIP.dickList.push([user, -2]); } function sortColors() { var swapped; var jj; var j; for (var i = 0; i < VIP.colorList.length; i++) { jj = VIP.colorList[i][0]; j = VIP.colorList[i][1]; if (j.valueOf() >= cb.settings.lvl1tip) { VIP.colorListSorted.push([jj,j]); } } } function addTop(){var arr=["18yearoldcouple"];var k;for(var i=0;i<VIP.colorList.length;i++){j=VIP.colorList[i][1];if(j.valueOf()>=cb.settings.addTop){k=VIP.colorList[i][0];arr.push(k)}}return arr} function canItipPoll(user,amount,userId){var tempDidIMakeIt=false;for(w=0;w<POLL.opt_tokens.length;w++){if(amount==POLL.opt_tokens[w]){if(VIP.colorList[userId][1]>=cb.settings.freeVote&&POLL.voted[userId]!=0){tipPoll(user,amount,userId);POLL.voted[userId]=0;cb.sendNotice(" \u2022 \u2022 \u2022 "+"You used your CrazyTicket vote!"+" \u2022 \u2022 \u2022 \n \u2022 \u2022 \u2022 TIP "+POLL.opt_tokens[w]+" FOR "+POLL.opt_labels[i]+" AGAIN! \u2022 \u2022 \u2022",user,cb.settings.foreground,cb.settings.background)}else{cb.sendNotice(" \u2022 \u2022 \u2022 "+"You don't have any CrazyTicket votes left!"+" \u2022 \u2022 \u2022 \n \u2022 \u2022 \u2022 TIP "+POLL.opt_tokens[w]+" TO VOTE FOR "+POLL.opt_labels[i]+"!!! \u2022 \u2022 \u2022",user,cb.settings.foreground,cb.settings.background)}tempDidIMakeIt=true}}if(!tempDidIMakeIt){cb.sendNotice(" \u2022 \u2022 \u2022 "+"That's Not a Valid Poll Option! Type !poll for options"+" \u2022 \u2022 \u2022 ",user,cb.settings.foreground,cb.settings.background)}} function walltipPoll(user,amount,userId,totalAmount){if(totalAmount>=amount*2){POLL.tempTotalAmount=parseInt(totalAmount/amount);for(l=0;l<POLL.tempTotalAmount;l++){tipPoll(user,amount,userId)}if(VIP.colorList[userId][1]>=cb.settings.tipPoll&&cb.settings.tipPoll!=0){POLL.tempTotalAmount=POLL.tempTotalAmount*2}cb.sendNotice(" \u2022 \u2022 \u2022 "+user+" has vote-walled! "+user+" voted for "+POLL.opt_labels[i]+" "+POLL.tempTotalAmount+" times!"+" \u2022 \u2022 \u2022 ",'',cb.settings.foreground,cb.settings.background,"bolder");cb.sendNotice(" \u2022 \u2022 \u2022 "+"PS: Tip Note "+POLL.opt_tokens[0]+" to vote-wall for "+POLL.opt_labels[0]+" \u2022 \u2022 \u2022 ",'',cb.settings.foreground,cb.settings.background,"bolder")}} function tipPoll(user,amount,userId){if(!POLL.poll_running){return}else{for(i=0;i<POLL.opt_tokens.length;i++){if(amount==POLL.opt_tokens[i]){if(VIP.colorList[userId][1]>=cb.settings.tipPoll&&cb.settings.tipPoll!=0){cb.sendNotice(" \u2022 \u2022 \u2022 "+user+" has DOUBLE voted for "+POLL.opt_labels[i]+" \u2022 \u2022 \u2022 ",'',(i==POLL.opt_lead?cb.settings.foreground:cb.settings.background),(i!=POLL.opt_lead?cb.settings.foreground:cb.settings.background));POLL.opt_votes[i]++;updateCaptain(user,i+1);if(CUMTIMER.timerSeconds!=1){CUMTIMER.timerSeconds++;CUMTIMER.addedSeconds++}POLL.opt_votes[i]++;updateCaptain(user,i+1);if(CUMTIMER.timerSeconds!=1){CUMTIMER.timerSeconds++;CUMTIMER.addedSeconds++}}else{cb.sendNotice(" \u2022 \u2022 \u2022 "+user+" has voted for "+POLL.opt_labels[i]+" \u2022 \u2022 \u2022 ",'',(i==POLL.opt_lead?cb.settings.foreground:cb.settings.background),(i!=POLL.opt_lead?cb.settings.foreground:cb.settings.background));POLL.opt_votes[i]++;updateCaptain(user,i+1);if(CUMTIMER.timerSeconds!=1){CUMTIMER.timerSeconds++;CUMTIMER.addedSeconds++}}if(POLL.txt_votecount==cb.settings.poll_mode){POLL.votes_remain--}if(POLL.opt_votes[i]==POLL.opt_votes[POLL.opt_lead]&&POLL.opt_lead!=i&&MAIN.isYOC){cb.sendNotice("\u2022 \u2022 \u2022 "+user+" evened it up! "+POLL.opt_labels[POLL.opt_lead]+" AND "+POLL.opt_labels[i]+" are TIED!"+" \u2022 \u2022 \u2022 ",'',cb.settings.foreground,cb.settings.background,"bolder")}if(POLL.opt_votes[i]>POLL.opt_votes[POLL.opt_lead]&&MAIN.isYOC){cb.sendNotice("\u2022 \u2022 \u2022 "+user+" is winning! "+user+" put "+POLL.opt_labels[i]+" in the LEAD!"+" \u2022 \u2022 \u2022 ",'',cb.settings.foreground,cb.settings.background,"bolder");POLL.opt_lead=i}checkPollEnd();break}}}} function pollStart(){sanitizeBoard();showBoard();if(POLL.txt_minutes==cb.settings.poll_mode){cb.setTimeout(tickTimer,60*1000)}} /*TIP MENU*/ function loadMenu() { for (i = 0; i <= MENU.MAXSEP - 1; i++) { if (cb.settings['sepchar'] == MENU.separators[i].label) { MENU.separator_char = MENU.separators[i].shortcut + ' ' } } MENU.tipMenuMsg = 'Tip Menu: '; for (i = 1; i <= MENU.MAXITEMS; i++) { var tmp; tmp = cb.settings['item' + i]; if (tmp) { var arr = tmp.split('--'); var amt = parseInt(arr[0]); if (amt > 0) { MENU.tipmenuprice[i] = amt; MENU.tipmenuitem[i] = arr[1].toUpperCase(); if (i >= 2) { MENU.tipMenuMsg += MENU.separator_char } MENU.tipMenuMsg += arr[1] + '(' + amt + ') ' } } } if (cb.settings.tipMenu == "Yes") { MENU.menuOn = true; cb.sendNotice("The tip menu is on."); chatAdManualCall() } else { cb.sendNotice("The tip menu is off.") } if (cb.settings.tipMenuShort == "No") { MENU.menuShort = true; MENU.menuShortMsg += cb.settings.shortMsg; cb.sendNotice("Ya I know it sent the whole menu. It only did it this once so you can see it so chill. The rest of the time it'll just send: ***" + MENU.menuShortMsg + " ***", cb.room_slug) } for (i = 1; i <= MENU.MAXITEMS; i++) { var tmp1; tmp1 = cb.settings['itemr' + i]; if (tmp1) { MENU.tipmenuitemr[i] = tmp1 } else { MENU.tipmenuitemr[i] = "Thank You!" } } for (i = 1; i <= MENU.MAXITEMS; i++) { var tmp2; tmp2 = cb.settings['itemtrigger' + i]; if (tmp2) { var arr = tmp2.split(','); var tempVal = ""; cb.log("i: "+i); for (j = 0; j < arr.length; j++) {cb.log("j: "+j+" arr[j]: "+arr[j]); tempVal=arr[j]; if(arr[j]!=""){ MENU.tipmenuitemtrigger[i][j] = new RegExp(tempVal,'i');}} } } } function isItOnMenu(user,amount){for(var i=1;i<=MENU.MAXITEMS;i++){if(amount==MENU.tipmenuprice[i]&&MENU.menuOn){cb.sendNotice(user+' tipped for '+MENU.tipmenuitem[i],'',cb.settings['noticeback'],cb.settings['noticecolor'],'bold');cb.sendNotice(MENU.tipmenuitemr[i],user,cb.settings['noticecolor'],cb.settings['noticeback'],'bold')}}} function chatAdManualCallPrivate(user){if(MENU.menuOn){cb.sendNotice(MENU.tipMenuMsg,user,cb.settings['noticeback'],cb.settings['noticecolor'],'bold')}} function chatAdManualCall(){if(MENU.menuOn){cb.sendNotice(MENU.tipMenuMsg,'',cb.settings['noticeback'],cb.settings['noticecolor'],'bold')}} function chatAd(){if(MENU.menuOn&&!MENU.menuShort){cb.sendNotice(MENU.tipMenuMsg,'',cb.settings['noticeback'],cb.settings['noticecolor'],'bold')}var tempRand=Math.floor(Math.random()*MENU.tipmenuitem.length);var tempMsg="TIP "+MENU.tipmenuprice[tempRand]+" FOR "+MENU.tipmenuitem[tempRand]+" \u2022 \u2022 \u2022 ";tempMsg=(cb.settings.addOneOption=="Yes"?tempMsg:'');if(MENU.menuOn&&MENU.menuShort){cb.sendNotice(" \u2022 \u2022 \u2022 "+tempMsg+MENU.menuShortMsg+" \u2022 \u2022 \u2022 ",'',cb.settings['noticeback'],cb.settings['noticecolor'],'bold')}cb.setTimeout(chatAd,(cb.settings.chat_ad*60000))}cb.setTimeout(chatAd,(cb.settings.chat_ad*60000)); function targetMenu(user,msg) { var tempMsg = ""; var tempTest = ""; for (i = 1; i <= MENU.MAXITEMS; i++) { for (j = 0; j < MENU.tipmenuitemtrigger[i].length; j++) {tempTest=MENU.tipmenuitemtrigger[i][j]; if (tempTest.test(msg)){tempMsg += "TIP " + MENU.tipmenuprice[i] + " FOR " + MENU.tipmenuitem[i]+" "+MENU.separator_char+" ";}} } if(tempMsg != ""){ cb.sendNotice(" \u2022 \u2022 \u2022 HEY "+user.toUpperCase()+" CHECK IT OUT! \u2022 \u2022 \u2022 \n \u2022 \u2022 \u2022 " + tempMsg + MENU.menuShortMsg + " \u2022 \u2022 \u2022 ", user, cb.settings['noticeback'], cb.settings['noticecolor'], 'bold');} } function enterVipLists() { if (cb.settings.rainbowList != "" && cb.settings.lvl1yes == "Yes") { cb.sendNotice("Adding VIPs: " + cb.settings.rainbowList, cb.room_slug, "", "#007BFF", "bold"); VIP.rainbowListEntered = cb.settings.rainbowList; VIP.colorListOriginal = JSON.parse(VIP.rainbowListEntered); VIP.colorList = VIP.colorListOriginal; sortColors(); cb.sendNotice("Here's the VIP club after omitting tips lower than LVL1: " + JSON.stringify(VIP.colorList), cb.room_slug, "", "#FF7B00", "bold") } else { cb.sendNotice("You left the rainbow list blank in the settings, but that's ok... just use the /load <DATA> command to restore instead", cb.room_slug, "", "#007BFF", "bold") } } cb.onMessage(function (msg){ var m = msg.m; var u = msg.user; var user = msg.user; var isMod = msg.is_mod; var is_mod = (cb.room_slug == u || msg.is_mod); var isRoomHost = (u == cb.room_slug); var c = msg.c; var background = msg.background; var in_fanclub = msg.in_fanclub; var gender = msg.gender; var wordArray = m.split(" "); var cmdval = "just a word"; var ONLY_MODS = "* Not enough privileges to use \"" + wordArray[0] + "\".\n* This command is restricted to moderators."; var colorListNumber = 0; colorListNumber = findRainbowTipper(u,0); var fakeTip = 0; if(!isNaN(m) && cb.settings.freeVote!=0){fakeTip = parseInt(m); canItipPoll(u,fakeTip,colorListNumber);} //for (i=1; i<POLL.opt_tokens.length; i++) {if(m.charAt(0)==POLL.opt_tokens[i]){canItipPoll(u,i,colorListNumber);}} // Ok, let's start processing commands // if(m.charAt(0) == 'm' && m.charAt(1) == 'e' && m.charAt(2) == 'n' && m.charAt(3) == 'u'){wordArray[0]="/menu";} if(m.charAt(0) == 'p' && m.charAt(1) == 'o' && m.charAt(2) == 'l' && m.charAt(3) == 'l'){wordArray[0]="/poll";} var valid = false; //tests to see if the command is in the list if(wordArray[0].charAt(0) == '/' || wordArray[0].charAt(0) == '!'){ switch (wordArray[0].toLowerCase()) { //addVip case "/addvip": valid = true; var arrTop = addTop(); msg.m = "/add " + cbjs.arrayJoin(arrTop,", "); break; case "/tovips": case "/tovip": case "/tvips": case "/tvip": valid = true; if (isMod || isRoomHost) { toVips(wordArray[1],u); } break; // Rainbow Save // case "/save": if (isMod || isRoomHost) { sortColors(); cb.sendNotice("VIP list exported! Hint: Save in a txt file.", u, "", "#ff0066", "bold"); cb.sendNotice("/load "+ JSON.stringify(VIP.colorListSorted), u, "", "#666666", "bold"); } valid = true; break; case "/club": if (isMod || isRoomHost) { sortColors(); // CHANGE ME>>> makeChangedList(); cb.sendNotice("VIP list exported! Hint: Submit to cammers's club .", u, "", "#ff0066", "bold"); cb.sendNotice(JSON.stringify(VIP.changed), u, "", "#666666", "bold"); } case "/kick": case "/ban": case "/dick": // CHANGE THIS FUNTION>>> findModDick(wordArray[1],-2); valid = true; break; // Rainbow Load // case "/load": if (isMod || isRoomHost) { cmdval= wordArray[1]; if (cmdval != null) { cb.sendNotice("/load " + cmdval, u, "", "#ff0066", "bold"); VIP.colorList = JSON.parse(cmdval); sortColors(VIP.colorList); cb.sendNotice(VIP.colorList); } else { cb.sendNotice("* Syntax: /load <saved data>", u, "", "#ff0066", "bold"); } } else { cb.sendNotice(ONLY_MODS, u, "", "#ff0066", "bold"); } valid = true; break; case '/av': if (is_mod) { var colorListNumber = findRainbowTipper(u,0); walltipPoll(wordArray[1],wordArray[2],colorListNumber,wordArray[3]); } valid = true; break; case '/poll': case '/p':case '!p': case '!poll': // other users don't need to see this message m['X-Spam'] = !is_mod; if (is_mod) {if (POLL.poll_running) {showBoard(''); } else {showWinner(); } } else { if (POLL.poll_running) {showBoard(u); } else {showWinner(); } } valid = true; break; case '/endpoll': case '/endp': case '!endp': case '!endpoll': case '/polloff': case '!polloff': if (is_mod) {POLL.poll_running = false; showWinner(); valid = true; break;} if(!is_mod){cb.sendNotice("Yo, you're not a mod.", u, "", "#BBBBBB", "");} break; case '/startpoll': case '/startp': case '!startp': case '!startpoll': case '/pollon': case '!pollon': valid = true; if (is_mod) { if(!POLL.poll_running){POLL.poll_running = true; pollStart(); cb.sendNotice("Yo, you started the poll.", u, "", "#BBBBBB", ""); valid = true; break;} if(POLL.poll_running){cb.sendNotice("Yo, the poll is running already.", u, "", "#BBBBBB", "");} } if(!is_mod){cb.sendNotice("Yo, you're not a mod.", u, "", "#BBBBBB", "");} break; case '/menu': case '!menu': valid = true; if (is_mod) { if(!MENU.menuOn){cb.sendNotice("Yo, the tip menu is off, use /menuon to turn on and /menuoff to turn off.", u, "", "#BBBBBB", ""); valid = true; break;} if(MENU.menuOn){chatAdManualCall(); valid = true; break;} }else{ if(!MENU.menuOn){cb.sendNotice("We aren't using the tip menu right now.", u, "", "#BBBBBB", "");} if(MENU.menuOn){chatAdManualCallPrivate(u);} } //if(!is_mod){cb.sendNotice("Yo, you're not a mod.", u, "", "#BBBBBB", "");} break; case '/menuon': case '!menuon': valid = true; if (is_mod) { if(MENU.menuOn){chatAdManualCall();cb.sendNotice("Yo, I know it sounds crazy but the menu was already on. Just type /menu to show it.", u, "", "#BBBBBB", ""); valid = true; break;} if(!MENU.menuOn){MENU.menuOn = true; chatAdManualCall(); cb.sendNotice("Yo, you started the tip menu.", u, "", "#BBBBBB", ""); valid = true; break;} } if(!is_mod){cb.sendNotice("Yo, you're not a mod.", u, "", "#BBBBBB", "");} break; case '/menuoff': case '!menuoff': valid = true; if (is_mod) { if(!MENU.menuOn){cb.sendNotice("Yo, I know it sounds crazy but the menu was already off. It it's still going that's a technical support problem you can email 18yearoldcouple about.", u, "", "#BBBBBB", ""); valid = true; break;} if(MENU.menuOn){MENU.menuOn = false; cb.sendNotice("Yo, you stopped the tip menu.", u, "", "#BBBBBB", ""); valid = true; break;} } if(!is_mod){cb.sendNotice("Yo, you're not a mod.", u, "", "#BBBBBB", "");} break; case '/winner': case '!winner': case '/winners': case '!winners': valid = true; if (is_mod) {if(wordArray[1]=="all"){showPrizesWon('');}else{showPrizesWon(u);}valid = true; break;}if(!is_mod){showPrizesWon(u);} break; case '/prize': case '!prize': case '!dice': case '/prizes': case '!prizes': case '/dice': valid = true; if (is_mod) {if(wordArray[1]=="all"){showPrizes('');}else{showPrizes(u);}valid = true; break;}if(!is_mod){showPrizes(u);} break; case '/dicestart': case '!dicestart': case '/startdice': case '!startdice': case '/diceoff': case '!diceoff': case '/diceon': case '!diceon': valid = true; if (is_mod) {DICE.playingDice ? (DICE.playingDice=false, cb.sendNotice("Since Dice was on, we turned it off for you.", u, "", "#BBBBBB", "")) : (DICE.playingDice=false, cb.sendNotice("Since Dice was off, we turned it on for you.", u, "", "#BBBBBB", ""),advertise())} break; case '/cumstarttimer': if (is_mod) { startTimerCum(wordArray[1], u); } else { cb.sendNotice('Only moderators and broadcasters are able to use that command.\nType "/ubhelp commands" to see a full list of the available commands.', u, "","#BBBBBB"); } break; case '/cmds': case '/commands': valid = true; cb.sendNotice('I Am Your True Color Command List', u, "", "#666666"); cb.sendNotice('', u, "", "#666666"); cb.sendNotice( "\n/addvip" + "\n/tovips" + "\n/tvip" + "\n/save" + "\n/load" + "\n/poll" + "\n/menu" + "\n/prizes" + "\n/winners" + "\n/polloff" + "\n/pollon" + "\n/menuon" + "\n/menuoff" + "\n/diceon" + "\n/diceoff" + "\n/color" + "\n/font" + "\n/cumstarttimer" + '\n/commands', u); cb.sendNotice('', u, "", "#666666"); break; case '/color': case '/changecolor': valid = true; set_user_color(user); msg["c"] = get_user_color(user); break; case '/font': case '/changefont': valid = true; set_user_font(user); msg["f"] = get_user_font(user); cb.log("FONT: "+msg["f"]); break; default: for (var color in TEXT.preset_colors){ if (m == color) { TEXT.colors[msg.user] = TEXT.preset_colors[color]; msg.c = get_user_color(user); msg["X-Spam"] = true; valid = true; } } if(!valid){cb.sendNotice("Yo, whatever you typed there.. it wasn't a true color command.", u, "", "#DDD", "");}else{if(m.charAt(0)=="/"){msg["X-Spam"] = true;} valid = false; } break; } } //End command processing if ( ( (user in TEXT.colors) || (msg["c"] == "#494949") ) && ( (user in TEXT.fonts) || (msg["f"] == "default") ) ){ msg["c"] = get_user_color(user); msg["f"] = get_user_font(user); } targetMenu(user,msg.m); msg.background = findColor(user); k = findRainbowTipper(user, 0); if(VIP.colorList[k][1] >= cb.settings.lvl1tip && cb.settings.lvl1yes == "Yes"){msg["c"] = "#222";} if(m.charAt(0) != '/' && m.charAt(0) != '!'){ msg.m=changeMessage(user, msg.m); } //} return msg; }); cb.onEnter(function (user) { var userId1 = findRainbowTipper(user.user,0); //CHANGE THIS FUNTION>>>> if(user.is_mod){findModDick(user,-1);} if(VIP.colorList[userId1][1] >= cb.settings.lvl1tip && cb.settings.lvl1yes == "Yes"){welcomeVip(userId1);} if(POLL.poll_running){ cb.sendNotice("Hello " + user['user'] + ", Checkout the token poll. ;) \nType !poll to see voting options.", user['user'], cb.settings.background, cb.settings.foreground); } }); cb.onLeave(function (user){ var userId2 = findRainbowTipper(user.user,0); if(VIP.colorList[userId2][1] >= cb.settings.lvl1tip && cb.settings.lvl1yes == "Yes"){cyaVip(userId2);} }); cb.onTip(function(tip) { var u = tip.from_user; var hasTokens = tip.from_user_has_tokens; var isFan = tip.from_user_in_fanclub; var isMod = tip.from_user_is_mod; var tipAmount = Number.parseInt(tip.amount, 10); var amount = parseInt(tip['amount']); var tipNote = tip.message; var userId = findRainbowTipper(u,tipAmount); //DICE GAME SHIT if(DICE.playingDice && tipAmount == Number.parseInt(cb.settings.dicePrice, 10)){roll(u);} //END DICE GAME SHIT if(cb.settings.tipReminder == "Yes"){ howManyLeft(u); } //TOKEN POLL STUFF tipPoll(u, amount, userId); var colorListNumber = 0; colorListNumber = findRainbowTipper(u,0); var fakeTip = 990099; if(!isNaN(tipNote)&& cb.settings.freeVote!=0 && tipNote!=''){fakeTip = parseInt(tipNote); walltipPoll(u,fakeTip,colorListNumber,amount);} //END TOKEN POLL STUFF //TIP MENU STUFF isItOnMenu(u,tipAmount); //END TIP MENU STUFF }); // Init function main() { if (MAIN.ranAlread == false) { if(cb.room_slug == "18yearoldcouple" || cb.room_slug == "19yearoldcouple" || cb.room_slug == "119yearoldcouple" || cb.room_slug == "120yearoldcouple"|| cb.room_slug == "219yearoldcouple"|| cb.room_slug == "mr_likes_it_"){MAIN.isYOC=true;} //TOKEN POLL, DICE, MENU, VIP INITIATION if(cb.settings.poll_on == "Yes"){POLL.poll_running = true;}else{POLL.poll_running = false;} pollStart(); if(cb.settings.dice_on=="Yes"){diceOptions(); DICE.playingDice = true;}else{DICE.playingDice = false;} loadMenu(); enterVipLists(); MAIN.ranAlread = true; } } main();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.