Bots Home
|
Create an App
BorderBot
Author:
mrmarco2000
Description
Source Code
Launch Bot
Current Users
Created by:
Mrmarco2000
// CB app settings cb.settings_choices = [ { name: 'doColoring', type: 'choice', label: 'Change text and background coloring for members and heroes (choose colours below)?', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes' }, { name: 'doText', type: 'choice', label: 'Add text labels in front of members and heroes messages (choose text below)?', choice1: 'Yes', choice2: 'No', defaultValue: 'Yes' }, {name:'ngpm', type:'choice', choice1:'Yes', choice2:'No', defaultValue: 'Yes', label:'------PM CONTROL-------Blocking PM requests'}, // ################################################## // Group One // ################################################## {name: 'raText', label: 'Text to put in front of Soldier messages', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: 'Soldier'}, {name: 'raEmote', label: 'Emoticon to put in front of Soldier messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: ':yk_bt'}, {name: 'raBGColor', label: 'Soldier background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'd7dc42'}, {name: 'raMinTip', label: 'Minimum tip to become a Soldier', type: 'int', minValue: 1, defaultValue: 5555}, {name: 'raAnnounce', label: 'Text to show when someone tips to become a Soldier', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'MEMBERNAME just joined the Soldier'}, {name: 'raMemberList', label: 'List of current Soldiers, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'raRainText', label: 'Text to use for Soldier rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'Madd Moxxie Welcomes a new Soldier'}, {name: 'raRainCount', label: 'Number of lines of Soldier rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 15}, {name: 'raEmoteEnter', label: 'Emoticon Soldier Enter room (e.g. Lo)', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: ':yk_herald2'}, {name: 'raEnterRoom', label: 'Enters the room as a Soldier text (End part)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'has entered the palace!'}, {name: 'raBGEnter', label: 'Soldier Enter Room Background color - HTML color code ', type: 'str', minLength: 0, maxLength: 7, required: false, defaultValue: '#d7dc42'}, // ################################################## // Group Two // ################################################## {name: 'rbText', label: 'Text to put in front of Siren messages (e.g. Ki)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: 'Siren'}, {name: 'rbEmote', label: 'Emoticon to put in front of Siren messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: ':yk_wt'}, {name: 'rbBGColor', label: 'Siren background color - HTML colour code without starting \'#\' e.g. (F5B608 is orangey/gold)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: '8ce0ad'}, {name: 'rbMinTip', label: 'Minimum tip to become a Siren', type: 'int', minValue: 1, defaultValue: 4444}, {name: 'rbAnnounce', label: 'Text to show when someone tips to become a Siren', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'MEMBERNAME just joined the Siren'}, {name: 'rbMemberList', label: 'List of current Sirens, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'rbRainText', label: 'Text to use for Siren rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'Madd Moxxie Welcomes a new Siren'}, {name: 'rbRainCount', label: 'Number of lines of Siren rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 15}, {name: 'rbEmoteEnter', label: 'Emoticon Siren Enter room (e.g. Lo)', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: ':yk_herald2'}, {name: 'rbEnterRoom', label: 'Enters the room as a Siren text (End part)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'has entered the palace!'}, {name: 'rbBGEnter', label: 'Siren Enter Room Background color - HTML color code ', type: 'str', minLength: 0, maxLength: 7, required: false, defaultValue: '#8ce0ad'}, // ################################################## // Group Three // ################################################## {name: 'rcText', label: 'Text to put in front of Hunter messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: 'Hunter'}, {name: 'rcEmote', label: 'Emoticon to put in front of Hunter messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: ':yk_bb'}, {name: 'rcBGColor', label: 'Hunter background color - HTML colour code without starting \'#\' e.g. (F5B608 is orangey/gold)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'f26464'}, {name: 'rcMinTip', label: 'Minimum tip to become a Hunter', type: 'int', minValue: 1, defaultValue: 3333}, {name: 'rcAnnounce', label: 'Text to show when someone tips to become a Hunter', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'MEMBERNAME just joined the Hunter'}, {name: 'rcMemberList', label: 'List of current Hunters, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'rcRainText', label: 'Text to use for Hunter rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'Madd Moxxie Welcomes a new Hunter'}, {name: 'rcRainCount', label: 'Number of lines of Hunter rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 15}, {name: 'rcEmoteEnter', label: 'Emoticon Hunter Enter room (e.g. Lo)', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: ':yk_herald2'}, {name: 'rcEnterRoom', label: 'Enters the room as a Hunter text (End part)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'has entered the palace!'}, {name: 'rcBGEnter', label: 'Hunter Enter Room Background color - HTML color code ', type: 'str', minLength: 0, maxLength: 7, required: false, defaultValue: '#f26464'}, // ################################################## // Group Four // ################################################## {name: 'rdText', label: 'Text to put in front of Brawler messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: 'Brawler'}, {name: 'rdEmote', label: 'Emoticon to put in front of Brawler messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: ':yk_wb'}, {name: 'rdBGColor', label: 'Brawler background color - HTML colour code without starting \'#\' e.g. (F5B608 is orangey/gold)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'f26464'}, {name: 'rdMinTip', label: 'Minimum tip to become a Brawler', type: 'int', minValue: 1, defaultValue: 2222}, {name: 'rdAnnounce', label: 'Text to show when someone tips to become a Brawler', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'MEMBERNAME just joined the Brawler'}, {name: 'rdMemberList', label: 'List of current Brawlers, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'rdRainText', label: 'Text to use for Brawler rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'Madd Moxxie Welcomes a new Brawler'}, {name: 'rdRainCount', label: 'Number of lines of Brawler rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 15}, {name: 'rdEmoteEnter', label: 'Emoticon Brawler Enter room (e.g. Lo)', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: ':yk_herald2'}, {name: 'rdEnterRoom', label: 'Enters the room as a Brawler text (End part)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'has entered the palace!'}, {name: 'rdBGEnter', label: 'Brawler Enter Room Background color - HTML color code ', type: 'str', minLength: 0, maxLength: 7, required: false, defaultValue: '#f26464'}, // ################################################## // Group Five // ################################################## {name: 'reText', label: 'Text to put in front of Sentinel messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: 'Sentinel'}, {name: 'reEmote', label: 'Emoticon to put in front of Sentinel messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: ':yk_bh'}, {name: 'reBGColor', label: 'Sentinel background color - HTML colour code without starting \'#\' e.g. (F5B608 is orangey/gold)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'BDBBBB'}, {name: 'reMinTip', label: 'Minimum tip to become a Sentinel', type: 'int', minValue: 1, defaultValue: 1111}, {name: 'reAnnounce', label: 'Text to show when someone tips to become a Sentinel', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'MEMBERNAME just joined the Sentinel'}, {name: 'reMemberList', label: 'List of current Sentinels, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'reRainText', label: 'Text to use for Sentinel rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'Madd Moxxie Welcomes a new Sentinel'}, {name: 'reRainCount', label: 'Number of lines of Sentinel rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 15}, {name: 'reEmoteEnter', label: 'Emoticon Sentinel Enter room (e.g. Lo)', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: ':yk_herald2'}, {name: 'reEnterRoom', label: 'Enters the room as a Sentinel text (End part)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'has entered the palace!'}, {name: 'reBGEnter', label: 'Sentinel Enter Room Background color - HTML color code ', type: 'str', minLength: 0, maxLength: 7, required: false, defaultValue: '#BDBBBB'}, // ################################################## // Group Six // ################################################## {name: 'rfText', label: 'Text to put in front of Assassin messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: 'Assassin'}, {name: 'rfEmote', label: 'Emoticon to put in front of Assassin messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: ':yk_Assassin'}, {name: 'rfBGColor', label: 'Assassin background color - HTML colour code without starting \'#\' e.g. (F5B608 is orangey/gold)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'BDBBBB'}, {name: 'rfMinTip', label: 'Minimum tip to become an Assassin', type: 'int', minValue: 1, defaultValue: 50001}, {name: 'rfAnnounce', label: 'Text to show when someone tips to become an Assassin', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'MEMBERNAME became the new ASSASSIN'}, {name: 'rfMemberList', label: 'List of current Assassins, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'rfEmoteEnter', label: 'Emoticon Assassin Enter room (e.g. Lo)', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: ':yk_herald2'}, {name: 'rfEnterRoom', label: 'Enters the room as an Assassin text (End part)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'has entered the palace!'}, {name: 'rfBGEnter', label: 'Assassin Enter Room Background color - HTML color code ', type: 'str', minLength: 0, maxLength: 7, required: false, defaultValue: '#BDBBBB'}, // ################################################## // Group Seven // ################################################## {name: 'rgText', label: 'Text to put in front of Gunzerker messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: 'Gunzerker'}, {name: 'rgEmote', label: 'Emoticon to put in front of Gunzerker messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: ':yk_bb'}, {name: 'rgBGColor', label: 'Gunzerker background color - HTML colour code without starting \'#\' e.g. (F5B608 is orangey/gold)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'BDBBBB'}, {name: 'rgMemberList', label: 'List of current Gunzerkers, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'rgEmoteEnter', label: 'Emoticon Gunzerker Enter room (e.g. Lo)', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: ':yk_herald2'}, {name: 'rgEnterRoom', label: 'Enters the room as a Gunzerker text (End part)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'has entered the palace!'}, {name: 'rgBGEnter', label: 'Gunzerker Enter Room Background color - HTML color code ', type: 'str', minLength: 0, maxLength: 7, required: false, defaultValue: '#BDBBBB'}, // ################################################## // Group Eight // ################################################## {name: 'rhText', label: 'Text to put in front of Mecromancer messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: 'Mecromancer'}, {name: 'rhEmote', label: 'Emoticon to put in front of Mecromancer messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: ':yk_jestcol'}, {name: 'rhBGColor', label: 'Mecromancer background color - HTML colour code without starting \'#\' e.g. (F5B608 is orangey/gold)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'BDBBBB'}, {name: 'rhMemberList', label: 'List of current Mecromancers, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'rhEmoteEnter', label: 'Emoticon Mecromancer Enter room (e.g. Lo)', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: ':yk_herald2'}, {name: 'rhEnterRoom', label: 'Enters the room as a Mecromancer text (End part)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ' Mecromancer has entered the palace!'}, {name: 'rhBGEnter', label: 'Mecromancer Enter Room Background color - HTML color code ', type: 'str', minLength: 0, maxLength: 7, required: false, defaultValue: '#BDBBBB'}, // ################################################## // Group Nine // ################################################## {name: 'riText', label: 'Text to put in front of Mercenary messages', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: 'Mercenary'}, {name: 'riEmote', label: 'Emoticon to put in front of Mercenary messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: ':yk_gm'}, {name: 'riBGColor', label: 'Mercenary background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'd7dc42'}, {name: 'riMinTip', label: 'Minimum tip to become a Mercenary', type: 'int', minValue: 1, defaultValue: 22222}, {name: 'riAnnounce', label: 'Text to show when someone tips to become a Mercenary', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'MEMBERNAME just joined the Mercenary'}, {name: 'riMemberList', label: 'List of current Mercenaries, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'riRainText', label: 'Text to use for Mercenary rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'Madd Moxxie Welcomes a new Mercenary'}, {name: 'riRainCount', label: 'Number of lines of Mercenary rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 15}, {name: 'riEmoteEnter', label: 'Emoticon Mercenary Enter room (e.g. Lo)', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: ':yk_herald2'}, {name: 'riEnterRoom', label: 'Enters the room as a Mercenary text (End part)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'has entered the palace!'}, {name: 'riBGEnter', label: 'Mercenary Enter Room Background color - HTML color code ', type: 'str', minLength: 0, maxLength: 7, required: false, defaultValue: '#d7dc42'}, // ################################################## // Group Ten // ################################################## {name: 'rjText', label: 'Text to put in front of Bounty Hunter messages', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: 'Bounty Hunter'}, {name: 'rjEmote', label: 'Emoticon to put in front of Bounty Hunter messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: ':yk_love'}, {name: 'rjBGColor', label: 'Bounty Hunter background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'd7dc42'}, {name: 'rjMinTip', label: 'Minimum tip to become a Bounty Hunter', type: 'int', minValue: 1, defaultValue: 11111}, {name: 'rjAnnounce', label: 'Text to show when someone tips to become a Bounty Hunter', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'MEMBERNAME just joined the Bounty Hunter'}, {name: 'rjMemberList', label: 'List of current Bounty Hunters, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'rjRainText', label: 'Text to use for Bounty Hunter rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'Madd Moxxie Welcomes a new Bounty Hunter'}, {name: 'rjRainCount', label: 'Number of lines of Bounty Hunter rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 15}, {name: 'rjEmoteEnter', label: 'Emoticon Bounty Hunter Enter room (e.g. Lo)', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: ':yk_herald2'}, {name: 'rjEnterRoom', label: 'Enters the room as a Bounty Hunter text (End part)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'has entered the palace!'}, {name: 'rjBGEnter', label: 'Bounty Hunter Enter Room Background color - HTML color code ', type: 'str', minLength: 0, maxLength: 7, required: false, defaultValue: '#d7dc42'}, // ################################################## // Group Eleven // ################################################## {name: 'rkText', label: 'Text to put in front of Gladiator messages', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: 'Gladiator'}, {name: 'rkEmote', label: 'Emoticon to put in front of Gladiator messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: ':yk_exec'}, {name: 'rkBGColor', label: 'Gladiator background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'd7dc42'}, {name: 'rkMinTip', label: 'Minimum tip to become a Gladiator', type: 'int', minValue: 1, defaultValue: 666}, {name: 'rkAnnounce', label: 'Text to show when someone tips to become a Gladiator', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'MEMBERNAME just joined the Gladiator'}, {name: 'rkMemberList', label: 'List of current Gladiators, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'rkRainText', label: 'Text to use for Gladiator rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'Madd Moxxie Welcomes a new Gladiator'}, {name: 'rkRainCount', label: 'Number of lines of Gladiator rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 15}, {name: 'rkEmoteEnter', label: 'Emoticon Gladiator Enter room (e.g. Lo)', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: ':yk_herald2'}, {name: 'rkEnterRoom', label: 'Enters the room as a Gladiator text (End part)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'has entered the palace!'}, {name: 'rkBGEnter', label: 'Gladiator Enter Room Background color - HTML color code ', type: 'str', minLength: 0, maxLength: 7, required: false, defaultValue: '#d7dc42'}, // ################################################## // Group Twelve // ################################################## {name: 'rlText', label: 'Text to put in front of Claptrap messages', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: 'Claptrap'}, {name: 'rlEmote', label: 'Emoticon to put in front of Claptrap messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: ':alert1'}, {name: 'rlBGColor', label: 'Claptrap background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'd7dc42'}, {name: 'rlMinTip', label: 'Minimum tip to become a Claptrap', type: 'int', minValue: 1, defaultValue: 1001}, {name: 'rlAnnounce', label: 'Text to show when someone tips to become a Claptrap', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'MEMBERNAME just joined the Claptrap'}, {name: 'rlMemberList', label: 'List of current Claptraps, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'rlRainText', label: 'Text to use for Claptrap rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'Madd Moxxie Welcomes a new Claptrap'}, {name: 'rlRainCount', label: 'Number of lines of Claptrap rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 15}, {name: 'rlEmoteEnter', label: 'Emoticon Claptrap Enter room (e.g. Lo)', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: ':yk_herald2'}, {name: 'rlEnterRoom', label: 'Enters the room as a Claptrap text (End part)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'has entered the palace!'}, {name: 'rlBGEnter', label: 'Claptrap Enter Room Background color - HTML color code ', type: 'str', minLength: 0, maxLength: 7, required: false, defaultValue: '#d7dc42'}, // ################################################## // Group Thirteen // ################################################## {name: 'rmText', label: 'Text to put in front of Victim messages', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: 'Victim'}, {name: 'rmEmote', label: 'Emoticon to put in front of Victim messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 15, required: false, defaultValue: ':yk_Victim'}, {name: 'rmBGColor', label: 'Victim background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'd7dc42'}, {name: 'rmMinTip', label: 'Minimum tip to become a Victim', type: 'int', minValue: 1, defaultValue: 1002}, {name: 'rmAnnounce', label: 'Text to show when someone tips to become a Victim', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'MEMBERNAME just joined the Victim'}, {name: 'rmMemberList', label: 'List of current Victims, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'rmRainText', label: 'Text to use for Victim rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'Madd Moxxie Welcomes a new Victim'}, {name: 'rmRainCount', label: 'Number of lines of Victim rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 15}, {name: 'rmEmoteEnter', label: 'Emoticon Victim Enter room (e.g. Lo)', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: ':yk_herald2'}, {name: 'rmEnterRoom', label: 'Enters the room as a Victim text (End part)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'Victim has entered the palace!'}, {name: 'rmBGEnter', label: 'Victim Enter Room Background color - HTML color code ', type: 'str', minLength: 0, maxLength: 7, required: false, defaultValue: '#d7dc42'}, // ################################################## // Group Forteen // ################################################## {name: 'rnText', label: 'Text to put in front of Convict messages', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: 'Convict'}, {name: 'rnEmote', label: 'Emoticon to put in front of Convict messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: ':yk_conv'}, {name: 'rnBGColor', label: 'Convict background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'd7dc42'}, {name: 'rnMinTip', label: 'Minimum tip to become a Convict', type: 'int', minValue: 1, defaultValue: 1003}, {name: 'rnAnnounce', label: 'Text to show when someone tips to become a Convict', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'MEMBERNAME just joined the Convict'}, {name: 'rnMemberList', label: 'List of current Convicts, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'rnRainText', label: 'Text to use for Convict rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'Madd Moxxie Welcomes a new Convict'}, {name: 'rnRainCount', label: 'Number of lines of Convict rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 15}, {name: 'rnEmoteEnter', label: 'Emoticon Convict Enter room (e.g. Lo)', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: ':yk_herald2'}, {name: 'rnEnterRoom', label: 'Enters the room as a Convict text (End part)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'has entered the palace!'}, {name: 'rnBGEnter', label: 'Convict Enter Room Background color - HTML color code ', type: 'str', minLength: 0, maxLength: 7, required: false, defaultValue: '#d7dc42'}, // ################################################## // Group Fifteen // ################################################## {name: 'roText', label: 'Text to put in front of Asshole messages', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: 'Asshole'}, {name: 'roEmote', label: 'Emoticon to put in front of Asshole messages (e.g. Lo)', type: 'str', minLength: 0, maxLength: 10, required: false, defaultValue: ':yk_conv'}, {name: 'roBGColor', label: 'Asshole background color - HTML colour code without starting \'#\' e.g. (000000 is black)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'd7dc42'}, {name: 'roMinTip', label: 'Minimum tip to become an Asshole', type: 'int', minValue: 1, defaultValue: 1003}, {name: 'roAnnounce', label: 'Text to show when someone tips to become an Asshole', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'MEMBERNAME just joined the Assholes'}, {name: 'roMemberList', label: 'List of current Assholes, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, {name: 'roRainText', label: 'Text to use for Asshole rain lines', type: 'str', minLength: 0, maxLength: 80, required: false, defaultValue: 'Madd Moxxie Welcomes a new Asshole'}, {name: 'roRainCount', label: 'Number of lines of Asshole rain', type: 'int', minValue: 1, maxValue: 15, defaultValue: 15}, {name: 'roEmoteEnter', label: 'Emoticon Asshole Enter room (e.g. Lo)', type: 'str', minLength: 0, maxLength: 20, required: false, defaultValue: ':yk_herald2'}, {name: 'roEnterRoom', label: 'Enters the room as an Asshole text (End part)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: 'has entered the palace!'}, {name: 'roBGEnter', label: 'Asshole Enter Room Background color - HTML color code ', type: 'str', minLength: 0, maxLength: 7, required: false, defaultValue: '#d7dc42'}, // ################################################## // Blocker // ################################################## { name: 'blockMemberList', label: 'List of Blocked Users, separated by commas (and they need to be the CB username exactly)', type: 'str', minLength: 0, maxLength: 10240, required: false, defaultValue: ''}, // ################################################## // Rotating Advertisements // ################################################## { name:'msg1', type:'str', required: true, label:'Message 1 (also displayed privately on room entry)', }, { name:'msg2', type:'str', required: false, label:'Message 2', }, { name:'msg3', type:'str', required: false, label:'Message 3', }, { name:'msg4', type:'str', required: false, label:'Message 4', }, { name:'msg5', type:'str', required: false, label:'Message 5', }, { name:'msg6', type:'str', required: false, label:'Message 6', }, { name:'msg7', type:'str', required: false, label:'Message 7', }, { name:'msgcolor', type:'str', label:'Notice color (html code default dark red #9F000F)', defaultValue: '#9F000F' }, { name:'msgbgcolor', type:'str', label:'Notice background color (html code default #F9EEFF)', defaultValue: '#F9EEFF' }, { name: 'chat_ad', type:'int', minValue: 1, maxValue: 999, defaultValue: 2, label: 'Delay in minutes between notices being displayed (minimum 1)' }, { name: 'ymBGColor', label: 'Model Background Color - HTML colour code without starting \'#\' e.g. (F5B608 is orangey/gold)', type: 'str', minLength: 0, maxLength: 6, required: false, defaultValue: 'FFDAF1' }, { name: 'roomRules', label: 'Rules for room shown when /roomRules is used', type: 'str', minLength: 1, maxLength: 2000, required: false, defaultValue: "1) Be respectful at all times.... 2) No baby/bb/bby... 3) No CAPS........You will be silenced or banned" }, { name: 'ghostList', label: 'List of Ghost Users who have been silenced (DO NOT ENTER ANY USERNAMES)', type: 'str', minLength: 1, maxLength: 10240, required: false, defaultValue: '' }, ]; var raMembers = {}; var rbMembers = {}; var rcMembers = {}; var rdMembers = {}; var reMembers = {}; var rfMembers = {}; var rgMembers = {}; var rhMembers = {}; var riMembers = {}; var rjMembers = {}; var rkMembers = {}; var rlMembers = {}; var rmMembers = {}; var rnMembers = {}; var roMembers = {}; var ghostList = []; var blockMembers = {}; var i=1; // For auto-silencing at least some of token_wh*re_c*nts usernames var twcRegex = /t.?k.?n.?wh.?r.?_c.?nt.?/i; // ######################### // Message settings // ######################### cb.onMessage(function (msg) { // vars for ease of use var u = msg['user']; var m = msg['m']; var isModel = (u == cb.room_slug); var exempt = (isModel); if(m[0] == '/'){ // Is a command msg['X-Spam'] = true; if(isModel){ // IsModel or Mod var actionArray = m.substr(1).split(' '); if( isModel ){ if( actionArray.length >= 2){ switch(actionArray[0]) { case "convict": cb.sendNotice('Sending '+actionArray[1]+' to Jail for bad behaviour'); setConvict(actionArray[1]); break; case "Asshole": cb.sendNotice('Sending Convict '+actionArray[1]+' to Asshole for continued bad behaviour'); unsetConvict(actionArray[1]); setAsshole(actionArray[1]); break; case "release": cb.sendNotice(actionArray[1]+' has been released from jail'); unsetConvict(actionArray[1]); unsetAsshole(actionArray[1]); break; case "kill": cb.sendNotice('Sentenced '+actionArray[1]+' to Silence'); unsetAsshole(actionArray[1]); setBlock(actionArray[1]); break; case "block": cb.sendNotice('Blocking '+actionArray[1],u); setBlock(actionArray[1]); break; case "unblock": cb.sendNotice('Removing Block '+actionArray[1],u); unsetBlock(actionArray[1]); break; case "ghost": cb.sendNotice('Ghost '+actionArray[1]+' from the Borderlands has entered'); setGhost(actionArray[1]); break; default: } }else if( actionArray.length == 1){ switch(actionArray[0].toLowerCase()) { case "roomrules": msg['X-Spam'] = false; cb.sendNotice(cb.settings.roomRules,'','#FFDAF1','#000000',''); //msg['m'] = showRules(); //msg['c'] = '#000000'; //msg['background'] = '#8C1717'; break; case "ykhelp": var n = ""; n += "######################################\n"; n += "Madd Moxxie\n"; n += "######################################\n"; n += "/roomRules: Display the room rules\n"; n += "\n"; n += "/convict <membername> : Sends user to Jail\n"; n += "\n"; n += "/Asshole <membername> : Sends user to Asshole\n"; n += "\n"; n += "/release <membername> : releases user from Jail\n"; n += "or from Asshole\n"; n += "\n"; n += "/kill <membername> : Silences the user\n"; n += "\n"; n += "/block <membername> : Blocks a user for this period\n"; n += "/unblock <membername> : Unblocks a user for this period\n"; n += "\n"; n += "/ghost <membername> : Unsilences a user thats been\n"; n += "silenced by the moderators by mistake\n"; n += "######################################"; cb.sendNotice(n,u,'#D8DEFF','','bold'); break; default: } } } } // No else, if its a command and not a model or a mod, do nothing }else if (isBLOCK(u) && !exempt ) { msg['X-Spam'] = true; }else if( isGHOST(u) ){ cb.sendNotice("Ghost: " + u + ": " + m + " " ,'', '#FFECFF', '', ''); } // Assassin if ( isRF(u) ) { msg['background'] = '#' + cb.settings.rfBGColor; msg['m'] = cb.settings.rfEmote +" "+ cb.settings.rfText + " "+cb.settings.rfEmote + " " +msg['m']; // Gunzerker } else if ( isRG(u) ) { msg['background'] = '#' + cb.settings.rgBGColor; msg['m'] = cb.settings.rgEmote +" "+ cb.settings.rgText + " "+cb.settings.rgEmote + " " +msg['m']; // Mercenary } else if ( isRI(u) ) { msg['background'] = '#' + cb.settings.riBGColor; msg['m'] = cb.settings.riEmote +" "+ cb.settings.riText + " "+cb.settings.riEmote + " " +msg['m']; // Bounty Hunter } else if ( isRJ(u) ) { msg['background'] = '#' + cb.settings.rjBGColor; msg['m'] = cb.settings.rjEmote +" "+ cb.settings.rjText + " "+cb.settings.rjEmote + " " +msg['m']; // Soldier } else if ( isRA(u) ) { msg['background'] = '#' + cb.settings.raBGColor; msg['m'] = cb.settings.raEmote +" "+ cb.settings.raText + " "+cb.settings.raEmote + " " +msg['m']; // Siren } else if ( isRB(u) ) { msg['background'] = '#' + cb.settings.rbBGColor; msg['m'] = cb.settings.rbEmote +" "+ cb.settings.rbText + " "+cb.settings.rbEmote + " " +msg['m']; // Hunter } else if ( isRC(u) ) { msg['background'] = '#' + cb.settings.rcBGColor; msg['m'] = cb.settings.rcEmote +" "+ cb.settings.rcText + " "+cb.settings.rcEmote + " " +msg['m']; // Brawler } else if ( isRD(u) ) { msg['background'] = '#' + cb.settings.rdBGColor; msg['m'] = cb.settings.rdEmote +" "+ cb.settings.rdText + " "+cb.settings.rdEmote + " " +msg['m']; // Sentinel } else if ( isRE(u) ) { msg['background'] = '#' + cb.settings.reBGColor; msg['m'] = cb.settings.reEmote +" "+ cb.settings.reText + " "+cb.settings.reEmote + " " +msg['m']; // Asshole } else if ( isRO(u) ) { msg['background'] = '#' + cb.settings.roBGColor; msg['m'] = cb.settings.roEmote +" "+ cb.settings.roText + " "+cb.settings.roEmote + " " +msg['m']; // Convict } else if ( isRN(u) ) { msg['background'] = '#' + cb.settings.rnBGColor; msg['m'] = cb.settings.rnEmote +" "+ cb.settings.rnText + " "+cb.settings.rnEmote + " " +msg['m']; // Victim } else if ( isRM(u) ) { msg['background'] = '#' + cb.settings.rmBGColor; msg['m'] = cb.settings.rmEmote +" "+ cb.settings.rmText + " "+cb.settings.rmEmote + " " +msg['m']; // Claptrap } else if ( isRL(u) ) { msg['background'] = '#' + cb.settings.rlBGColor; msg['m'] = cb.settings.rlEmote +" "+ cb.settings.rlText + " "+cb.settings.rlEmote + " " +msg['m']; // Gladiator } else if ( isRK(u) ) { msg['background'] = '#' + cb.settings.rkBGColor; msg['m'] = cb.settings.rkEmote +" "+ cb.settings.rkText + " "+cb.settings.rkEmote + " " +msg['m']; // Mecromancer } else if ( isRH(u) ) { msg['background'] = '#' + cb.settings.rhBGColor; msg['m'] = cb.settings.rhEmote +" "+ cb.settings.rhText + " "+cb.settings.rhEmote + " " +msg['m']; } else if (msg['user'] == cb.room_slug) { msg['background'] = '#' + cb.settings.ymBGColor; } if (twcRegex.test(u)){ // Auto-silencing at least some of token_wh*re_c*nts usernames msg['X-Spam'] = true; } return msg; }); // ######################### // Entering the room // ######################### cb.onEnter(function(user){ var u = user['user']; cb.sendNotice('Welcome ' + u + '! ' + cb.settings.msg1, u,cb.settings.msgbgcolor ,cb.settings.msgcolor,'bold'); if ( isRF(u) ) { cb.sendNotice(cb.settings.rfEmoteEnter + " " + cb.settings.rfText + " "+ u + " "+ cb.settings.rfEnterRoom, '', cb.settings.rfBGEnter, '', 'bold');} else if ( isRG(u) ) { cb.sendNotice(cb.settings.rgEmoteEnter + " " + cb.settings.rgText + " "+ u + " "+ cb.settings.rgEnterRoom, '', cb.settings.rgBGEnter, '', 'bold');} else if ( isRI(u) ) { cb.sendNotice(cb.settings.riEmoteEnter + " " + cb.settings.riText + " "+ u + " "+ cb.settings.riEnterRoom, '', cb.settings.riBGEnter, '', 'bold');} else if ( isRJ(u) ) { cb.sendNotice(cb.settings.rjEmoteEnter + " " + cb.settings.rjText + " "+ u + " "+ cb.settings.rjEnterRoom, '', cb.settings.rjBGEnter, '', 'bold');} else if ( isRA(u) ) { cb.sendNotice(cb.settings.raEmoteEnter + " " + cb.settings.raText + " "+ u + " "+ cb.settings.raEnterRoom, '', cb.settings.raBGEnter, '', 'bold');} else if ( isRB(u) ) { cb.sendNotice(cb.settings.rbEmoteEnter + " " + cb.settings.rbText + " "+ u + " "+ cb.settings.rbEnterRoom, '', cb.settings.rbBGEnter, '', 'bold');} else if ( isRC(u) ) { cb.sendNotice(cb.settings.rcEmoteEnter + " " + cb.settings.rcText + " "+ u + " "+ cb.settings.rcEnterRoom, '', cb.settings.rcBGEnter, '', 'bold');} else if ( isRD(u) ) { cb.sendNotice(cb.settings.rdEmoteEnter + " " + cb.settings.rdText + " "+ u + " "+ cb.settings.rdEnterRoom, '', cb.settings.rdBGEnter, '', 'bold');} else if ( isRE(u) ) { cb.sendNotice(cb.settings.reEmoteEnter + " " + cb.settings.reText + " "+ u + " "+ cb.settings.reEnterRoom, '', cb.settings.reBGEnter ,'','bold');} else if ( isRN(u) ) { cb.sendNotice(cb.settings.rnEmoteEnter + " " + cb.settings.rnText + " "+ u + " "+ cb.settings.rnEnterRoom, '', cb.settings.rnBGEnter, '', 'bold');} else if ( isRM(u) ) { cb.sendNotice(cb.settings.rmEmoteEnter + " " + cb.settings.rmText + " "+ u + " "+ cb.settings.rmEnterRoom, '', cb.settings.rmBGEnter, '', 'bold');} else if ( isRL(u) ) { cb.sendNotice(cb.settings.rlEmoteEnter + " " + cb.settings.rlText + " "+ u + " "+ cb.settings.rlEnterRoom, '', cb.settings.rlBGEnter, '', 'bold');} else if ( isRH(u) ) { cb.sendNotice(cb.settings.rhEmoteEnter + " " + cb.settings.rhText + " "+ u + " "+ cb.settings.rhEnterRoom, '', cb.settings.rhBGEnter, '', 'bold');} else if ( isRK(u) ) { cb.sendNotice(cb.settings.rkEmoteEnter + " " + cb.settings.rkText + " "+ u + " "+ cb.settings.rkEnterRoom, '', cb.settings.rkBGEnter, '', 'bold');} }); // ######################### // Tip Settings // ######################### cb.onTip(function (tip) { var amountTipped = parseInt(tip['amount']); if (amountTipped == cb.settings.raMinTip) { // Make Soldier and announce it var announcement = cb.settings.raAnnounce.replace("MEMBERNAME", tip['from_user']); makeRA(tip['from_user']); for (var i = 0; i < cb.settings.raRainCount; i++) { cb.sendNotice(cb.settings.raRainText); } cb.sendNotice(announcement); } if (amountTipped == cb.settings.rbMinTip) { // Make Siren and announce it var announcement = cb.settings.rbAnnounce.replace("MEMBERNAME", tip['from_user']); makeRB(tip['from_user']); for (var i = 0; i < cb.settings.rbRainCount; i++) { cb.sendNotice(cb.settings.rbRainText); } cb.sendNotice(announcement); } if (amountTipped == cb.settings.rcMinTip) { // Make Hunter and announce it var announcement = cb.settings.rcAnnounce.replace("MEMBERNAME", tip['from_user']); makeRC(tip['from_user']); for (var i = 0; i < cb.settings.rcRainCount; i++) { cb.sendNotice(cb.settings.rcRainText); } cb.sendNotice(announcement); } if (amountTipped == cb.settings.rdMinTip) { // Make Brawler and announce it var announcement = cb.settings.rdAnnounce.replace("MEMBERNAME", tip['from_user']); makeRD(tip['from_user']); for (var i = 0; i < cb.settings.rdRainCount; i++) { cb.sendNotice(cb.settings.rdRainText); } cb.sendNotice(announcement); } if (amountTipped == cb.settings.reMinTip) { // Make Sentinel and announce it var announcement = cb.settings.reAnnounce.replace("MEMBERNAME", tip['from_user']); makeRE(tip['from_user']); for (var i = 0; i < cb.settings.reRainCount; i++) { cb.sendNotice(cb.settings.reRainText); } cb.sendNotice(announcement); } if (amountTipped > cb.settings.rfMinTip) { // Make Sentinel and announce it var announcement = cb.settings.rfAnnounce.replace("MEMBERNAME", tip['from_user']); makeRF(tip['from_user']); for (var i = 0; i < cb.settings.rfRainCount; i++) { cb.sendNotice(cb.settings.rfRainText); } cb.sendNotice(announcement); } if (amountTipped == cb.settings.riMinTip) { // Make Sentinel and announce it var announcement = cb.settings.riAnnounce.replace("MEMBERNAME", tip['from_user']); makeRI(tip['from_user']); for (var i = 0; i < cb.settings.riRainCount; i++) { cb.sendNotice(cb.settings.riRainText); } cb.sendNotice(announcement); } if (amountTipped == cb.settings.rjMinTip) { // Make Sentinel and announce it var announcement = cb.settings.rjAnnounce.replace("MEMBERNAME", tip['from_user']); makeRJ(tip['from_user']); for (var i = 0; i < cb.settings.rjRainCount; i++) { cb.sendNotice(cb.settings.rjRainText); } cb.sendNotice(announcement); } if (amountTipped == cb.settings.rkMinTip) { // Make Sentinel and announce it var announcement = cb.settings.rkAnnounce.replace("MEMBERNAME", tip['from_user']); makeRK(tip['from_user']); for (var i = 0; i < cb.settings.rkRainCount; i++) { cb.sendNotice(cb.settings.rkRainText); } cb.sendNotice(announcement); } if (amountTipped == cb.settings.rlMinTip) { // Make Sentinel and announce it var announcement = cb.settings.rlAnnounce.replace("MEMBERNAME", tip['from_user']); makeRL(tip['from_user']); for (var i = 0; i < cb.settings.rlRainCount; i++) { cb.sendNotice(cb.settings.rlRainText); } cb.sendNotice(announcement); } if (amountTipped == cb.settings.rmMinTip) { // Make Sentinel and announce it var announcement = cb.settings.rmAnnounce.replace("MEMBERNAME", tip['from_user']); makeRM(tip['from_user']); for (var i = 0; i < cb.settings.rmRainCount; i++) { cb.sendNotice(cb.settings.rmRainText); } cb.sendNotice(announcement); } if (amountTipped == cb.settings.rnMinTip) { // Make Sentinel and announce it var announcement = cb.settings.rnAnnounce.replace("MEMBERNAME", tip['from_user']); makeRN(tip['from_user']); for (var i = 0; i < cb.settings.rnRainCount; i++) { cb.sendNotice(cb.settings.rnRainText); } cb.sendNotice(announcement); } }); // ######################### // Function for Ad // ######################### function chatAd() { var msg; while (cb.settings['msg' + i] == 0) { //skip empty messages i++; if (i > 7) { //loop back to first message i=1; } } msg = cb.settings['msg' + i]; i++; if (i > 7) { //loop back to first message i=1; } cb.sendNotice(msg,'','',cb.settings['msgcolor'],'bold'); cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); } // ######################### // Bot Help // ######################### function botAd() { cb.sendNotice('Type /ykhelp for Help menu','','','','bold'); cb.setTimeout(botAd, (cb.settings.chat_ad * 60000)); } // ######################### // Function for Groups // ######################### function isRA(username) { return (username in raMembers); } function isRB(username) { return (username in rbMembers); } function isRC(username) { return (username in rcMembers); } function isRD(username) { return (username in rdMembers); } function isRE(username) { return (username in reMembers); } function isRF(username) { return (username in rfMembers); } function isRG(username) { return (username in rgMembers); } function isRH(username) { return (username in rhMembers); } function isRI(username) { return (username in riMembers); } function isRJ(username) { return (username in rjMembers); } function isRK(username) { return (username in rkMembers); } function isRL(username) { return (username in rlMembers); } function isRM(username) { return (username in rmMembers); } function isRN(username) { return (username in rnMembers); } function isRO(username) { return (username in roMembers); } function isBLOCK(username) { return (username in blockMembers); } function isGHOST(username) { return (username in ghostList); } // ######################### // Set and unset Functions // ######################### function setConvict(username) { rnMembers[username] = {'u': 1}; } function unsetConvict(username) { delete rnMembers[username]; } function setAsshole(username) { roMembers[username] = {'u': 1}; } function unsetAsshole(username) { delete roMembers[username]; } function setBlock(username) { blockMembers[username] = {'u': 1}; } function unsetBlock(username) { delete blockMembers[username]; } function setGhost(username) { ghostList[username] = {'u': 1}; } // ######################### // Make Functions // ######################### function makeRA(username) { raMembers[username] = {'u': 1}; } function makeRB(username) { rbMembers[username] = {'u': 1}; } function makeRC(username) { rcMembers[username] = {'u': 1}; } function makeRD(username) { rdMembers[username] = {'u': 1}; } function makeRE(username) { reMembers[username] = {'u': 1}; } function makeRF(username) { rfMembers[username] = {'u': 1}; } function makeRG(username) { rgMembers[username] = {'u': 1}; } function makeRI(username) { riMembers[username] = {'u': 1}; } function makeRJ(username) { rjMembers[username] = {'u': 1}; } function makeRK(username) { rkMembers[username] = {'u': 1}; } function makeRL(username) { rlMembers[username] = {'u': 1}; } function makeRM(username) { rmMembers[username] = {'u': 1}; } function makeRN(username) { rnMembers[username] = {'u': 1}; } // ######################### // Room Rules // ######################### function showRules(){ return "ROOM RULES: "+cb.settings.roomRules; } // ######################### // Settings // ######################### function grabSettings() { cb.log("starting grabbing settings"); // Get Group 1 if (cb.settings.raMemberList) { var raMemberSettings = cb.settings.raMemberList.split(','); for (var ii = 0; ii < raMemberSettings.length; ii++) { var clean = raMemberSettings[ii].toLowerCase().replace(/ /g,""); raMembers[clean] = {'u': 1}; } } // Get Group 2 if (cb.settings.rbMemberList) { var rbMemberSettings = cb.settings.rbMemberList.split(','); for (var ii = 0; ii < rbMemberSettings.length; ii++) { var clean = rbMemberSettings[ii].toLowerCase().replace(/ /g,""); rbMembers[clean] = {'u': 1}; } } // Get Group 3 if (cb.settings.rcMemberList) { var rcMemberSettings = cb.settings.rcMemberList.split(','); for (var ii = 0; ii < rcMemberSettings.length; ii++) { var clean = rcMemberSettings[ii].toLowerCase().replace(/ /g,""); rcMembers[clean] = {'u': 1}; } } // Get Group 4 if (cb.settings.rdMemberList) { var rdMemberSettings = cb.settings.rdMemberList.split(','); for (var ii = 0; ii < rdMemberSettings.length; ii++) { var clean = rdMemberSettings[ii].toLowerCase().replace(/ /g,""); rdMembers[clean] = {'u': 1}; } } // Get Group 5 if (cb.settings.reMemberList) { var reMemberSettings = cb.settings.reMemberList.split(','); for (var ii = 0; ii < reMemberSettings.length; ii++) { var clean = reMemberSettings[ii].toLowerCase().replace(/ /g,""); reMembers[clean] = {'u': 1}; } } // Get Group 6 if (cb.settings.rfMemberList) { var rfMemberSettings = cb.settings.rfMemberList.split(','); for (var ii = 0; ii < rfMemberSettings.length; ii++) { var clean = rfMemberSettings[ii].toLowerCase().replace(/ /g,""); rfMembers[clean] = {'u': 1}; } } // Get Group 7 if (cb.settings.rgMemberList) { var rgMemberSettings = cb.settings.rgMemberList.split(','); for (var ii = 0; ii < rgMemberSettings.length; ii++) { var clean = rgMemberSettings[ii].toLowerCase().replace(/ /g,""); rgMembers[clean] = {'u': 1}; } } // Get Group 8 if (cb.settings.rhMemberList) { var rhMemberSettings = cb.settings.rhMemberList.split(','); for (var ii = 0; ii < rhMemberSettings.length; ii++) { var clean = rhMemberSettings[ii].toLowerCase().replace(/ /g,""); rhMembers[clean] = {'u': 1}; } } // Get Group 9 if (cb.settings.riMemberList) { var riMemberSettings = cb.settings.riMemberList.split(','); for (var ii = 0; ii < riMemberSettings.length; ii++) { var clean = riMemberSettings[ii].toLowerCase().replace(/ /g,""); riMembers[clean] = {'u': 1}; } } // Get Group 10 if (cb.settings.rjMemberList) { var rjMemberSettings = cb.settings.rjMemberList.split(','); for (var ii = 0; ii < rjMemberSettings.length; ii++) { var clean = rjMemberSettings[ii].toLowerCase().replace(/ /g,""); rjMembers[clean] = {'u': 1}; } } // Get Group 11 if (cb.settings.rkMemberList) { var rkMemberSettings = cb.settings.rkMemberList.split(','); for (var ii = 0; ii < rkMemberSettings.length; ii++) { var clean = rkMemberSettings[ii].toLowerCase().replace(/ /g,""); rkMembers[clean] = {'u': 1}; } } // Get Group 12 if (cb.settings.rlMemberList) { var rlMemberSettings = cb.settings.rlMemberList.split(','); for (var ii = 0; ii < rlMemberSettings.length; ii++) { var clean = rlMemberSettings[ii].toLowerCase().replace(/ /g,""); rlMembers[clean] = {'u': 1}; } } // Get Group 13 if (cb.settings.rmMemberList) { var rmMemberSettings = cb.settings.rmMemberList.split(','); for (var ii = 0; ii < rmMemberSettings.length; ii++) { var clean = rmMemberSettings[ii].toLowerCase().replace(/ /g,""); rmMembers[clean] = {'u': 1}; } } // Get Group 14 if (cb.settings.rnMemberList) { var rnMemberSettings = cb.settings.rnMemberList.split(','); for (var ii = 0; ii < rnMemberSettings.length; ii++) { var clean = rnMemberSettings[ii].toLowerCase().replace(/ /g,""); rnMembers[clean] = {'u': 1}; } } // Get Group 15 if (cb.settings.roMemberList) { var roMemberSettings = cb.settings.roMemberList.split(','); for (var ii = 0; ii < roMemberSettings.length; ii++) { var clean = roMemberSettings[ii].toLowerCase().replace(/ /g,""); roMembers[clean] = {'u': 1}; } } // Get Blocked members if (cb.settings.blockMemberList) { var blockMemberSettings = cb.settings.blockMemberList.split(','); for (var ii = 0; ii < blockMemberSettings.length; ii++) { var clean = blockMemberSettings[ii].toLowerCase().replace(/ /g, ""); blockMembers[clean] = {'u': 1}; } } // Get Ghost members if (cb.settings.ghostList) { var ghostMemberSettings = cb.settings.ghostList.split(','); for (var ii = 0; ii < ghostMemberSettings.length; ii++) { var clean = ghostMemberSettings[ii].toLowerCase().replace(/ /g, ""); ghostList[clean] = {'u': 1}; } } cb.log("finished grabbing settings"); } grabSettings(); // ######################### // Init Function // ######################### function init() { cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); grabSettings(); cb.sendNotice('Type /ykhelp for Help menu','','','','bold'); } init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.