Bots Home
|
Create an App
viper
Author:
viper
Description
Source Code
Launch Bot
Current Users
Created by:
Viper
'use strict'; var CamModel = cb.room_slug; var Club1s = {}; var Club2s = {}; var Club3s = {}; var Club4s = {}; var Club5s = {}; var Club6s = {}; var Club7s = {}; var Club8s = {}; var Club9s = {}; var CamModelIcon = cb.settings.CamModelIcon; var Club1sIcon = cb.settings.Club1Icon; var Club2sIcon = cb.settings.Club2Icon; var Club3sIcon = cb.settings.Club3Icon; var Club4sIcon = cb.settings.Club4Icon; var Club5sIcon = cb.settings.Club5Icon; var Club6sIcon = cb.settings.Club6Icon; var Club7sIcon = cb.settings.Club7Icon; var Club8sIcon = cb.settings.Club8Icon; var Club9sIcon = cb.settings.Club9Icon; var CamModelFont = cb.settings.CamModelFont; var Club1sFont = cb.settings.Club1Font; var Club2sFont = cb.settings.Club2Font; var Club3sFont = cb.settings.Club3Font; var Club4sFont = cb.settings.Club4Font; var Club5sFont = cb.settings.Club5Font; var Club6sFont = cb.settings.Club6Font; var Club7sFont = cb.settings.Club7Font; var Club8sFont = cb.settings.Club8Font; var Club9sFont = cb.settings.Club9Font; var CamModelBackground = cb.settings.CamModelBackground; var Club1sBackground = cb.settings.Club1Background; var Club2sBackground = cb.settings.Club2Background; var Club3sBackground = cb.settings.Club3Background; var Club4sBackground = cb.settings.Club4Background; var Club5sBackground = cb.settings.Club5Background; var Club6sBackground = cb.settings.Club6Background; var Club7sBackground = cb.settings.Club7Background; var Club8sBackground = cb.settings.Club8Background; var Club9sBackground = cb.settings.Club9Background; /** @type {!Array} */ cb.settings_choices = [{ name : "CamModelIcon", label : "Cam Model Icon: ", type : "str", required : false, defaultValue : "" }, { name : "CamModelFont", label : "Cam Model Font Hex Color: ", type : "str", required : false, defaultValue : "" }, { name : "CamModelBackground", label : "Cam Model Background Hex Color: ", type : "str", required : false, defaultValue : "" }, { name : "Club1List", label : "Club 1s: ", type : "str", required : false, defaultValue : "Excentricreation,Akczel,Jw9,Itshavoc,Panda8669,Cc72032,l_caxius_l,Iamdflo,Phew23,Lifted89" }, { name : "Club1Cost", label : "Club 1 Cost", type : "int", required : false, default : "404" }, { name : "Club1Icon", label : "Club 1 Icon: ", type : "str", required : false, defaultValue : "" }, { name : "Club1Font", label : "Club 1 Font Hex Color: ", type : "str", required : false, defaultValue : "" }, { name : "Club1Background", label : "Club 1 Background Hex Color: ", type : "str", required : false, defaultValue : "" }, { name : "Club2List", label : "Club 2s: ", type : "str", required : false, defaultValue : "Excentricreation,Panda8669" }, { name : "Club2Cost", label : "Club 2 Cost", type : "int", required : false, default : "606" }, { name : "Club2Icon", label : "Club 2 Icon: ", type : "str", required : false, defaultValue : "" }, { name : "Club2Font", label : "Club 2 Font Hex Color: ", type : "str", required : false, defaultValue : "" }, { name : "Club2Background", label : "Club 2 Background Hex Color: ", type : "str", required : false, defaultValue : "" }, { name : "Club3List", label : "Club 3s: ", type : "str", required : false, defaultValue : "Excentricreation,Panda8669,l_caxius_l,Jw9" }, { name : "Club3Cost", label : "Club 3 Cost", type : "int", required : false, default : "1010" }, { name : "Club3Icon", label : "Club 3 Icon: ", type : "str", required : false, defaultValue : "" }, { name : "Club3Font", label : "Club 3 Font Hex Color: ", type : "str", required : false, defaultValue : "" }, { name : "Club3Background", label : "Club 3 Background Hex Color: ", type : "str", required : false, defaultValue : "" }, { name : "Club4List", label : "Club 4s: ", type : "str", required : false, defaultValue : "_Viper,Panda8669,Tethic,Ceokir,Jw9" }, { name : "Club4Cost", label : "Club 4 Cost", type : "int", required : false, default : "2020" }, { name : "Club4Icon", label : "Club 4 Icon: ", type : "str", required : false, defaultValue : "" }, { name : "Club4Font", label : "Club 4 Font Hex Color: ", type : "str", required : false, defaultValue : "" }, { name : "Club4Background", label : "Club 4 Background Hex Color: ", type : "str", required : false, defaultValue : "" }, { name : "Club5List", label : "Club 5s: ", type : "str", required : false, defaultValue : "" }, { name : "Club5Cost", label : "Club 5 Cost", type : "int", required : false, default : "3030" }, { name : "Club5Icon", label : "Club 5 Icon: ", type : "str", required : false, defaultValue : "" }, { name : "Club5Font", label : "Club 5 Font Hex Color: ", type : "str", required : false, defaultValue : "" }, { name : "Club5Background", label : "Club 5 Background Hex Color: ", type : "str", required : false, defaultValue : "" }, { name : "Club6List", label : "Club 6s: ", type : "str", required : false, defaultValue : "" }, { name : "Club6Cost", label : "Club 6 Cost", type : "int", required : false, default : "4040" }, { name : "Club6Icon", label : "Club 6 Icon: ", type : "str", required : false, defaultValue : "" }, { name : "Club6Font", label : "Club 6 Font Hex Color: ", type : "str", required : false, defaultValue : "" }, { name : "CreamSickleBackground", label : "Club 6 Background Hex Color: ", type : "str", required : false, defaultValue : "" }, { name : "Club7List", label : "Club 7s: ", type : "str", required : false, defaultValue : "" }, { name : "Club7Cost", label : "Club 7 Cost", type : "int", required : false, default : "5050" }, { name : "Club7Icon", label : "Club 7 Icon: ", type : "str", required : false, defaultValue : "" }, { name : "Club7Font", label : "Club 7 Font Hex Color: ", type : "str", required : false, defaultValue : "" }, { name : "Club7Background", label : "Club 7 Background Hex Color: ", type : "str", required : false, defaultValue : "" }, { name : "Club8List", label : "Club 8s: ", type : "str", required : false, defaultValue : "" }, { name : "Club8Cost", label : "Club 8 Cost", type : "int", required : false, default : "6060" }, { name : "Club8Icon", label : "Club 8 Icon: ", type : "str", required : false, defaultValue : "" }, { name : "Club8Font", label : "Club 8 Font Hex Color: ", type : "str", required : false, defaultValue : "" }, { name : "Club8Background", label : "Club 8 Background Hex Color: ", type : "str", required : false, defaultValue : "" }, { name : "Club9List", label : "Club 9: ", type : "str", required : false, defaultValue : "Panda8669" }, { name : "Club9Cost", label : "Club 9 Cost", type : "int", required : false, default : "10001" }, { name : "Club9Icon", label : "Club 9 Icon: ", type : "str", required : false, defaultValue : "" }, { name : "Club9Font", label : "Club 9 Font Hex Color: ", type : "str", required : false, defaultValue : "" }, { name : "Club9Background", label : "Club 9 Background Hex Color: ", type : "str", required : false, defaultValue : "" }]; cb.onMessage(function(msg) { var username = msg["user"]; if (username === CamModel) { msg["m"] = CamModelIcon + " " + msg["m"]; } if (isClub1(username)) { msg["c"] = Club1sBackground; msg["f"] = Club1sFont; msg["m"] = Club1sIcon + " " + msg["m"]; } else { if (isClub2(username)) { msg["c"] = Club2sBackground; msg["f"] = Club2sFont; msg["m"] = Club2sIcon + " " + msg["m"]; } else { if (isClub3(username)) { msg["c"] = Club3sBackground; msg["f"] = Club3sFont; msg["m"] = Club3sIcon + " " + msg["m"]; } else { if (isClub4(username)) { msg["c"] = Club4sBackground; msg["f"] = Club4sFont; msg["m"] = Club4sIcon + " " + msg["m"]; } else { if (isClub5(username)) { msg["c"] = Club5sBackground; msg["f"] = Club5sFont; msg["m"] = Club5sIcon + " " + msg["m"]; } else { if (isClub6(username)) { msg["c"] = Club6sBackground; msg["f"] = Club6sFont; msg["m"] = Club6sIcon + " " + msg["m"]; } else { if (isClub7(username)) { msg["c"] = Club7sBackground; msg["f"] = Club7sFont; msg["m"] = Club7sIcon + " " + msg["m"]; } else { if (isClub8(username)) { msg["c"] = Club8sBackground; msg["f"] = Club8sFont; msg["m"] = Club8sIcon + " " + msg["m"]; } else { if (isClub9(username)) { msg["c"] = Club9sBackground; msg["f"] = Club9sFont; msg["m"] = Club9sIcon + " " + msg["m"]; } } } } } } } } } return msg; }); cb.onTip(function(response) { var amount = response["amount"]; var status = response["from_user"]; var undefined = cb.settings.Club1Cost; var failedAmount = cb.settings.Club2Cost; var reset = cb.settings.Club3Cost; var all = cb.settings.Club4Cost; var MAX_KILL_EXP_AMOUNT = cb.settings.Club5Cost; var total = cb.settings.Club6Cost; var portrait = cb.settings.Club7Cost; var expectedAmount = cb.settings.Club8Cost; var to_minimum = cb.settings.Club9Cost; if (amount === undefined && !isClub1(status)) { cb.chatNotice("Congratulations " + status + ", you are now in Club 1!", "", Club1sBackground, Club1sFont, "bold"); makeClub1(status); } if (amount === failedAmount && !isClub2(status)) { cb.chatNotice("Congratulations " + status + ", you are now in Club 2!", "", Club2sBackground, Club2sFont, "bold"); makeClub2(status); } if (amount === reset && !isClub3(status)) { cb.chatNotice("Congratulations " + status + ", you are now in Club 3!", "", Club3sBackground, Club3sFont, "bold"); makeClub3(status); } if (amount === all && !isClub4(status)) { cb.chatNotice("Congratulations " + status + ", you are now in Club 4!", "", Club4sBackground, Club4sFont, "bold"); makeClub4(status); } if (amount === MAX_KILL_EXP_AMOUNT && !isClub5(status)) { cb.chatNotice("Congratulations " + status + ", you are now in Club 5!", "", Club5sBackground, Club5sFont, "bold"); makeClub5(status); } if (amount === total && !isClub6(status)) { cb.chatNotice("Congratulations " + status + ", you are now in Club 6!", "", Club6sBackground, Club6sFont, "bold"); makeClub6(status); } if (amount === portrait && !isClub7(status)) { cb.chatNotice("Congratulations " + status + ", you are now in Club 7!", "", Club7sBackground, Club7sFont, "bold"); makeClub7(status); } if (amount === expectedAmount && !isClub8(status)) { cb.chatNotice("Congratulations " + status + ", you are now in Club 8!", "", Club8sBackground, Club8sFont, "bold"); makeClub8(status); } if (amount >= to_minimum && !isClub9(status)) { cb.chatNotice("Congratulations " + status + ", you are now in Club 9!", "", Club9sBackground, Club9sFont, "bold"); makeClub9(status); } }); /** * @param {?} value * @return {?} */ function isClub1(value) { return value in Club1s; } /** * @param {?} value * @return {?} */ function isClub2(value) { return value in Club2s; } /** * @param {?} value * @return {?} */ function isClub3(value) { return value in Club3s; } /** * @param {?} value * @return {?} */ function isClub4(value) { return value in Club4s; } /** * @param {?} value * @return {?} */ function isClub5(value) { return value in Club5s; } /** * @param {?} value * @return {?} */ function isClub6(value) { return value in Club6s; } /** * @param {?} value * @return {?} */ function isClub7(value) { return value in Club7s; } /** * @param {?} value * @return {?} */ function isClub8(value) { return value in Club8s; } /** * @param {?} value * @return {?} */ function isClub9(value) { return value in Club9s; } /** * @param {?} name * @return {undefined} */ function makeClub1(name) { Club1s[name] = { "u" : 1 }; } /** * @param {?} name * @return {undefined} */ function makeClub2(name) { Club2s[name] = { "u" : 1 }; } /** * @param {?} name * @return {undefined} */ function makeClub3(name) { Club3s[name] = { "u" : 1 }; } /** * @param {?} name * @return {undefined} */ function makeClub4(name) { Club4s[name] = { "u" : 1 }; } /** * @param {?} name * @return {undefined} */ function makeClub5(name) { Club5s[name] = { "u" : 1 }; } /** * @param {?} name * @return {undefined} */ function makeClub6(name) { Club6s[name] = { "u" : 1 }; } /** * @param {?} name * @return {undefined} */ function makeClub7(name) { Club7s[name] = { "u" : 1 }; } /** * @param {?} name * @return {undefined} */ function makeClub8(name) { Club8s[name] = { "u" : 1 }; } /** * @param {?} name * @return {undefined} */ function makeClub9(name) { Club9s[name] = { "u" : 1 }; } /** * @return {undefined} */ function Init() { if (cb.settings.Club1List) { var dataVal = cb.settings.Club1List.split(","); /** @type {number} */ var dataValCounter = 0; for (; dataValCounter < dataVal.length; dataValCounter++) { var name = dataVal[dataValCounter].toLowerCase().replace(/ /g, ""); Club1s[name] = { "u" : 1 }; } } if (cb.settings.Club2List) { var dataVal = cb.settings.Club2List.split(","); /** @type {number} */ dataValCounter = 0; for (; dataValCounter < dataVal.length; dataValCounter++) { name = dataVal[dataValCounter].toLowerCase().replace(/ /g, ""); Club2s[name] = { "u" : 1 }; } } if (cb.settings.Club3List) { var dataVal = cb.settings.Club3List.split(","); /** @type {number} */ dataValCounter = 0; for (; dataValCounter < dataVal.length; dataValCounter++) { name = dataVal[dataValCounter].toLowerCase().replace(/ /g, ""); Club3s[name] = { "u" : 1 }; } } if (cb.settings.Club4List) { var dataVal = cb.settings.Club4List.split(","); /** @type {number} */ dataValCounter = 0; for (; dataValCounter < dataVal.length; dataValCounter++) { name = dataVal[dataValCounter].toLowerCase().replace(/ /g, ""); Club4s[name] = { "u" : 1 }; } } if (cb.settings.Club5List) { var dataVal = cb.settings.Club5List.split(","); /** @type {number} */ dataValCounter = 0; for (; dataValCounter < dataVal.length; dataValCounter++) { name = dataVal[dataValCounter].toLowerCase().replace(/ /g, ""); Club5s[name] = { "u" : 1 }; } } if (cb.settings.Club6List) { var dataVal = cb.settings.Club6List.split(","); /** @type {number} */ dataValCounter = 0; for (; dataValCounter < dataVal.length; dataValCounter++) { name = dataVal[dataValCounter].toLowerCase().replace(/ /g, ""); Club6s[name] = { "u" : 1 }; } } if (cb.settings.Club7List) { var dataVal = cb.settings.Club7List.split(","); /** @type {number} */ dataValCounter = 0; for (; dataValCounter < dataVal.length; dataValCounter++) { name = dataVal[dataValCounter].toLowerCase().replace(/ /g, ""); Club7s[name] = { "u" : 1 }; } } if (cb.settings.Club8List) { var dataVal = cb.settings.Club8List.split(","); /** @type {number} */ dataValCounter = 0; for (; dataValCounter < dataVal.length; dataValCounter++) { name = dataVal[dataValCounter].toLowerCase().replace(/ /g, ""); Club8s[name] = { "u" : 1 }; } } if (cb.settings.Club9List) { var dataVal = cb.settings.Club9List.split(","); /** @type {number} */ dataValCounter = 0; for (; dataValCounter < dataVal.length; dataValCounter++) { name = dataVal[dataValCounter].toLowerCase().replace(/ /g, ""); Club9s[name] = { "u" : 1 }; } } } Init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.