Bots Home
|
Create an App
Papatong JAdeness
Author:
papatong
Description
Source Code
Launch Bot
Current Users
Created by:
Papatong
//Declare Team lists var Team = {}; //Declare Team Emotes TeamsEmote = []; //Declare Team Titles TeamsTitle = []; //Declare Team Titles TeamsTipAmount = []; cb.settings_choices = [ { name: "TeamTitle0", type: "str", required: false, label: "Team 1 title here, e.g. 'Team Eyez Member' - This team is special, if you have ANY teams, one needs to be here." }, { name: "TeamEmote0", type: "str", required: false, label: "Emote code for Team 1, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount0", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 1" }, { name: "TeamRAW0", type: "str", required: false, label: "List all Team 1 here separated by a space, e.g. 'papatong eggtastic'" }, { name: "TeamTitle1", type: "str", required: false, label: "Team 2 title here, e.g. 'Team Eyez Member'" }, { name: "TeamEmote1", type: "str", required: false, label: "Emote code for Team 2, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount1", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 2" }, { name: "TeamRAW1", type: "str", required: false, label: "List all Team 2 here separated by a space, e.g. 'papatong eggtastic'" }, { name: "TeamTitle2", type: "str", required: false, label: "Team 3 title here, e.g. 'Team Eyez Member'" }, { name: "TeamEmote2", type: "str", required: false, label: "Emote code for Team 3, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount2", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 3" }, { name: "TeamRAW2", type: "str", required: false, label: "List all Team 3 here separated by a space, e.g. 'papatong eggtastic'" }, { name: "TeamTitle3", type: "str", required: false, label: "Team 4 title here, e.g. 'Team Eyez Member'" }, { name: "TeamEmote3", type: "str", required: false, label: "Emote code for Team 4, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount3", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 4" }, { name: "TeamRAW3", type: "str", required: false, label: "List all Team 4 here separated by a space, e.g. 'papatong eggtastic'" }, { name: "TeamTitle4", type: "str", required: false, label: "Team 5 title here, e.g. 'Team Eyez Member'" }, { name: "TeamEmote4", type: "str", required: false, label: "Emote code for Team 5, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount4", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 5" }, { name: "TeamRAW4", type: "str", required: false, label: "List all Team 5 here separated by a space, e.g. 'papatong eggtastic'" }, { name: "TeamTitle5", type: "str", required: false, label: "Team 6 title here, e.g. 'Team Eyez Member'" }, { name: "TeamEmote5", type: "str", required: false, label: "Emote code for Team 6, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount5", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 6" }, { name: "TeamRAW5", type: "str", required: false, label: "List all Team 6 here separated by a space, e.g. 'papatong eggtastic'" }, { name: "TeamTitle6", type: "str", required: false, label: "Team 7 title here, e.g. 'Team Eyez Member'" }, { name: "TeamEmote6", type: "str", required: false, label: "Emote code for Team 7, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount6", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 7" }, { name: "TeamRAW6", type: "str", required: false, label: "List all Team 7 here separated by a space, e.g. 'papatong eggtastic'" }, { name: "TeamTitle7", type: "str", required: false, label: "Team 8 title here, e.g. 'Team Eyez Member'" }, { name: "TeamEmote7", type: "str", required: false, label: "Emote code for Team 8, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount7", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 8" }, { name: "TeamRAW7", type: "str", required: false, label: "List all Team 8 here separated by a space, e.g. 'papatong eggtastic'" }, { name: "TeamTitle8", type: "str", required: false, label: "Team 9 title here, e.g. 'Team Eyez Member'" }, { name: "TeamEmote8", type: "str", required: false, label: "Emote code for Team 9, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount8", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 9" }, { name: "TeamRAW8", type: "str", required: false, label: "List all Team 9 here separated by a space, e.g. 'papatong eggtastic'" }, { name: "TeamTitle9", type: "str", required: false, label: "Team 10 title here, e.g. 'Team Eyez Member'" }, { name: "TeamEmote9", type: "str", required: false, label: "Emote code for Team 10, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount9", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 10" }, { name: "TeamRAW9", type: "str", required: false, label: "List all Team 10 here separated by a space, e.g. 'papatong eggtastic'" }, { name: "TeamTitle10", type: "str", required: false, label: "Team 11 title here, e.g. 'Team Eyez Member'" }, { name: "TeamEmote10", type: "str", required: false, label: "Emote code for Team 11, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount10", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 11" }, { name: "TeamRAW10", type: "str", required: false, label: "List all Team 11 here separated by a space, e.g. 'papatong eggtastic'" }, { name: "TeamTitle11", type: "str", required: false, label: "Team 12 title here, e.g. 'Team Eyez Member'" }, { name: "TeamEmote11", type: "str", required: false, label: "Emote code for Team 12, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount11", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 12" }, { name: "TeamRAW11", type: "str", required: false, label: "List all Team 12 here separated by a space, e.g. 'papatong eggtastic'" }, { name: "TeamTitle12", type: "str", required: false, label: "Team 13 title here, e.g. 'Team Eyez Member'" }, { name: "TeamEmote12", type: "str", required: false, label: "Emote code for Team 13, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount12", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 13" }, { name: "TeamRAW12", type: "str", required: false, label: "List all Team 13 here separated by a space, e.g. 'papatong eggtastic'" }, { name: "TeamTitle13", type: "str", required: false, label: "Team 14 title here, e.g. 'Team Eyez Member'" }, { name: "TeamEmote13", type: "str", required: false, label: "Emote code for Team 14, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount13", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 14" }, { name: "TeamRAW13", type: "str", required: false, label: "List all Team 14 here separated by a space, e.g. 'papatong eggtastic'" }, { name: "TeamTitle14", type: "str", required: false, label: "Team 15 title here, e.g. 'Team Eyez Member'" }, { name: "TeamEmote14", type: "str", required: false, label: "Emote code for Team 15, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount14", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 15" }, { name: "TeamRAW14", type: "str", required: false, label: "List all Team 15 here separated by a space, e.g. 'papatong eggtastic'" }, { name: "TeamTitle15", type: "str", required: false, label: "Team 16 title here, e.g. 'Team Eyez Member'" }, { name: "TeamEmote15", type: "str", required: false, label: "Emote code for Team 16, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount15", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 16" }, { name: "TeamRAW15", type: "str", required: false, label: "List all Team 16 here separated by a space, e.g. 'papatong eggtastic'" }, { name: "TeamTitle16", type: "str", required: false, label: "Team 17 title here, e.g. 'Team Eyez Member'" }, { name: "TeamEmote16", type: "str", required: false, label: "Emote code for Team 17, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount16", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 17" }, { name: "TeamRAW16", type: "str", required: false, label: "List all Team 17 here separated by a space, e.g. 'papatong eggtastic'" }, { name: "TeamTitle17", type: "str", required: false, label: "Team 18 title here, e.g. 'Team Eyez Member'" }, { name: "TeamEmote17", type: "str", required: false, label: "Emote code for Team 18, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount17", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 18" }, { name: "TeamRAW17", type: "str", required: false, label: "List all Team 18 here separated by a space, e.g. 'papatong eggtastic'" }, { name: "TeamTitle18", type: "str", required: false, label: "Team 19 title here, e.g. 'Team Eyez Member'" }, { name: "TeamEmote18", type: "str", required: false, label: "Emote code for Team 19, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount18", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 19" }, { name: "TeamRAW18", type: "str", required: false, label: "List all Team 19 here separated by a space, e.g. 'papatong eggtastic'" }, { name: "TeamTitle19", type: "str", required: false, label: "Team 20 title here, e.g. 'Team Eyez Member'" }, { name: "TeamEmote19", type: "str", required: false, label: "Emote code for Team 20, e.g. for an orange lightsaber use 'jade-lightsaber-orange'" }, { name: "TeamTipAmount19", type: "int", required: false, defaultValue: 0, label: "Amount of tokens to tip to join Team 20" }, { name: "TeamRAW19", type: "str", required: false, label: "List all Team 20 here separated by a space, e.g. 'papatong eggtastic'" } ]; // Fills team arrays. if (cb.settings.TeamTitle0 !== undefined) { //Store List Members Team[0] = cb.settings.TeamRAW0.split(" "); Team[1] = cb.settings.TeamRAW1.split(" "); Team[2] = cb.settings.TeamRAW2.split(" "); Team[3] = cb.settings.TeamRAW3.split(" "); Team[4] = cb.settings.TeamRAW4.split(" "); Team[5] = cb.settings.TeamRAW5.split(" "); Team[6] = cb.settings.TeamRAW6.split(" "); Team[7] = cb.settings.TeamRAW7.split(" "); Team[8] = cb.settings.TeamRAW8.split(" "); Team[9] = cb.settings.TeamRAW9.split(" "); Team[10] = cb.settings.TeamRAW10.split(" "); Team[11] = cb.settings.TeamRAW11.split(" "); Team[12] = cb.settings.TeamRAW12.split(" "); Team[13] = cb.settings.TeamRAW13.split(" "); Team[14] = cb.settings.TeamRAW14.split(" "); Team[15] = cb.settings.TeamRAW15.split(" "); Team[16] = cb.settings.TeamRAW16.split(" "); Team[17] = cb.settings.TeamRAW17.split(" "); Team[18] = cb.settings.TeamRAW18.split(" "); Team[19] = cb.settings.TeamRAW19.split(" "); //Store Team Emotes TeamsEmote[0] = cb.settings.TeamEmote0; TeamsEmote[1] = cb.settings.TeamEmote1; TeamsEmote[2] = cb.settings.TeamEmote2; TeamsEmote[3] = cb.settings.TeamEmote3; TeamsEmote[4] = cb.settings.TeamEmote4; TeamsEmote[5] = cb.settings.TeamEmote5; TeamsEmote[6] = cb.settings.TeamEmote6; TeamsEmote[7] = cb.settings.TeamEmote7; TeamsEmote[8] = cb.settings.TeamEmote8; TeamsEmote[9] = cb.settings.TeamEmote9; TeamsEmote[10] = cb.settings.TeamEmote10; TeamsEmote[11] = cb.settings.TeamEmote11; TeamsEmote[12] = cb.settings.TeamEmote12; TeamsEmote[13] = cb.settings.TeamEmote13; TeamsEmote[14] = cb.settings.TeamEmote14; TeamsEmote[15] = cb.settings.TeamEmote15; TeamsEmote[16] = cb.settings.TeamEmote16; TeamsEmote[17] = cb.settings.TeamEmote17; TeamsEmote[18] = cb.settings.TeamEmote18; TeamsEmote[19] = cb.settings.TeamEmote19; //Store Team Titles TeamsTitle[0] = cb.settings.TeamTitle0; TeamsTitle[1] = cb.settings.TeamTitle1; TeamsTitle[2] = cb.settings.TeamTitle2; TeamsTitle[3] = cb.settings.TeamTitle3; TeamsTitle[4] = cb.settings.TeamTitle4; TeamsTitle[5] = cb.settings.TeamTitle5; TeamsTitle[6] = cb.settings.TeamTitle6; TeamsTitle[7] = cb.settings.TeamTitle7; TeamsTitle[8] = cb.settings.TeamTitle8; TeamsTitle[9] = cb.settings.TeamTitle9; TeamsTitle[10] = cb.settings.TeamTitle10; TeamsTitle[11] = cb.settings.TeamTitle11; TeamsTitle[12] = cb.settings.TeamTitle12; TeamsTitle[13] = cb.settings.TeamTitle13; TeamsTitle[14] = cb.settings.TeamTitle14; TeamsTitle[15] = cb.settings.TeamTitle15; TeamsTitle[16] = cb.settings.TeamTitle16; TeamsTitle[17] = cb.settings.TeamTitle17; TeamsTitle[18] = cb.settings.TeamTitle18; TeamsTitle[19] = cb.settings.TeamTitle19; //Store Team Tip Amounts TeamsTipAmount[0] = cb.settings.TeamTipAmount0; TeamsTipAmount[1] = cb.settings.TeamTipAmount1; TeamsTipAmount[2] = cb.settings.TeamTipAmount2; TeamsTipAmount[3] = cb.settings.TeamTipAmount3; TeamsTipAmount[4] = cb.settings.TeamTipAmount4; TeamsTipAmount[5] = cb.settings.TeamTipAmount5; TeamsTipAmount[6] = cb.settings.TeamTipAmount6; TeamsTipAmount[7] = cb.settings.TeamTipAmount7; TeamsTipAmount[8] = cb.settings.TeamTipAmount8; TeamsTipAmount[9] = cb.settings.TeamTipAmount9; TeamsTipAmount[10] = cb.settings.TeamTipAmount10; TeamsTipAmount[11] = cb.settings.TeamTipAmount11; TeamsTipAmount[12] = cb.settings.TeamTipAmount12; TeamsTipAmount[13] = cb.settings.TeamTipAmount13; TeamsTipAmount[14] = cb.settings.TeamTipAmount14; TeamsTipAmount[15] = cb.settings.TeamTipAmount15; TeamsTipAmount[16] = cb.settings.TeamTipAmount16; TeamsTipAmount[17] = cb.settings.TeamTipAmount17; TeamsTipAmount[18] = cb.settings.TeamTipAmount18; TeamsTipAmount[19] = cb.settings.TeamTipAmount19; }; // Act upon tips. cb.onTip(function(tip) { var user = tip["from_user"]; var amount = parseInt(tip["amount"]); for(var i=0;i<20;i++){ if(amount == TeamsTipAmount[i]){ Team[i].push(user); cb.sendNotice( "you were added", user["user"], cb.settings["notice_background_color"], cb.settings["notice_color"], "bold" ); }; }; }); cb.onMessage(function(msg) { var user = msg["user"]; for(var i=0;i<20;i++){ var tempLength = Team[i].length; for(var j=0;j<tempLength;j++){ if(Team[i][j] == user){ msg["m"] = ":" + TeamsEmote[i] + " " + msg["m"]; }; }; }; }); cb.onEnter(function(user) { var notices = ""; for(var i=0;i<20;i++){ var tempLength = Team[i].length; for(var j=0;j<tempLength;j++){ if(Team[i][j] == user){ notices = TeamsTitle[i] + " " + user + " has entered the room!"; cb.sendNotice( notices, user["user"], cb.settings["notice_background_color"], cb.settings["notice_color"], "bold" ); }; }; }; }); cb.onLeave(function(user) { var notices = ""; for(var i=0;i<20;i++){ var tempLength = Team[i].length; for(var j=0;j<tempLength;j++){ if(Team[i][j] == user){ notices = TeamsTitle[i] + " " + user + " has left the room!"; cb.sendNotice( "user added", user["user"], cb.settings["notice_background_color"], cb.settings["notice_color"], "bold" ); }; }; }; });
© Copyright Chaturbate 2011- 2024. All Rights Reserved.