Bots Home
|
Create an App
NINtest1
Author:
loolooloo
Description
Source Code
Launch Bot
Current Users
Created by:
Loolooloo
// Level Names and token amounts for each rank: // Highest Monthly Tip for GrandMaster // 5,005 Tokens for Black Dragon // 4,004 Tokens for Red Scorpion // 3,003 Tokens for Green Viper // 2,002 Tokens for White Tiger // 1,001 Tokens for Warrior // cb.settings_choices = [ {name: 'GrandMaster', label: 'GRANDMASTER Level, Example with comma: soapsuds, ', type: 'str', minLength: 0, maxLength: 6000, required: false, defaultValue: ''}, {name: 'DRAGONList', label: 'DRAGON Membership List, Example with comma: soapsuds, ', type: 'str', minLength: 0, maxLength: 6000, required: false, defaultValue: ''}, {name: 'REDSCORPIONList', label: 'REDSCORPION Membership List, Example with comma: soapsuds, ', type: 'str', minLength: 0, maxLength: 6000, required: false, defaultValue: ''}, {name: 'GREENVIPERList', label: 'GREENVIPER Membership List, Example with comma: soapsuds, ', type: 'str', minLength: 0, maxLength: 6000, required: false, defaultValue: ''}, {name: 'WHITETIGERList', label: 'WHITETIGER Membership List, Example with comma: soapsuds, ', type: 'str', minLength: 0, maxLength: 6000, required: false, defaultValue: ''}, {name: 'WARRIORList', label: 'WARRIOR Membership List, Example with comma: soapsuds, ', type: 'str', minLength: 0, maxLength: 6000, required: false, defaultValue: ''}, {name: 'SPECIALList', label: 'Special Friends that are left alone by Moderators List, ', type: 'str', minLength:0, maxLength: 6000, required: false, defaultValue: 'soapsuds,'}, {name: 'MList', label: 'Enter Your Name Only, Example with comma: sexxyloofah, ', type: 'str', minLength: 0, maxLength: 6000, required: false, defaultValue: 'sexxyloofah,'}, ]; // Images var AppleHeartPrefix = ":heart3 "; var HeartbeatPrefix = ":w__btgHeart "; var GRANDMASTERPrefix = "[GRANDMASTER] "; var DRAGONPrefix = "[DRAGON] "; var REDSCORPIONPrefix = "[REDSCORPION] "; var GREENVIPERPrefix = "[GREENVIPER] "; var WHITETIGERPrefix = "[WHITETIGER] "; var WARRIORPrefix = "[WARRIOR] "; var FanPrefix = "[Fan Club] "; // Amounts var GRANDMASTERTip = 10000; var DRAGONTIP = 5000; var REDSCORPIONTip = 4004; var GREENVIPERTip = 3003; var WHITETIGERTip = 2002; var WARRIORTip = 1001; // TextColors var TextApple = "#FF0000"; //Red var TextColor = "#000000"; //Black var TextGRANDMASTER = "#000000"; var TextDRAGON = "#FFFFFF"; var TextREDSCORPION = "#FF2626"; var TextGREENVIPER = "#333300"; var TextWHITETIGER = "#FFFFFF"; var TextWARRIOR = "#B05F3C"; // BackGroundColors var BgColor = "#CFFF67"; //Neon Green var BgGRANDMASTER = "#FFCC33"; //orange var BgDRAGON = "#000000"; var BgREDSCORPION = "#FFEAEA"; var BgGREENVIPER = "#C0E0DA"; var BgWHITETIGER = "#CCCCCC"; var BgWARRIOR = "#F0DDD5"; // Values var GRANDMASTERArray = {}; var DRAGONArray = {}; var REDSCORPIONArray = {}; var GREENVIPERArray = {}; var WHITETIGERArray = {}; var WARRIORArray = {}; var SPECIALArray = {}; var MArray = {}; // CBMessageMethod cb.onMessage ( function(msg) { if(msg['in_fanclub']) { msg['m'] = FanPrefix + msg['m']; msg['background'] = BgColor; msg['c'] = TextColor; } var userName = msg['user']; if(userName in GRANDMASTERArray) { msg['m'] = GRANDMASTERPrefix + msg['m']; msg['background'] = BgGRANDMASTER; msg['c'] = TextGRANDMASTER; } else if(userName in DRAGONArray) { msg['m'] = DRAGONPrefix + msg['m']; msg['background'] = BgDRAGON; msg['c'] = TextDRAGON; } else if(userName in REDSCORPIONArray) { msg['m'] = REDSCORPIONPrefix + msg['m']; msg['background'] = BgREDSCORPION; msg['c'] = TextREDSCORPION; } else if(userName in GREENVIPERArray) { msg['m'] = GREENVIPERPrefix + msg['m']; msg['background'] = BgGREENVIPER; msg['c'] = TextGREENVIPER; } else if(userName in WHITETIGERArray) { msg['m'] = WHITETIGERPrefix + msg['m']; msg['background'] = BgWHITETIGER; msg['c'] = TextWHITETIGER; } else if(userName in WARRIORArray) { msg['m'] = WARRIORPrefix + msg['m']; msg['background'] = BgWARRIOR; msg['c'] = TextWARRIOR; } else if(userName in MArray) { msg ['m'] = AppleHeartPrefix + msg['m']; } else if(userName in SPECIALArray) { msg ['m'] = HeartbeatPrefix + msg['m']; msg ['c'] = TextApple; } return msg; } ); // CBTipMethod cb.onTip ( function(tip) { var tipAmount = parseInt(tip['amount']); if(tipAmount < WARRIORTip) return; else if(tipAmount >= GRANDMASTERTip) addToArray(tip['from_user'], GRANDMASTERArray); else if(tipAmount >= DRAGONTip) addToArray(tip['from_user'], DRAGONArray); else if(tipAmount >= REDSCORPIONTip) addToArray(tip['from_user'], REDSCORPIONArray); else if(tipAmount >= GREENVIPERTip) addToArray(tip['from_user'], GREENVIPERArray); else if(tipAmount >= WHITETIGERTip) addToArray(tip['from_user'], WHITETIGERArray); else if(tipAmount >= WARRIORTip) addToArray(tip['from_user'], WARRIORArray); } ); function addToArray(userName, arrayList) { if (!(userName in arrayList)) arrayList[userName] = {'u': 1}; } function extractListIntoArray(KPKSHFKLBBList, arrayList) { if(KPKSHFKLBBList) { var lList = KPKSHFKLBBList.split(','); for (var z=0; z<lList.length; z++) { var userName = lList[z].toLowerCase().replace(/ /g, "");; arrayList[userName] = {'u': 1}; } } } function initFamily() { cb.log("Initializing settings"); extractListIntoArray(cb.settings.GRANDMASTERList, GRANDMASTERArray); extractListIntoArray(cb.settings.DRAGONList, DRAGONArray); extractListIntoArray(cb.settings.REDSCORPIONList, REDSCORPIONArray); extractListIntoArray(cb.settings.GREENVIPERList, GREENVIPERArray); extractListIntoArray(cb.settings.WHITETIGERList, WHITETIGERArray); extractListIntoArray(cb.settings.WARRIORList, WARRIORArray); extractListIntoArray(cb.settings.SPECIALList, SPECIALArray); extractListIntoArray(cb.settings.MList, MArray); cb.log("Finished initializing settings"); } initFamily();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.