Bots Home
|
Create an App
TEST_LOVE3
Author:
philwhelp
Description
Source Code
Launch Bot
Current Users
Created by:
Philwhelp
//--patches cbjs.arrayContains = (haystack, needle) => Array.prototype.includes.call(haystack, needle); if (!Object.entries) Object.entries = function( obj ){ var ownProps = Object.keys( obj ), i = ownProps.length, resArray = new Array(i); // preallocate the Array while (i--) resArray[i] = [ownProps[i], obj[ownProps[i]]]; return resArray; }; function isBlank(str) { return (!str || /^\s*$/.test(str)); } room_slug = cb.room_slug; var tm = "off"; toyTimer = []; xtxt_ = ["\uD835\uDDE7\uD835\uDDFC\uD835\uDDF8\uD835\uDDF2\uD835\uDDFB\uD835\uDE00", "\uD835\uDDDF\uD835\uDDF2\uD835\uDE03\uD835\uDDF2\uD835\uDDF9","\uD835\uDDDF\uD835\uDDE9","\uD835\uDE01\uD835\uDDFC","\uD835\uDDFD\uD835\uDDF9\uD835\uDE02\uD835\uDE00","\uD835\uDE00\uD835\uDDF2\uD835\uDDF0\uD835\uDDFC\uD835\uDDFB\uD835\uDDF1","\uD835\uDDFA\uD835\uDDF6\uD835\uDDFB\uD835\uDE02\uD835\uDE01\uD835\uDDF2","\uD835\uDE00","\uD835\uDDDF\uD835\uDDFC\uD835\uDE04","\uD835\uDDE0\uD835\uDDF2\uD835\uDDF1\uD835\uDDF6\uD835\uDE02\uD835\uDDFA","\uD835\uDDDB\uD835\uDDF6\uD835\uDDF4\uD835\uDDF5","\uD835\uDDE8\uD835\uDDF9\uD835\uDE01\uD835\uDDFF\uD835\uDDEE ","\uD835\uDDE9\uD835\uDDF6\uD835\uDDEF\uD835\uDDFF\uD835\uDDEE\uD835\uDE01\uD835\uDDF6\uD835\uDDFC\uD835\uDDFB\uD835\uDE00", "\uD835\uDDE5\uD835\uDDFC\uD835\uDE01\uD835\uDDEE\uD835\uDE01\uD835\uDDF6\uD835\uDDFC\uD835\uDDFB\uD835\uDE00","\uD835\uDDD4\uD835\uDDF6\uD835\uDDFF \uD835\uDDE3\uD835\uDE02\uD835\uDDFA\uD835\uDDFD"]; function randNo(min, max) { minNo = parseInt(min); maxNo = parseInt(max); return Math.floor(Math.random() * (maxNo - minNo + 1)) + minNo; } function showList() { var name = toyTimer[0]; if ((typeof(name) != "undefined") && (tm == "off")) {tm = "on"; cb.chatNotice('***** ' + toyTimer[0].note, "", cb.settings.activeBk,cb.settings.activetxt, 'bold'); toyTimer.shift(); setTimeout(function(){ tm = "off"; showList();}, 1000 * name.timer); } } function listAdd(s, n, x) { if (x == 1) {toyTimer.unshift({timer: s, note: n});} else if (x == 2) {toyTimer =[{timer: s, note: n}]; tm = "off" } else {toyTimer.push({timer: s, note: n}); } showList() } function addName(obj, n) { if (obj) {var obj = obj.replace( /\{user\}/gi, n );} return obj; } function LvNo(s, v) { var number = ""; if (s) { if (divide(s,v) == 'plus') {var number = 9999999;} else {number = divide(s,v);} return number; }} function divide(s,v) { if (s) { res = s.split(/,| |-/) [v] ? s.split(/,| |-/) [v] : ""; return res;} else {return;} } function getTime(t) { var time = t; var Tsec =""; var Tmin =""; var minutes = Math.floor(time / 60); var seconds = time - minutes * 60; if (minutes > 0) {Tmin = minutes + ' '+xtxt_[6];} if (minutes > 1) {Tmin += xtxt_[7];} if (seconds > 0) {Tsec = seconds + ' ' + xtxt_[5];} if (seconds > 1) {Tsec += xtxt_[7];} if ((minutes) && (seconds)) { Fultime = Tmin + ' & ' + Tsec + ' ';} else if (minutes) {Fultime = Tmin + ' ';} else if (seconds) {Fultime = Tsec + ' ';} if (Fultime) return Fultime; } function getstring(a, s, x){ var string = ""; var toys = ""; for (i = 0; i < toy_name.length; i++) { toyx = toy_list[''+toy_name[i]+''] ? toy_list[''+toy_name[i]+''][1] : "="; toys += toyx + " "; } lev_intent = divide(s,2) == "UH" ? "hi" : divide(s,2) == "H" ? "hi" : divide(s,2) == "M" ? "me" : "lo"; lev_intent_text = divide(s,2) == "UH" ? "ultra high Vibrations" : divide(s,2) == "H" ? "high Vibrations" : divide(s,2) == "M" ? "medium Vibrations" : "low Vibrations"; rot_pump = toy_name.includes("nora") ? divide(s,3) == "H" ? " with high rotations" : divide(s,3) == "M" ? " with medium rotations" : divide(s,3) == "L" ? " with low rotations" : " with no rotations" : toy_name.includes("max") ? divide(s,3) == "H" ? " with high pump action" : divide(s,3) == "M" ? " with medium pump action" : divide(s,3) == "L" ? " with low pump action" : " with no pump action": ""; var st0 = (Number(divide(s,0)) && !(isNaN(divide(s,0)))); var st1 = (Number(divide(s,1)) && !(isNaN(divide(s,1)))); var st2 = (Number(divide(s,2)) && !(isNaN(divide(s,2)))); var st3 = (Number(divide(s,3)) && !(isNaN(divide(s,3)))); if (x > 0) {spes_T = " ["+ divide(s,0) +" "+xtxt_[0]+ "] " + toys; if (!((x == 1) || (x == 3))) {if (!st0 || !st1) {return " error: check special command";}} } if (x == 1) { string += "random"+ spes_T+"random level "; return string;} else if (x == 2) {string +="pause"+ spes_T + 'pause queue for ' + getTime(divide(s,1)) ; return string;} else if (x == 3) {string += "clear"+ spes_T + 'Clear the queue' ; return string;} else if (x == 4) {string +="wave"+ spes_T + ' ' + getTime(divide(s,1)) + ' Wave pattern' ; return string;} else if (x == 5) {string += "pulse"+ spes_T + ' ' + getTime(divide(s,1)) + ' Pulse pattern' ; return string;} else if (x == 6) {string += "earth"+ spes_T + ' ' + getTime(divide(s,1)) + ' Earthquake pattern' ; return string;} else if (x == 7) {string += "fireworks"+ spes_T + ' ' + getTime(divide(s,1)) + ' Fireworks pattern' ; return string;} else if (!(((divide(s,0) == "plus") && st1) || (st0 && st1))) {return " error: check level";} else { string = lev_intent +" [" + a + (divide(s,0) == "plus" ? " " : " to " ) + divide(s,0) + " "+ xtxt_[0]+ "]" + " "+toys + getTime(divide(s,1)) + " ("+lev_intent_text+ rot_pump +")"; return string; } } function init() { messBColor = cb.settings.messBColor ? cb.settings.messBColor : ""; cb.settings.levelMode && cb.settings.messColor && (levelMode = levelModeList[cb.settings.levelMode].level,messColor = colorList[cb.settings.messColor].c ), initNotice(), levelTitle = levelTitle ? levelTitle.replace(/{line\}/gi, skp) : "My "+ ((toy_name.length == 1) ?(toy_list[""+toy_name[0]+""] ? toy_list[""+toy_name[0]+""][0] : toy_name[0] ) + " is" : "Toys are") +" set to react to your tips, there are "+ dis_max_lv +" levels of intensity " + (cb.settings.spes == "yes" && cb.settings.levrand ? lev_range : ""), specTitle = use_spes ? "*** special Commands ***" : "", levelMode && initLevel(), noteNb || cbjs.arrayRemove(nextArray, "NOTE"), levelMode || cbjs.arrayRemove(nextArray, "LEVEL"), nextArray.length && (next = nextArray[nextIndex], cb.setTimeout(roomDisplay, 2e4 * minuteNb)); } function chk_allow(e) { pass = user_list[e.user] ? user_list[e.user] : get_Rand(); if (e.has_tokens == true){ if (allowed_users.indexOf(e.user) != -1) { allowed_users.push(e.user) } return "pass1"} else if (allowed_users.indexOf(e.user) != -1){return "pass1"} else if (e.m == getResult(pass)){allowed_users.push(e.user); return "pass2"} else { addUSR(e.user); return "fault";} } function doCommand(e, t) { var n = mySplit(t.toLowerCase()), o = n[0]; return "msg" == o ? slug_msg(t) : "toy" == o ? changeToy(e, t) : "spam" == o ? checkSpam(e) : void 0 } function slug_msg(t) { n = t.slice(4); sendTitle(cb.room_slug, "Bot Owner Message: "+n) } 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 initLevel() { var ra1 = isNaN(divide(cb.settings.randLvRange,1)); if (ra1 == false) {startRange = divide(cb.settings.randLvRange,0); endRange = divide(cb.settings.randLvRange,1); } for (var e = 1; maxLevel >= e; e++) { TOY = ':ldream'; strAm = e == 1 ? cb.settings.levstart : parseInt(LvNo(cb.settings['lev' + (e-1)], 0))+1; var t = getstring(strAm, cb.settings['lev' + e]) ? getstring(strAm, cb.settings['lev' + e]).trim() : ""; t && (levelNotice += "LIST" == levelMode ? skp +TOY+'lev' + e + t : TOY + t + ' ') if (divide(cb.settings['lev' + e], 0) == "plus") { break; } } var rt = getstring("",cb.settings.levrand) ? getstring("",cb.settings.levrand,1).trim() : ""; rt && ("LIST" == levelMode && (levelSNotice === "" ? "" : levelSNotice+=skp), levelSNotice += TOY + rt + ' (Levels ranging from ' + startRange + ' - ' + endRange + ')'); // Qpause = pause level tokens / time var qp = getstring("",cb.settings.Qpause) ? getstring("",cb.settings.Qpause, 2).trim() : ""; qp && ("LIST" == levelMode && (levelSNotice === "" ? "" : levelSNotice+=skp), levelSNotice += TOY + qp); //Qclear = clear all tips in queue var qc = getstring("",cb.settings.Qclear) ? getstring("",cb.settings.Qclear, 3).trim() : ""; qc && ("LIST" == levelMode && (levelSNotice === "" ? "" : levelSNotice+=skp), levelSNotice += TOY + qc); // waveLV = wave level tokens / time var sp1 = getstring("",cb.settings.waveLV) ? getstring("",cb.settings.waveLV, 4).trim() : ""; sp1 && ("LIST" == levelMode && (levelSNotice === "" ? "" : levelSNotice+=skp), levelSNotice += TOY + sp1); //pulseLV = pulse level tokens / time var pls = getstring("",cb.settings.pulseLV) ? getstring("",cb.settings.pulseLV, 5).trim() : ""; pls && ("LIST" == levelMode && (levelSNotice === "" ? "" : levelSNotice+=skp), levelSNotice += TOY + pls); //quakeLV = earthquake level tokens/ time var quk = getstring("",cb.settings.quakeLV) ? getstring("",cb.settings.quakeLV, 6).trim() : ""; quk && ("LIST" == levelMode && (levelSNotice === "" ? "" : levelSNotice+=skp), levelSNotice += TOY + quk); //fireworksLV = fireworks level tokens / time var fw = getstring("",cb.settings.fireworksLV) ? getstring("",cb.settings.fireworksLV, 7).trim() : ""; fw && ("LIST" == levelMode && (levelSNotice === "" ? "" : levelSNotice+=skp), levelSNotice += TOY + fw); } function roomDisplay() { var e = 1; actionIndic >= minAction && (nextDisplay(), actionIndic = 0, e = noteNb && "LEVEL" == next ? 1 : minuteNb), cb.setTimeout(roomDisplay, 2e4 * minuteNb) } function nextDisplay() { "LEVEL" == next ? levelDisplay(all) : "NOTE" == next && noteDisplay(), nextIndex = nextIndex >= nextArray.length - 1 ? 0 : nextIndex + 1, next = nextArray[nextIndex] } function noteDisplay() { noteColor = colorList[cb.settings.noteColor] ? colorList[cb.settings.noteColor].c : ""; cycleNum = cycleNum >= noteNb ? 1 : cycleNum + 1, sendTitle(all, noteList[cycleNum].note, noteColor) } function levelDisplay(e) { x=0; use_spes = (spes == "yes" && (cb.settings.levrand || cb.settings.Qpause || cb.settings.Qclear || cb.settings.waveLV || cb.settings.pulseLV || cb.settings.quakeLV)) ? true : false; "LINE" == levelMode ? sendTitle(e, levelTitle + " : " + levelNotice + (use_spes ? specTitle + levelSNotice : ""), "", messBColor) : sendTitle(e, levelTitle +" : "+ levelNotice + (use_spes ? skp + specTitle + skp + levelSNotice : ""), "", messBColor); } function cut(e) { return qt(e.substring(0, 25)) } 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 errorCmd(e, t, n) { sendTitle(e, skp + lck + " Error command : /" + n + skp + sqr + t + skp) } function isOwner(e) { return e == cb.room_slug } var allowed_users =[cb.room_slug]; var user_list = {}; var spacer = " \u2605 \u2605 \u2605 \u2605 \u2605 \u2605 \u2605\u2605 \u2605 \u2605 \u2605 \u2605 \u2605 \u2605\u2605 \u2605 \u2605 \u2605 \u2605 \u2605 \u2605"; function get_Rand() { quest = capt == "Question" ? Math.floor((Math.random() * 90) + 11) +" plus "+ Math.floor((Math.random() * 90) + 11): Math.floor((Math.random() * 9000) + 1001); return quest; } function getResult(e) { return (e.toString().indexOf("plus") != -1) ? Function(`'use strict'; return (${e.replace("plus", "+")})`)() : e; } function addUSR(e) { user_list[e] = get_Rand(); } function sendTitle(e, t, n, bn) { var o = n ? n : messColor; var bo = bn ? bn : ""; o = isOwner(e) && !n ? "#000000" : o, cb.sendNotice(t, e, bo, o, "bolder") } function sendNote(e, t, n) { var o = n ? n : messColor; cb.sendNotice(t, e, "", o, "normal") } 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 mySplit(e) { return e.trim().replace(/\s+/g, " ").split(" ") } function qt(e) { return e; } function x(e, t) { return e + " " + t.replace("$", e > 1 ? "s" : "") } function y(e, t) { return t.replace("$", e > 1 ? "s" : "") } var appName = " [ Geni Lovense ] ", owner = cb.room_slug, messColor = "#6900CC", messBColor = '#0000dd', cbColor = "#DC5500", all = "", skp = "\n", dot = " \u2981 ", hrt = " \u2665 ", sqr = " \u25A0 ", str = " \u2605", trg = " \u25B6 ", lne = " \u2500", lck = " :w__lck ", wht = " :w__wht "; spa = " - ", cb.settings_choices = [ { name: "ToyName", label: "Toy name/names (seperate with a comer (,) )", type: "str", minLength: 0, maxLength: 10240, required: !0, defaultValue: "lush" },{ name: "messColor", label: "2. NOTICES SETTINGS ... - Lovense Text-Color", type: "choice", choice1: "Orange", choice2: "Purple", choice3: "Blue", choice4: "Pink", choice5: "Dark_Red", choice6: "Black", choice7: "Yellow", defaultValue: "Dark_Red" },{ name: "messBColor", label: "Lovense Background-Colour(html code)", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: "" },{ name: "noteColor", label: "Notices Text-Colour", type: "choice", choice1: "Orange", choice2: "Purple", choice3: "Blue", choice4: "Pink", choice5: "Dark_Red", choice6: "Black", defaultValue: "Dark_Red" },{ name: "minuteNb", label: " (minutes) - Display Time ", type: "int", minValue: 1, maxValue: 30, defaultValue: 1 }, { name: "levelMode", label: "- Notification of Lovense-Levels", type: "choice", choice1: "NO (next info will not be used)", choice2: "YES - Mode List", choice3: "YES - Single Line", defaultValue: "YES - Mode List" },{ name: "levelTitle", label: "Custom Level Title", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: "" }, { name: "levstart", label: "Starting amount", type: "str", minLength: 1, maxLength: 10, defaultValue: "1" },{ name: "lev1", label: "Level 1 (max Tokens - time in seconds - vib level - rotate level )", type: "str", minLength: 0, maxLength: 10240, defaultValue: "14 3 L" }, { name: "lev2", label: "Level 2 ", type: "str", minLength: 0, maxLength: 10240, defaultValue: "99 6 M" }, { name: "lev3", label: "Level 3 ", type: "str", minLength: 0, maxLength: 10240, defaultValue: "499 10 M" }, { name: "lev4", label: "Level 4 ", type: "str", minLength: 0, maxLength: 10240, defaultValue: "999 60 H" }, { name: "lev5", label: "Level 5 ", type: "str", minLength: 0, maxLength: 10240, defaultValue: "plus 180 H" }, { name: "lev6", label: "Level 6 (optional) ", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: '' }, { name: "lev7", label: "Level 7 (optional)", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: '' },{ name: "spes", type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Use special levels." },{ name: "levrand", label: "Random Level ", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: "111" }, { name: "randLvRange", label: "Random Level Range (defalt = '1-5')", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: "1 5" }, { name: "Qpause", label: "Special- Pause the queue (tip/seconds)(default= 17 20)", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: "17 20" }, { name: "Qclear", label: "Special- Clear the queue (tip)(default= 66)", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: "66" }, { name: "waveLV", label: "Special (wave pattern)(tip/seconds)(default= 77 30)", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: "77 30" }, { name: "pulseLV", label: "Special (pulse pattern)(tip/seconds)(default= 44 15)", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: "44 15" }, { name: "quakeLV", label: "Special (Earthguake pattern)(tip/seconds)(default= 88 25)", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: "88 25" }, { name: "fireworksLV", label: "Special (fireworks pattern)(tip/seconds)(default= 99 40)", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: "99 40" }, { name: "notice1", label: "- Optional Additional ...... Notice 1 ", type: "str", minLength: 0, maxLength: 10240, defaultValue: "Lovense Lush : Device that vibrates longer on your Tips!" }, { name: "notice2", label: "Notice 2 ", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue:" :Lovense Lush Give me pleasure with your tips!" }, { name: "notice3", label: "Notice 3 ", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: " : Lovense info \n Give me pleasure with your tips!!!" }, { name: 'active1', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Show Toy activator" }, { name: "activeBk", label: "Activator background color", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: '' }, { name: "activetxt", label: "Activator text color", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: '#a900b2' }, { name: 'Auto1', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'no', label: "Use alto thank you? (notices have different colors): <use {user} to add name>" },{ name: "ThanksLv1", label: "Thank you for level 1 ", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: '' }, { name: "ThanksLv2", label: "Thank you for level 2 ", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: "I love it, thank you!" }, { name: "ThanksLv3", label: "Thank you for level 3 ", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: "You know how to make me happy! Thank you!!" }, { name: "ThanksLv4", label: "Thank you for level 4 ", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: "Thank you so much for giving me this pleasure!!" },{ name: "ThanksLv5", label: "Thank you for level 5 ", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: "OMG!!! I love it!! THANK YOU SO MUCH!! " }, { name: "ThanksLv6", label: "Thank you for level 6 ", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: '' }, { name: "ThanksLv7", label: "Thank you for level 7 ", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: "" },{ name: "Thanksrand", label: "Thank you special command tip ", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: "Thank you for the random lvl suprise!! " },{ name: "Thankspes", label: "Thank you random tip ", type: "str", minLength: 0, maxLength: 10240, required: !1, defaultValue: "Thank you for your Special suprise!! " }, {name:'use_capt', label: "Use Captcha bot", type:'choice', choice1:'yes', choice2:'no', defaultValue: 'yes' }, {name:'capt', label: "Capcha type", type:'choice', choice1:'Question', choice2:'Number', defaultValue: 'Number'}]; var minuteNb = parseInt(cb.settings.minuteNb), minAction = 5, actionIndic = minAction, cycleNum = 0, nextArray = ["LEVEL", "NOTE"], nextIndex = 0, next = "", dis_max_lv = cb.settings.lev7 ? 7 : cb.settings.lev6 ? 6 : 5; levelTitle = cb.settings.levelTitle, maxLevel = 7, lev_range = "or get a random level from " + ((!isNaN(divide(cb.settings.randLvRange,0))) ? divide(cb.settings['randLvRange'],0) : 1 ) + " to " + ((!isNaN(divide(cb.settings.randLvRange,0))) ? divide(cb.settings['randLvRange'],1) : dis_max_lv); toy_name = cb.settings.ToyName ? cb.settings.ToyName.split(",") : "Toy"; startRange = 1, endRange = dis_max_lv, levelMode = "", levelNotice = "", levelSNotice = "", levelModeList = {}; levelModeList["NO (next info will not be used)"] = { level: "" }, levelModeList["YES - Mode List"] = { level: "LIST" }, levelModeList["YES - Single Line"] = { level: "LINE" }; var maxNotice = 3, noteList = {}, noteNb = 0, Auto1 = cb.settings.Auto1, Thanksrand = cb.settings.Thanksrand, Thankspes = cb.settings.Thankspes, capt = cb.settings.capt; use_capt = cb.settings.use_capt; spam_count = 0; ThanksLvColor = ['#ff3333','#ff3377','#0033cc','#e69900','#cc5200','#3d0099','#cc8800'], spes = cb.settings.spes; use_spes = (cb.settings.spes == "yes"); var colorList = {}; colorList["General Display Color"] = { c: "" }, colorList.Orange = { c: "#DC5500" }, colorList.Blue = { c: "#323F75" }, colorList.Purple = { c: "#a900b2" }, colorList.Pink = { c: "#FA5858" }, colorList.Dark_Red = { c: "#9F000F" }, colorList.Black = { c: "#000000" },colorList.Yellow = { c: "#ffff00" }; var cmdList = {}; cmdList["!msg"] = { cmd: "msg" }, cmdList["/msg"] = { cmd: "msg" }, cmdList["!toy"] = { cmd: "toy" }, cmdList["!spam"] = { cmd: "spam" }, cb.onEnter(function(e) { var t = e.user; if (use_capt == "yes"){ var chk = chk_allow(e); if (chk == "fault"){ note = capt == "Number" ? "\n please type the following number to chat \n" : "\n please answer the following question below \n"; note += capt == "Number" ? user_list[t].toString().split("").join(" ") : user_list[t].toString() ; sendTitle(t, spacer + "\n Welcome " + t + "! CaptchaBot is active! " + note + "\n" + spacer, "#000000", "#ffff00") } } isOwner(t) || levelMode && levelDisplay(t) }), 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; else if(isOwner(t) || ( t == "cb_helper")) { var a = watchCommand(n); if (a) { var i = doCommand(t, a, o); i && errorCmd(t, i, a), e.m = "", e["X-Spam"] = !0 return e; } } actionIndic += 1; if (use_capt == "yes"){ var on_list = user_list[e.user] ? "yes" : "no"; if (on_list == "no") {return e} var chk = chk_allow(e); if (chk == "pass1") {return e} if (chk == "pass2") { e['X-Spam'] = true; e.m="Thank you. you can now chat"; return e; } else { e['X-Spam'] = true; note = capt == "Number" ? "\n please type the following number to chat \n" : "\n please answer the following question below \n"; note += capt == "Number" ? user_list[e.user].toString().split("").join(" ") : user_list[e.user].toString() ; setTimeout(function(){sendTitle(e.user,spacer +"\n "+ note + "\n" + spacer, "#000000", "#ffff00")}, 500); e.m="Message not sent! please answer the question below."; (on_list == "yes" ? spam_count++ : "") } } //-- return e; }), toy_list = []; toy_list.lush = ["Lovense Lush", ":lushsm "]; toy_list.nora = ["Lovense Nora", ":norasm "]; toy_list.max = ["Lovense Max", ":ldmax22 "]; toy_list.ohmibod = ["ohmibod", ">>"]; toy_list.hush = ["Lovense Hush", ":hushsm "]; toy_list.ambi = ["Lovense Ambi", "AMBI "]; toy_list.edge = ["Lovense Edge", "EDGE "]; toy_list.domi = ["Lovense Domi", ":domismall3 "]; toy_list.osci = ["Lovense Osci", ":ldesca "]; toy_list.toy = ["Lovense Toy", " "]; function checkSpam(e) { sendTitle(e, "The current messages are blocker are :" + spam_count, "#000000", "#ffff00"); } function changeToy(e, t){ new_toy = trimEmot(t.substring(4)); toy_name = new_toy? new_toy.toLowerCase().split(",") : ["Toy"]; levelNotice =""; levelSNotice = ""; levelTitle = cb.settings.levelTitle ? cb.settings.levelTitle.replace(/{line\}/gi, skp) : "My "+ ((toy_name.length == 1) ?(toy_list[""+toy_name[0]+""] ? toy_list[""+toy_name[0]+""][0] : toy_name[0] ) + " is" : "Toys are") +" set to react to your tips, there are "+ dis_max_lv +" levels of intensity " + (cb.settings.spes == "yes" && cb.settings.levrand ? lev_range : ""), levelMode && initLevel(), sendTitle(e.user, "you have now changed the toy to: " + toy_name); "LINE" == levelMode ? sendTitle(e, levelTitle + " : " + levelNotice + (use_spes ? specTitle + levelSNotice : ""), "", messBColor) : sendTitle(e, levelTitle +" : "+ levelNotice + (use_spes ? skp + specTitle + skp + levelSNotice : ""), messColor, messBColor); } cb.onTip(function(e) { var t = parseInt(e.amount), n = e.from_user; var toy_N = ((toy_name.length == 1) ?(toy_list[""+toy_name[0]+""] ? toy_list[""+toy_name[0]+""][0] : toy_name[0] ) : "Toys"); it_they = (toy_name.length == 1) ? "it" : "they"; is_are = (toy_name.length == 1) ? "is" : "are"; if (e.amount ==LvNo(cb.settings.levrand, 0) && spes == "yes") { randomNo = randNo(startRange, endRange); if (cb.settings.active1 == 'yes') {listAdd(divide(cb.settings['lev' + randomNo],1), n +' Has Randomly activated level ' +randomNo+ '. ' + cb.room_slug + '\'s '+toy_N+' will stop in ' + getTime(divide(cb.settings['lev' + randomNo],1))); } if ((cb.settings.Auto1 == 'yes') && Thanksrand){ cb.chatNotice(addName(Thanksrand, n), "", '#FFFFFF', '#000000', 'bold'); } } else if (e.amount ==LvNo(cb.settings.Qpause, 0)&& spes == "yes" && !isBlank(divide(cb.settings.Qpause,1))) { if (cb.settings.active1 == 'yes') {listAdd(divide(cb.settings.Qpause,1),cb.room_slug + '\'s '+toy_N+' has been paused by ' + n + '\'s tip."+it_they+" will resume in ' + getTime(divide(cb.settings.Qpause,1)),1); } if (cb.settings.Auto1 == 'yes'){ cb.chatNotice(addName(Thankspes, n), "", '#FFFFFF', '#000000', 'bold'); } } else if (e.amount ==LvNo(cb.settings.Qclear, 0) && spes == "yes") { if (cb.settings.active1 == 'yes') {listAdd(divide(cb.settings.Qclear,1), n +' cleared the queue of ' + cb.room_slug + '\'s ' + toy_N ,2); } if (cb.settings.Auto1 == 'yes'){ cb.chatNotice(addName(Thankspes, n), "", '#FFFFFF', '#000000', 'bold'); } } else if (e.amount ==LvNo(cb.settings.waveLV, 0) && spes == "yes" && !isBlank(divide(cb.settings.waveLV,1))) { if (cb.settings.active1 == 'yes') {listAdd(divide(cb.settings.waveLV,1),n +' has activated wave pattern on '+ cb.room_slug + '\'s ' + toy_N +'. "+it_they+" will stop in '+ getTime(divide(cb.settings.waveLV,1)),3); } if (cb.settings.Auto1 == 'yes'){ cb.chatNotice(addName(Thankspes, n), "", '#FFFFFF', '#000000', 'bold'); } } else if (e.amount ==LvNo(cb.settings.pulseLV, 0) && spes == "yes" && !isBlank(divide(cb.settings.pulseLV,1))) { if (cb.settings.active1 == 'yes') {listAdd(divide(cb.settings.pulseLV,1),n +' has activated Pulse pattern on '+ cb.room_slug + '\'s '+ toy_N +'. '+it_they+' will stop in '+ getTime(divide(cb.settings.pulseLV,1)),4); } if (cb.settings.Auto1 == 'yes'){ cb.chatNotice(addName(Thankspes, n), "", '#FFFFFF', '#000000', 'bold'); } } else if (e.amount ==LvNo(cb.settings.quakeLV, 0) && spes == "yes" && !isBlank(divide(cb.settings.quakeLV,1))) { if (cb.settings.active1 == 'yes') {listAdd(divide(cb.settings.quakeLV,1),n +' has activated Earthquake pattern on '+ cb.room_slug + '\'s '+ toy_N +'. '+it_they+' will stop in '+ getTime(divide(cb.settingsquakeLV,1)),5); } if (cb.settings.Auto1 == 'yes'){ cb.chatNotice(addName(Thankspes, n), "", '#FFFFFF', '#000000', 'bold'); } } else if (e.amount ==LvNo(cb.settings.fireworksLV, 0) && spes == "yes" && !isBlank(divide(cb.settings.fireworksLV,1))) { if (cb.settings.active1 == 'yes') {listAdd(divide(cb.settings.fireworksLV,1),n +' has activated Fireworks pattern on '+ cb.room_slug + '\'s '+ toy_N +'. '+it_they+' will stop in '+ getTime(divide(cb.settings.fireworksLV,1)),6); } if (cb.settings.Auto1 == 'yes'){ cb.chatNotice(addName(Thankspes, n), "", '#FFFFFF', '#000000', 'bold'); } } else { for (var x = 1; x <= maxLevel; x++) { strAm = x == 1 ? cb.settings.levstart : parseInt(LvNo(cb.settings['lev' + (x-1)], 0))+1; if (e.amount >=strAm && e.amount<=LvNo(cb.settings['lev' + x], 0) && !isBlank(divide(cb.settings['lev' + x],1))) { tmr = (isNaN(divide(cb.settings['lev' + x],1)) == false) ? divide(cb.settings['lev' + x],1) : 1; if (cb.settings.active1 == 'yes') {listAdd(tmr, cb.room_slug + '\'s '+ toy_N +' '+is_are+' now reacting to '+ n + '\'s tip. '+it_they+' will stop in ' + getTime(tmr)); } if ((cb.settings.Auto1 == 'yes') && (cb.settings['ThanksLv' + x])) {cb.chatNotice(addName(cb.settings['ThanksLv' + x], n), "", '#FFFFFF', ThanksLvColor[x-1], 'bold'); } break; }} } }) init(); if (use_capt == "yes"){sendTitle("", "CaptchaBot is now active! ", "#000000", "#ffff00") ;}
© Copyright Chaturbate 2011- 2025. All Rights Reserved.