Bots Home
|
Create an App
RAIINY'S BOT
Author:
jerrylynnway
Description
Source Code
Launch Bot
Current Users
Created by:
Jerrylynnway
cb.settings_choices = [ {name: 'SilentList', label: 'Silent User list, ', type: 'str', minLength: 0, maxLength: 90000, required: false, defaultValue: ''}, {name: 'KINGList', label: 'KING Membership List, Tipped: 10,000 Example with comma: jerrylynnway, ', type: 'str', minLength: 0, maxLength: 6000, required: false, defaultValue: ''}, {name: 'PRINCEList', label: 'PRINCE Membership List, Tipped: 5,000 Example with comma: jerrylynnway, ', type: 'str', minLength: 0, maxLength: 6000, required: false, defaultValue: ''}, {name: 'KNIGHTList', label: 'KNIGHT Membership List, Tipped: 3,000 Example with comma: jerrylynnway, ', type: 'str', minLength: 0, maxLength: 6000, required: false, defaultValue: ''}, {name: 'BOYFRIENDList', label: 'BOYFRIEND Membership List, Tipped: 2,000 Example with comma: jerrylynnway,', type: 'str', minLength: 0, maxLength: 6000, required: false, defaultValue: ''}, {name: 'FRIENDList', label: 'FRIEND List, ', type: 'str', minLength: 0, maxLength: 6000, required: false, defaultValue: ''}, {name: 'MList', label: 'Cam Model Name ', type: 'str', minLength: 0, maxLength: 6000, required: false, defaultValue: 'raiiny'}, ]; // Images var RaiinyPrefix = ":raiinyhk "; var KINGPrefix = "[KING] "; var PRINCEPrefix = "[PRINCE] "; var KNIGHTPrefix = "[KNIGHT] "; var BOYFRIENDPrefix = "[BOYFRIEND] "; var FRIENDPrefix = ":axolot "; var FanPrefix = ":axolot "; var SilentPrefix =":_tip1 :_tip1 :_tip1"; // Amounts var KINGTip = 10000; var PRINCETIP = 5000; var KNIGHTTip = 3000; var BOYFRIENDTip = 2000; // TextColors var TextApple = "#FF0000"; //Red var TextColor = "#000000"; //Black var TextKing = "#FF5680"; var TextPrince = "#9900CC"; var TextKnight = "#68d000"; var TextBoyFriend = "#00c0c0"; var TextSilent = "#FFFFFF"; // BackGroundColors var BgColor = "#CFFF67"; //Neon Green var BgKing = "#FFFFFF"; var BgPrince = "#FFFFFF"; var BgKnight = "#FFFFFF"; var BgBoyFriend = "#FFFFFF"; var BgFriend = "#FFFFFF"; var BgSilent = "#FFFFFF"; // Values var KINGArray = {}; var PRINCEArray = {}; var KNIGHTArray = {}; var BOYFRIENDArray = {}; var FRIENDArray = {}; var SilentArray = {}; 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 KINGArray) { msg['m'] = KINGPrefix + msg['m']; msg['background'] = BgKing; msg['c'] = TextKing; } else if(userName in PRINCEArray) { msg['m'] = PRINCEPrefix + msg['m']; msg['background'] = BgPrince; msg['c'] = TextPrince; } else if(userName in KNIGHTArray) { msg['m'] = KNIGHTPrefix + msg['m']; msg['background'] = BgKnight; msg['c'] = TextKnight; } else if(userName in BOYFRIENDArray) { msg['m'] = BOYFRIENDPrefix + msg['m']; msg['background'] = BgBoyFriend; msg['c'] = TextBoyFriend; } else if(userName in FRIENDArray) { msg ['m'] = FRIENDPrefix + msg['m']; } else if (userName in SilentArray) { msg ['m'] = SilentPrefix + msg['m']; msg ['c'] = TextSilent; } else if(userName in MArray) { msg ['m'] = RaiinyPrefix + msg['m']; msg ['c'] = TextApple; } return msg; } ); // CBTipMethod cb.onTip ( function(tip) { var tipAmount = parseInt(tip['amount']); if(tipAmount < BOYFRIENDTip) return; else if(tipAmount >= KINGTip) addToArray(tip['from_user'], KINGArray); else if(tipAmount >= PRINCETip) addToArray(tip['from_user'], PRINCEArray); else if(tipAmount >= KNIGHTTip) addToArray(tip['from_user'], KNIGHTArray); else if(tipAmount >= BOYFRIENDTip) addToArray(tip['from_user'], BOYFRIENDArray); } ); function addToArray(userName, arrayList) { if (!(userName in arrayList)) arrayList[userName] = {'u': 1}; } function extractListIntoArray(KPKDList, arrayList) { if(KPKDList) { var lList = KPKDList.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.KINGList, KINGArray); extractListIntoArray(cb.settings.PRINCEList, PRINCEArray); extractListIntoArray(cb.settings.KNIGHTList, KNIGHTArray); extractListIntoArray(cb.settings.BOYFRIENDList, BOYFRIENDArray); extractListIntoArray(cb.settings.FRIENDList, FRIENDArray); extractListIntoArray(cb.settings.SilentList, SilentArray); extractListIntoArray(cb.settings.MList, MArray); cb.log("Finished initializing settings"); } initFamily();
© Copyright Chaturbate 2011- 2026. All Rights Reserved.