Bots Home
|
Create an App
stuff n stuff
Author:
i_love_asian_women
Description
Source Code
Launch Bot
Current Users
Created by:
I_Love_Asian_Women
var minAction = 5, maxTip = 0, maxSum = 0, nextArray = ["NOTE"], noteNb = 0, nextIndex = 0, usrNb = 0, next = "", noteList = {}, totalList = {}, tipSum = 0, tipNb = 0, actionIndic = minAction, minuteNb = parseInt(cb.settings.minuteNb); var maxNotice = 1; cb.onMessage(function(e) { { var t = e.user, n = e.m, o = e.is_mod; !e.has_tokens } if (e.hasOwnProperty("X-Spam") && e["X-Spam"]) return e; if (isOwner("silici0") && onTest(e.m), isOwner) { var a = watchCommand(n); if (a) { var i = doCommand(t, a, o); i && errorCmd(t, i, a), e.m = "", e["X-Spam"] = !0 } } actionIndic += 1 }) var cmdList = {}; cmdList["/lush"] = { cmd:ChatNotice } function nextDisplay() { "NOTE" == next && noteDisplay(), nextIndex = nextIndex >= nextArray.length - 1 ? 0 : nextIndex + 1, next = nextArray[nextIndex] } function doCommand(e, t) { var n = mySplit(t.toLowerCase()), o = n[0]; return "goal" == o ? cmdGoal(e, n, t) : "sum" == o ? cmdSum(e) : "token" == o ? cmdToken(e, n) : void 0 } function mySplit(e) { return e.trim().replace(/\s+/g, " ").split(" ") } var MAXSEP = 7; function isOwner(e) { return e == cb.room_slug } function trimEmot(e) { e = e.replace(/\[/g, ""), e = e.replace(/\]/g, ""); for (var t = mySplit(e), n = 0; n < t.length; n++) ":" == t[n][0] && t[n].length > 1 && (e = e.replace(t[n], "")); return e } function myRandom(e, t) { return Math.floor(e + Math.random() * (t - e + 1)) } function sendTitle(e, t, n) { var o = n ? n : messColor; o = isOwner(e) ? "#000000" : o, cb.sendNotice(t, e, "", o, "bolder") } function sendNote(e, t, n) { var o = n ? n : messColor; cb.sendNotice(t, e, "", o, "normal") } function watchCommand(e) { for (var t in cmdList) { var n = e.toLowerCase().indexOf(t); if (n >= 0) { var o = mySplit(e.substring(n)); return e.substring(n).replace(o[0], cmdList[t].cmd) } } } function roomDisplay() { var e = 1; actionIndic >= minAction && (nextDisplay(), actionIndic = 0, e = noteNb && "LEVEL" == next ? 1 : minuteNb), cb.setTimeout(roomDisplay, 6e4 * e) } function manageTotalList(e, t) { return e in totalList ? totalList[e].sum += t : totalList[e] = { sum: t, num: ++usrNb }, totalList[e].sum } function initNotice() { for (var e = 1; maxNotice >= e; e++) { var t = cb.settings["notice" + e] ? cb.settings["notice" + e].trim() : ""; t && (noteList[++noteNb] = { note: t }) } } function onTip(e, t) { actionIndic += 1, tipNb += 1, tipSum += t; var n = manageTotalList(e, t); } var separators = [{ label: "Heart", shortcut: ":hearta12" }, { label: "Pink Glitter", shortcut: ":pixelglitter" }, { label: "Flowers", shortcut: ":tinyflower2" }, { label: "Bow", shortcut: ":bluebow" }, { label: "Pixel Heart", shortcut: ":pixelheart" }, { label: "Pink Sparkle", shortcut: ":sparklpink" }, { label: "Custom [Enter Below]", shortcut: cb.settings.customSep } ]; var LEVELS = 5; var Graphics = [{ label: "low", emote: " :applovelow " }, { label: "medium", emote: " :applovemed " }, { label: "high", emote: " :applovehi " }, { label: "Ultra High", emote: ":p67_lo_ultrahigh at ULTRA HIGH" }, { label: "Not Used", emote: "" }, { label: "Pause", emote: ":p67_pause" }, { label: "Cancel", emote: ":p67_cancel" }, { label: "Random", emote: ":loveappran" }, { label: "Pulse", emote: ":loveappp" }, { label: "Wave", emote: ":loveappw" }, { label: "Fireworks", emote: ":loveappf" }, { label: "Earthquake", emote: ":loveappe" } ]; // CB Settings cb.settings_choices = [{ name: "levelTitle", label: "CUSTOMIZE THEME .............................. Header", type: "str", minLength: 1, maxLength: 1000, defaultValue: ":smallsepa :loveappluv :smallsepa", required: true }, { name: "levelSubTitle", label: "Title for Levels", type: "str", minLength: 1, maxLength: 1000, defaultValue: ":bigsepa :loveapplev :bigsepa", required: true }, { name: "textColorFG", label: "Text Color (default Dark Pink #FF1493)", type: "str", defaultValue: "#FF1493", required: true }, { name: 'textColorBG', type: 'str', label: 'Background Color (default Black #000000)', defaultValue: '#000000', required: true }, { name: "iconLush", label: "Icon Used For The Lovense Lush", type: "str", minLength: 1, maxLength: 1000, defaultValue: ":loveapplush", required: true }, { name: "toymenuTimer", label: "Interval (in mins) For Level Menu", type: "int", minValue: 1, maxValue: 60, defaultValue: 6, required: true }, { name: "minuteNb", label: " Notice Display In Minutes ", type: "int", minValue: 1, maxValue: 30, defaultValue: 1 }, { name: "messColor", label: " NOTICES SETTINGS ... Notice Display Color", type: "str", minLength: 0, maxLength: 10240, required: true, defaultValue: "#000000" }, { name: "notice1", label: "- Optional Additional ...... Notice 1 ", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: "Lovense Lush : Device that vibrates longer on your Tips!" }, { name: "sepchar", type: "choice", choice1: "Vertical Bar", choice2: "Heart", choice3: "Pink Glitter", choice4: "Flowers", choice5: "Bow", choice6: "Pixel Heart", choice7: "Pink Sparkle", choice8: "Custom [Enter Below]", defaultValue: "Custom [Enter Below]", label: "Separator character" }, { name: "customSep", label: "Custom Separator (use :GIFNAME with colon)", type: "str", minLength: 0, maxLength: 60, required: true, defaultValue: ":apploveheart" }, { name: "level1Tip", label: "LEVEL 1 ........................................... Tokens", type: "int", minValue: 1, maxValue: 10000, defaultValue: 1, required: true }, { name: "level1Vib", label: "Intensity", type: "choice", choice1: "low", choice2: "medium", choice3: "high", defaultValue: "low" }, { name: "level1Time", label: "Reaction Time (in seconds)", type: "int", minValue: 1, maxValue: 10000, defaultValue: 2, required: true }, { name: "level2Tip", label: "LEVEL 2 ........................................... Tokens", type: "int", minValue: 1, maxValue: 10000, defaultValue: 16, required: true }, { name: "level2Vib", label: "Intensity", type: "choice", choice1: "low", choice2: "medium", choice3: "high", defaultValue: "low" }, { name: "level2Time", label: "Reaction Time (in seconds)", type: "int", minValue: 1, maxValue: 10000, defaultValue: 5, required: true }, { name: "level3Tip", label: "LEVEL 3 ........................................... Tokens", type: "int", minValue: 1, maxValue: 10000, defaultValue: 50, required: true }, { name: "level3Vib", label: "Intensity", type: "choice", choice1: "low", choice2: "medium", choice3: "high", defaultValue: "medium" }, { name: "level3Time", label: "Reaction Time (in seconds)", type: "int", minValue: 1, maxValue: 10000, defaultValue: 5, required: true }, { name: "level4Tip", label: "LEVEL 4 ........................................... Tokens", type: "int", minValue: 1, maxValue: 10000, defaultValue: 100, required: true }, { name: "level4Vib", label: "Intensity", type: "choice", choice1: "low", choice2: "medium", choice3: "high", defaultValue: "medium" }, { name: "level4Time", label: "Reaction Time (in seconds)", type: "int", minValue: 1, maxValue: 10000, defaultValue: 10, required: true }, { name: "level5Tip", label: "LEVEL 5 ........................................... Tokens", type: "int", minValue: 1, maxValue: 10000, defaultValue: 500, required: true }, { name: "level5Vib", label: "Intensity", type: "choice", choice1: "low", choice2: "medium", choice3: "high", defaultValue: "high" }, { name: "level5Time", label: "Reaction Time (in seconds)", type: "int", minValue: 1, maxValue: 10000, defaultValue: 10, required: true }, { name: "specialRandomLevelsTip", label: "RANDOM LEVEL ...................................... Tokens", type: "int", minValue: 1, maxValue: 10000, defaultValue: 75, required: true }, { name: "specialLowerRandomRange", label: "Low Random Level", type: "int", minValue: 1, maxValue: 5, defaultValue: "1", required: true }, { name: "specialUpperRandomRange", label: "High Random Level", type: "int", minValue: 1, maxValue: 5, defaultValue: "5", required: true }, { name: "specialEnable", label: "PATTERNS ........................................ Turn on Patterns?", type: "choice", choice1: "Yes", choice2: "No", defaultValue: "Yes" }, { name: "specialTitle", label: "Title For The Special Levels", type: "str", minLength: 1, maxLength: 10000, defaultValue: ":smallsepa :loveappluvlvl :smallsepa", required: true }, { name: "specialPulseTip", label: "Pulse Pattern ........................................ Tokens ", type: "int", minValue: 1, maxValue: 10000, defaultValue: 40, required: true }, { name: "specialPulseTime", label: "Reaction Time (in seconds)", type: "int", minValue: 1, maxValue: 10000, defaultValue: 5, required: true }, { name: "specialWaveTip", label: "Wave Pattern ........................................ Tokens", type: "int", minValue: 1, maxValue: 10000, defaultValue: 50, required: true }, { name: "specialWaveTime", label: "Reaction Time (in seconds)", type: "int", minValue: 1, maxValue: 10000, defaultValue: 6, required: true }, { name: "specialFireworksTip", label: "Fireworks Pattern ........................................ Tokens", type: "int", minValue: 1, maxValue: 10000, defaultValue: 60, required: true }, { name: "specialFireworksTime", label: "Reaction Time (in seconds)", type: "int", minValue: 1, maxValue: 10000, defaultValue: 7, required: true }, { name: "specialEarthquakeTip", label: "Earthquake Pattern ........................................ Tokens", type: "int", minValue: 1, maxValue: 10000, defaultValue: 70, required: true }, { name: "specialEarthquakeTime", label: "Reaction Time (in seconds)", type: "int", minValue: 1, maxValue: 10000, defaultValue: 8, required: true }]; // ######################### // Function for Notice // ######################### function ChatNotice() { cb.sendNotice('Help me feel your love!', '', cb.settings['textColorBG'], cb.settings['textColorFG'], 'bold', FormatNotice()); cb.setTimeout(ChatNotice, (cb.settings.toymenuTimer * 60000)); } function FormatNotice(username) { var msg = "" var sep = "| "; var lvl1, lvl2, lvl3, lvl4, lvl5, lvl6, lvl7, lvl8; for (var c = 0; c <= MAXSEP - 1; c++) cb.settings.sepchar == separators[c].label && (sep = separators[c].shortcut + " "); for (var c = 0; c <= LEVELS - 1; c++) cb.settings.level1Vib == Graphics[c].label && (lvl1 = Graphics[c].emote + " "); for (var c = 0; c <= LEVELS - 1; c++) cb.settings.level2Vib == Graphics[c].label && (lvl2 = Graphics[c].emote + " "); for (var c = 0; c <= LEVELS - 1; c++) cb.settings.level3Vib == Graphics[c].label && (lvl3 = Graphics[c].emote + " "); for (var c = 0; c <= LEVELS - 1; c++) cb.settings.level4Vib == Graphics[c].label && (lvl4 = Graphics[c].emote + " "); for (var c = 0; c <= LEVELS - 1; c++) cb.settings.level5Vib == Graphics[c].label && (lvl5 = Graphics[c].emote + " "); for (var c = 0; c <= LEVELS - 1; c++) cb.settings.level6Vib == Graphics[c].label && (lvl6 = Graphics[c].emote + " "); for (var c = 0; c <= LEVELS - 1; c++) cb.settings.level7Vib == Graphics[c].label && (lvl7 = Graphics[c].emote + " "); for (var c = 0; c <= LEVELS - 1; c++) cb.settings.level8Vib == Graphics[c].label && (lvl8 = Graphics[c].emote + " "); msg = " " + sep + " " + cb.settings.levelTitle + " " + sep + "\n " + sep + " " + cb.settings.levelSubTitle + " " + sep + "\n"; msg += lvl1 + " Lvl 1 " + " Tip " + parseInt(cb.settings["level1Tip"]) + "-" + (parseInt(cb.settings["level2Tip"]) - 1) + " " + cb.settings.iconLush + " for " + cb.settings["level1Time"] + " seconds at " + cb.settings.level1Vib + " power." + "\n"; msg += lvl2 + " Lvl 2 " + " Tip " + parseInt(cb.settings["level2Tip"]) + "-" + (parseInt(cb.settings["level3Tip"]) - 1) + " " + cb.settings.iconLush + " for " + cb.settings["level2Time"] + " seconds at " + cb.settings.level2Vib + " power." + "\n"; msg += lvl3 + " Lvl 3 " + " Tip " + parseInt(cb.settings["level3Tip"]) + "-" + (parseInt(cb.settings["level4Tip"]) - 1) + " " + cb.settings.iconLush + " for " + cb.settings["level3Time"] + " seconds at " + cb.settings.level3Vib + " power." + "\n"; msg += lvl4 + " Lvl 4 " + " Tip " + parseInt(cb.settings["level4Tip"]) + "-" + (parseInt(cb.settings["level5Tip"]) - 1) + " " + cb.settings.iconLush + " for " + cb.settings["level4Time"] + " seconds at " + cb.settings.level4Vib + " power." + "\n"; msg += lvl5 + " Lvl 5 " + " Tip " + parseInt(cb.settings["level5Tip"]) msg += "+ " msg += cb.settings.iconLush + " for " + cb.settings["level5Time"] + " seconds at " + cb.settings.level5Vib + " power. " + "\n"; if (cb.settings.specialRandomLevelsTip > 0) { msg += " :loveappr " + " Lvl ? " + " Tip " + parseInt(cb.settings["specialRandomLevelsTip"]) + " " + cb.settings.iconLush + " for a random chance of " + parseInt(cb.settings["specialLowerRandomRange"]) + " - " + parseInt(cb.settings["specialUpperRandomRange"]) + "."; } if (cb.settings.specialEnable == "Yes") { msg += "\n " + sep + " " + cb.settings.specialTitle + " " + sep + "\n"; } if (cb.settings.specialPulseTip > 0) { msg += ":applovep" + " Pulse Pattern " + " Tip " + parseInt(cb.settings["specialPulseTip"]) + " " + cb.settings.iconLush + " for " + parseInt(cb.settings["specialPulseTime"]) + " seconds. " + "\n"; } if (cb.settings.specialWaveTip > 0) { msg += ":applovew" + " Wave Pattern " + " Tip " + parseInt(cb.settings["specialWaveTip"]) + " " + cb.settings.iconLush + " for " + parseInt(cb.settings["specialWaveTime"]) + " seconds. " + "\n"; } if (cb.settings.specialFireworksTip > 0) { msg += ":applovef" + " Fireworks Pattern " + " Tip " + parseInt(cb.settings["specialFireworksTip"]) + " " + cb.settings.iconLush + " for " + parseInt(cb.settings["specialFireworksTime"]) + " seconds. " + "\n"; } if (cb.settings.specialEarthquakeTip > 0) { msg += ":applovee" + " Earthquake Pattern " + " Tip " + parseInt(cb.settings["specialEarthquakeTip"]) + " " + cb.settings.iconLush + " for " + parseInt(cb.settings["specialEarthquakeTime"]) + " seconds. "; cb.sendNotice(msg, username, cb.settings.textColorBG, cb.settings.textColorFG, 'bold'); } } cb.onTip(function(e) { var t = parseInt(e.amount), n = e.from_user; onTip(n, t); if (e['amount'] > cb.settings.level1Tip - 1 && e['amount'] < cb.settings.level2Tip) { cb.chatNotice("My device is now reacting at " + cb.settings.level1Vib + " power from " + n + "'s tip for " + cb.settings.level1Time + " seconds.", "", '#FA58F4', '#000000', 'bold'); } if (e['amount'] > cb.settings.level2Tip - 1 && e['amount'] < cb.settings.level3Tip) { cb.chatNotice("My device is now reacting at " + cb.settings.level2Vib + " power from " + n + "'s tip for " + cb.settings.level2Time + " seconds.", "", '#FA58F4', '#000000', 'bold'); } if (e['amount'] > cb.settings.level3Tip - 1 && e['amount'] < cb.settings.level4Tip) { cb.chatNotice("My device is now reacting at " + cb.settings.level3Vib + " power from " + n + "'s tip for " + cb.settings.level3Time + " seconds.", "", '#FA58F4', '#000000', 'bold'); } if (e['amount'] > cb.settings.level4Tip - 1 && e['amount'] < cb.settings.level5Tip) { cb.chatNotice("My device is now reacting at " + cb.settings.level4Vib + " power from " + n + "'s tip for " + cb.settings.level4Time + " seconds.", "", '#FA58F4', '#000000', 'bold'); } if (e['amount'] > cb.settings.level5Tip - 1) { cb.chatNotice("My device is now reacting at " + cb.settings.level5Vib + " power from " + n + "'s tip for " + cb.settings.level5Time + " seconds.", "", '#FA58F4', '#000000', 'bold') } }); function init() { ChatNotice(); cb.setTimeout,(initNotice(), (cb.settings.notice1 * 60000)) }; init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.