Bots Home
|
Create an App
Lilly's Kitty Litter bot test 2
Author:
eli3655
Description
Source Code
Launch Bot
Current Users
Created by:
Eli3655
// Lilly's Kitty Litter // CB app settings cb.settings_choices = [ {name: "doColoring",type: "choice",label: "Change text and background coloring for Lilly's Kitty Litter (choose colours below)?",choice1: "Yes",choice2: "No",defaultValue: "yes" }, { name:"doText",type: "choice",label: "Add text labels in front of Lilly's Kitty Litter (choose text below)?",choice1: "Yes",choice2: "No",defaultValue: "Yes" }, {name:"foxTextColor",label: "color for Cuddly Fox Cubs people", type:"choice",choice1:"Black",choice2:"Azure",choice3:"Aqua",choice4:"Blue",choice5:"Green",choice6:"Gold",choice7:"White",choice8:"Red",choice9:"Yellow",choice10:"Indigo",choice11:"Skyblue",choice12:"Orange",choice13:"Cyan",choice14:"Darkblue",choice15:"Chocolate",choice16:"Lavender",choice17:"Aquamarine",choice18:"BlueViolet",choice19:"Coral",choice20:"DarkRed",choice21:"DarkGreen",choice22:"DeepPink",choice23:"Magenta",choice24:"OrangeRed",choice25:"Maroon",choice26:"Brown",choice27:"DarkOrange",choice28:"YellowGreen",choice29:"DarkCyan",choice30:"DimGrey",choice31:"Chartreuse",choice32:"CadetBlue",defaultValue:"Black" }, {name: "foxText",label: "Text to put in front of Lilly's Cuddly Fox Cubs messages (e.g. Lilly's Cuddly Fox Cubs or a graphic)",type: "str", minLength: 0,maxLength: 150,equired: false,defaultValue: ":TraumatizedByKilo" }, { name: "foxMinTip",label: "Minimum tip to become Lilly's Cuddly Fox Cubs member",type: "int",minValue: 1,defaultValue: 2000}, { name: "foxAnnounce",label: "Text to show when someone tips to become a Lilly's Cuddly Fox Cubs member, the text MEMBERNAME will be replaced with the username of the new (Note: graphics don\"t work in this text)",type: "str",minLength: 0,maxLength: 10240,required: false,defaultValue: "MEMBERNAME just joined Lilly's Cuddly Fox Cubs <3 <3" }, { name: "foxRainText",label: "Text to use for Lilly's Cuddly Fox Cubs rain lines",type: "str",minLength: 0,maxLength: 80,required: false,defaultValue: "<3 <3<3 Hell Yeah <3 <3 <3" }, { name: "foxRainCount",label: "Number of lines of Lilly's Cuddly Fox Cubs rain",type: "int",minValue: 1,maxValue: 15,defaultValue: 3 }, { name: "foxNameColor",label: "Lilly's Cuddly Fox Cubs username color",type:"choice",choice1:"Black",choice2:"Azure",choice3:"Aqua",choice4:"Blue",choice5:"Green",choice6:"Gold",choice7:"White",choice8:"Red",choice9:"Yellow",choice10:"Indigo",choice11:"Skyblue",choice12:"Orange",choice13:"Cyan",choice14:"Darkblue",choice15:"Chocolate",choice16:"Lavender",choice17:"Aquamarine",choice18:"BlueViolet",choice19:"Coral",choice20:"DarkRed",choice21:"DarkGreen",choice22:"DeepPink",choice23:"Magenta",choice24:"OrangeRed",choice25:"Maroon",choice26:"Brown",choice27:"DarkOrange",choice28:"YellowGreen",choice29:"DarkCyan",choice30:"DimGrey",choice31:"Chartreuse",choice32:"CadetBlue",defaultValue:"Black" }, { name: "foxBGColor",label: "Lilly's Cuddly Fox Cubs members background color",type:"choice",choice1:"Black",choice2:"Azure",choice3:"Aqua",choice4:"Blue",choice5:"Green",choice6:"Gold",choice7:"White",choice8:"Red",choice9:"Yellow",choice10:"Indigo",choice11:"Skyblue",choice12:"Orange",choice13:"Cyan",choice14:"Darkblue",choice15:"Chocolate",choice16:"Lavender",choice17:"Aquamarine",choice18:"BlueViolet",choice19:"Coral",choice20:"DarkRed",choice21:"DarkGreen",choice22:"DeepPink",choice23:"Magenta",choice24:"OrangeRed",choice25:"Maroon",choice26:"Brown",choice27:"DarkOrange",choice28:"YellowGreen",choice29:"DarkCyan",choice30:"DimGrey",choice31:"Chartreuse",choice32:"CadetBlue",defaultValue:"White" }, { name:"foxMemberList", label: "List of current Lilly's Cuddly Fox Cubs members, separated by commas (and they need to be the CB username exactly)",type: "str",minLength: 0, maxLength: 10240,required: false,defaultValue: "no one"}, {name: "ulText",label: "Text to put in front of Lilly's Kitty Litter messages (e.g. Lilly's Kitty Litter or a graphic)",type: "str", minLength: 0,maxLength: 150,equired: false,defaultValue: ":lillykitty1" }, { name: "ulMinTip",label: "Minimum tip to become Lilly's Kitty Litter member",type: "int",minValue: 1,defaultValue: 1582 }, { name:"ulAnnounce",label: "Text to show when someone tips to become a Lilly's Kitty Litter member, the text MEMBERNAME will be replaced with the username of the new (Note: graphics don’t work in this text)",type: "str",minLength: 0,maxLength: 10240,required: false,defaultValue: "MEMBERNAME just joined Lilly's Kitty <3 <3" }, { name: "ulRainText",label: "Text to use for Lilly's Kitty Litter rain lines",type: "str",minLength: 0,maxLength: 80,required: false,defaultValue: "<3 <3<3 Hell Yeah <3 <3 <3" }, { name: "ulRainCount",label: "Number of lines of Lilly's Kitty Litter rain",type: "int",minValue: 1,maxValue: 15,defaultValue: 3 }, { name: "ulTextColor",label: "Lilly's Kitty Litter members text color",type: "choice",choice1:"Black",choice2:"Azure",choice3:"Aqua",choice4:"Blue",choice5:"Green",choice6:"Gold",choice7:"White",choice8:"Red",choice9:"Yellow",choice10:"Indigo",choice11:"Skyblue",choice12:"Orange",choice13:"Cyan",choice14:"Darkblue",choice15:"Chocolate",choice16:"Lavender",choice17:"Aquamarine",choice18:"BlueViolet",choice19:"Coral",choice20:"DarkRed",choice21:"DarkGreen",choice22:"DeepPink",choice23:"Magenta",choice24:"OrangeRed",choice25:"Maroon",choice26:"Brown",choice27:"DarkOrange",choice28:"YellowGreen",choice29:"DarkCyan",choice30:"DimGrey",choice31:"Chartreuse",choice32:"CadetBlue",defaultValue:"Black" }, { name: "ulBGColor",label: "Lilly's Kitty Litter members background color",type:"choice",choice1:"Black",choice2:"Azure",choice3:"Aqua",choice4:"Blue",choice5:"Green",choice6:"Gold",choice7:"White",choice8:"Red",choice9:"Yellow",choice10:"Indigo",choice11:"Skyblue",choice12:"Orange",choice13:"Cyan",choice14:"Darkblue",choice15:"Chocolate",choice16:"Lavender",choice17:"Aquamarine",choice18:"BlueViolet",choice19:"Coral",choice20:"DarkRed",choice21:"DarkGreen",choice22:"DeepPink",choice23:"Magenta",choice24:"OrangeRed",choice25:"Maroon",choice26:"Brown",choice27:"DarkOrange",choice28:"YellowGreen",choice29:"DarkCyan",choice30:"DimGrey",choice31:"Chartreuse",choice32:"CadetBlue",defaultValue:"White" }, { name: "ulMemberList", label: "List of current Lilly's Kitty Litter members, separated by commas (and they need to be the CB username exactly)",type: "str",minLength: 0, maxLength: 10240,required: false,defaultValue: "kilo_bear,Rage_reset,Freedomisfun,test_eli3655"}, { name: "loonyText",label: "Text to put in front of your messages (e.g.a graphic or a word)",type: "str",minLength: 0,maxLength: 15,required: false,defaultValue: ":pkmn025" }, { name: "loonyBGColor",label: "your background color / the color that is behind your message",type:"choice",choice1:"Black",choice2:"Azure",choice3:"Aqua",choice4:"Blue",choice5:"Green",choice6:"Gold",choice7:"White",choice8:"Red",choice9:"Yellow",choice10:"Indigo",choice11:"Skyblue",choice12:"Orange",choice13:"Cyan",choice14:"Darkblue",choice15:"Chocolate",choice16:"Lavender",choice17:"Aquamarine",choice18:"BlueViolet",choice19:"Coral",choice20:"DarkRed",choice21:"DarkGreen",choice22:"DeepPink",choice23:"Magenta",choice24:"OrangeRed",choice25:"Maroon",choice26:"Brown",choice27:"DarkOrange",choice28:"YellowGreen",choice29:"DarkCyan",choice30:"DimGrey",choice31:"Chartreuse",choice32:"CadetBlue",defaultValue:"White" }, { name: "loonyTextColor",label: "Looney text color",type:"choice",choice1:"Black",choice2:"Azure",choice3:"Aqua",choice4:"Blue",choice5:"Green",choice6:"Gold",choice7:"White",choice8:"Red",choice9:"Yellow",choice10:"Indigo",choice11:"Skyblue",choice12:"Orange",choice13:"Cyan",choice14:"Darkblue",choice15:"Chocolate",choice16:"Lavender",choice17:"Aquamarine",choice18:"BlueViolet",choice19:"Coral",choice20:"DarkRed",choice21:"DarkGreen",choice22:"DeepPink",choice23:"Magenta",choice24:"OrangeRed",choice25:"Maroon",choice26:"Brown",choice27:"DarkOrange",choice28:"YellowGreen",choice29:"DarkCyan",choice30:"DimGrey",choice31:"Chartreuse",choice32:"CadetBlue",defaultValue:"Black" }, { name: "loonyMemberList",label: "List of current Looney users so just you",type: "str",minLength: 0,maxLength: 10240,required: true,defaultValue: "Bllueberrylove" }, { name: "topkittenText",label: "Text to put in front of anyone that you want to stand out",type: "str",minLength: 0,maxLength: 15,required: false,defaultValue: "Top Pervs" }, { name: "topkittenTextColor",label: "random people text color",type:"choice",choice1:"Black",choice2:"Azure",choice3:"Aqua",choice4:"Blue",choice5:"Green",choice6:"Gold",choice7:"White",choice8:"Red",choice9:"Yellow",choice10:"Indigo",choice11:"Skyblue",choice12:"Orange",choice13:"Cyan",choice14:"Darkblue",choice15:"Chocolate",choice16:"Lavender",choice17:"Aquamarine",choice18:"BlueViolet",choice19:"Coral",choice20:"DarkRed",choice21:"DarkGreen",choice22:"DeepPink",choice23:"Magenta",choice24:"OrangeRed",choice25:"Maroon",choice26:"Brown",choice27:"DarkOrange",choice28:"YellowGreen",choice29:"DarkCyan",choice30:"DimGrey",choice31:"Chartreuse",choice32:"CadetBlue",defaultValue:"Black" }, { name: "topkittenBGColor", label: "random people background color",type:"choice",choice1:"Black",choice2:"Azure",choice3:"Aqua",choice4:"Blue",choice5:"Green",choice6:"Gold",choice7:"White",choice8:"Red",choice9:"Yellow",choice10:"Indigo",choice11:"Skyblue",choice12:"Orange",choice13:"Cyan",choice14:"Darkblue",choice15:"Chocolate",choice16:"Lavender",choice17:"Aquamarine",choice18:"BlueViolet",choice19:"Coral",choice20:"DarkRed",choice21:"DarkGreen",choice22:"DeepPink",choice23:"Magenta",choice24:"OrangeRed",choice25:"Maroon",choice26:"Brown",choice27:"DarkOrange",choice28:"YellowGreen",choice29:"DarkCyan",choice30:"DimGrey",choice31:"Chartreuse",choice32:"CadetBlue",defaultValue:"White" }, { name: "topkittenMemberList",label: "List of random people you want to stand out (and they need to be the CB username exactly)",type: "str",minLength: 0,maxLength: 10000,required: false,defaultValue: "read the description for this one loony" }, ]; var ulMembers = {}; var loonyMembers = {}; var topkittenMembers = {}; var afMembers = {}; var foxMembers = {}; var Colours = { AliceBlue: "#F0F8FF", AntiqueWhite: "#FAEBD7", Aqua: "#00FFFF", Aquamarine: "#7FFFD4", Azure: "#F0FFFF", Beige: "#F5F5DC", Bisque: "#FFE4C4", Black: "#000000", BlanchedAlmond: "#FFEBCD", Blue: "#0000FF", BlueViolet: "#8A2BE2", Brown: "#A52A2A", BurlyWood: "#DEB887", CadetBlue: "#5F9EA0", Chartreuse: "#7FFF00", Chocolate: "#D2691E", Coral: "#FF7F50", CornflowerBlue: "#6495ED", Cornsilk: "#FFF8DC", Crimson: "#DC143C", Cyan: "#00FFFF", DarkBlue: "#00008B", DarkCyan: "#008B8B", DarkGoldenRod: "#B8860B", DarkGrey: "#A9A9A9", DarkGreen: "#006400", DarkKhaki: "#BDB76B", DarkMagenta: "#8B008B", DarkOliveGreen: "#556B2F", DarkOrange: "#FF8C00", DarkOrchid: "#9932CC", DarkRed: "#8B0000", DarkSalmon: "#E9967A", DarkSeaGreen: "#8FBC8F", DarkSlateBlue: "#483D8B", DarkSlateGrey: "#2F4F4F", DarkTurquoise: "#00CED1", DarkViolet: "#9400D3", DeepPink: "#FF1493", DeepSkyBlue: "#00BFFF", DimGrey: "#696969", DodgerBlue: "#1E90FF", FireBrick: "#B22222", FloralWhite: "#FFFAF0", ForestGreen: "#228B22", Fuschia: "#FF00FF", Gainsboro: "#DCDCDC", GhostWhite: "#F8F8FF", Gold: "#FFD700", GoldenRod: "#DAA520", Grey: "#808080", Green: "#008000", GreenYellow: "#ADFF2F", HoneyDew: "#F0FFF0", HotPink: "#FF69B4", IndianRed: "#CD5C5C", Indigo: "#4B0082", Ivory: "#FFFFF0", Khaki: "#F0E68C", Lavender: "#E6E6FA", LavenderBlush: "#FFF0F5", LawnGreen: "#7CFC00", LemonChiffon: "#FFFACD", LightBlue: "#ADD8E6", LightCoral: "#F08080", LightCyan: "#E0FFFF", LightGoldenRodYellow: "#FAFAD2", LightGrey: "#D3D3D3", LightGreen: "#90EE90", LightPink: "#FFB6C1", LightSalmon: "#FFA07A", LightSeaGreen: "#20B2AA", LightSkyBlue: "#87CEFA", LightSlateGrey: "#778899", LightSteelBlue: "#B0C4DE", LightYellow: "#FFFFE0", Lime: "#00FF00", LimeGreen: "#32CD32", Linen: "#FAF0E6", Magenta: "#FF00FF", Maroon: "#800000", MediumAquaMarine: "#66CDAA", MediumBlue: "#0000CD", MediumOrchid: "#BA55D3", MediumPurple: "#9370DB", MediumSeaGreen: "#3CB371", MediumSlateBlue: "#7B68EE", MediumSpringGreen: "#00FA9A", MediumTurquoise: "#48D1CC", MediumVioletRed: "#C71585", MidnightBlue: "#191970", MintCream: "#F5FFFA", MistyRose: "#FFE4E1", Moccasin: "#FFE4B5", NavajoWhite: "#FFDEAD", Navy: "#000080", OldLace: "#FDF5E6", Olive: "#808000", OliveDrab: "#6B8E23", Orange: "#FFA500", OrangeRed: "#FF4500", Orchid: "#DA70D6", PaleGoldenRod: "#EEE8AA", PaleGreen: "#98FB98", PaleTurquoise: "#AFEEEE", PaleVioletRed: "#DB7093", PapayaWhip: "#FFEFD5", PeachPuff: "#FFDAB9", Peru: "#CD853F", Pink: "#FFC0CB", Plum: "#DDA0DD", PowderBlue: "#B0E0E6", Purple: "#800080", Red: "#FF0000", RosyBrown: "#BC8F8F", RoyalBlue: "#4169E1", SaddleBrown: "#8B4513", Salmon: "#FA8072", SandyBrown: "#F4A460", SeaGreen: "#2E8B57", SeaShell: "#FFF5EE", Sienna: "#A0522D", Silver: "#C0C0C0", SkyBlue: "#87CEEB", SlateBlue: "#6A5ACD", SlateGrey: "#708090", Snow: "#FFFAFA", SpringGreen: "#00FF7F", SteelBlue: "#4682B4", Tan: "#D2B48C", Teal: "#008080", Thistle: "#D8BFD8", Tomato: "#FF6347", Turquoise: "#40E0D0", Violet: "#EE82EE", Wheat: "#F5DEB3", White: "#FFFFFF", WhiteSmoke: "#F5F5F5", Yellow: "#FFFF00", YellowGreen: "#9ACD32" }; var tipper_colours = { legacy: { high_tipper_colour: "#9F9", high_total_colour: "#CCF" }, pink: { high_tipper_colour: Colours.Pink, high_total_colour: Colours.Violet }, forest: { high_tipper_colour: Colours.SpringGreen, high_total_colour: Colours.LimeGreen }, sky: { high_tipper_colour: Colours.PowderBlue, high_total_colour: Colours.SkyBlue }, purple: { high_tipper_colour: Colours.Orchid, high_total_colour: Colours.MediumSlateBlue }, sunshine: { high_tipper_colour: Colours.Yellow, high_total_colour: Colours.Gold }, }; // For auto-silencing at least some of token_wh*re_c*nts usernames var twcRegex = /t.?k.?n.?wh.?r.?_c.?nt.?/i; cb.onMessage(function (msg) { // vars for ease of use var u = msg["user"]; if ( isUL(u) && isAF(u) ) { msg["background"] = cb.settings.bothBGColor; msg["c"] = cb.settings.bothTextColor; msg["m"] = " " +cb.settings.ulText+" / "+ cb.settings.afText + " " + msg["m"]; } else if ( isUL(u) ) { msg["background"] = cb.settings.ulBGColor; msg["c"] = cb.settings.ulTextColor; msg["m"] = " " + cb.settings.ulText + " " + msg["m"]; } else if ( isFOX(u)) { msg["background"] = cb.settings.bothBGColor; msg["c"] = cb.settings.foxTextColor; msg["m"] = " " + cb.settings.foxText + " " + msg["m"]; } else if ( isLOONY(u) ) { msg["background"] = cb.settings.loonyBGColor; msg["c"] = cb.settings.loonyTextColor; msg["m"] = " " + cb.settings.loonyText + " " + msg["m"]; } else if ( isTOPKITTEN(u) ) { msg["background"] = "#" + cb.settings.topkittenBGColor; msg["c"] = "#" + cb.settings.topkittenTextColor; msg["m"] = " " + cb.settings.topkittenText + " " + msg["m"]; } else if ( isAF(u) ) { msg["background"] = "#" + cb.settings.afBGColor; msg["c"] = "#" + cb.settings.afTextColor; msg["m"] = " " + cb.settings.afText + " " + msg["m"]; } if (twcRegex.test(u)){ // Auto-silencing at least some of token_wh*re_c*nts usernames msg["X-Spam"] = true; } return msg; }); cb.onEnter(function (user) { var q = user['user']; if (isUL(q)) cb.chatNotice("A Kitty just entered the room. Welcome " + user['user'] + "!"); if (isFOX(q)) cb.chatNotice("A Cuddly Fox just entered the room. Welcome " + user['user'] + "!"); }); cb.onLeave(function (user) { var mb = user['user']; if (isUL(mb)) cb.chatNotice('Bye you beautiful beast ' + user['user'] + '!'); if (isFOX(mb)) cb.chatNotice('Bye you Cuddly fox ' + user['user'] + '!'); }); cb.onTip(function (tip) { var amountTipped = parseInt(tip["amount"]); if (amountTipped == cb.settings.ulMinTip) { // Make Bllueberryloveland and announce it var announcement = cb.settings.ulAnnounce.replace("MEMBERNAME", tip["from_user"]); makeUL(tip["from_user"]); for (var i = 0; i < cb.settings.ulRainCount; i++) { cb.chatNotice(cb.settings.ulRainText); } cb.chatNotice(announcement); } else if (amountTipped == cb.settings.foxMinTip) { // Make fox and announce it var announcement = cb.settings.foxAnnounce.replace("MEMBERNAME", tip["from_user"]); makeFOX(tip["from_user"]); for (var i = 0; i < cb.settings.foxRainCount; i++) { cb.chatNotice(cb.settings.foxRainText); } cb.chatNotice(announcement); } }); function isFOX(username) { return (username in foxMembers); } function isUL(username) { return (username in ulMembers); } function isLOONY(username) { return (username in loonyMembers); } function isTOPKITTEN(username) { return (username in topkittenMembers); } function isAF(username) { return (username in afMembers); } function makeUL(username) { ulMembers[username] = {"u": 1}; } function makeFOX(username) { foxMembers[username] = {"u": 1}; } function makeLOONY(username) { loonyMembers[username] = {"u": 1}; } function makeTOPKITTEN(username) { topkittenMembers[username] = {"u": 1}; } function makeAF(username) { afMembers[username] = {"u": 1}; } function grabSettings() { cb.log("starting grabbing settings"); // Get Bllueberrylovemembers if (cb.settings.ulMemberList) { var ulMemberSettings = cb.settings.ulMemberList.split(","); for (var ii = 0; ii < ulMemberSettings.length; ii++) { var clean = ulMemberSettings[ii].toLowerCase().replace(/ /g,""); ulMembers[clean] = {"u": 1}; } } // Get Bllueberrylove if (cb.settings.loonyMemberList) { var loonyMemberSettings = cb.settings.loonyMemberList.split(","); for (var ii = 0; ii < loonyMemberSettings.length; ii++) { var clean = loonyMemberSettings[ii].toLowerCase().replace(/ /g,""); loonyMembers[clean] = {"u": 1}; } } // Get king tipper of Bllueberrylove if (cb.settings.topkittenMemberList) { var topkittenMemberSettings = cb.settings.topkittenMemberList.split(","); for (var ii = 0; ii < topkittenMemberSettings.length; ii++) { var clean = topkittenMemberSettings[ii].toLowerCase().replace(/ /g,""); topkittenMembers[clean] = {"u": 1}; } } // Get fox cubs if (cb.settings.foxMemberList) { var foxMemberSettings = cb.settings.foxMemberList.split(","); for (var ii = 0; ii < foxMemberSettings.length; ii++) { var clean = foxMemberSettings[ii].toLowerCase().replace(/ /g,""); foxMembers[clean] = {"u": 1}; } } // Get Bllueberrylove fans if (cb.settings.afMemberList) { var afMemberSettings = cb.settings.afMemberList.split(","); for (var ii = 0; ii < afMemberSettings.length; ii++) { var clean = afMemberSettings[ii].toLowerCase().replace(/ /g,""); afMembers[clean] = {"u": 1}; } } cb.log("finished grabbing settings"); } grabSettings();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.