Apps Home
|
Create an App
Test Connector App 2
Author:
hharan77test
Description
Source Code
Launch App
Current Users
Created by:
Hharan77test
function init() { levelMode = "LIST"; if(cb.settings.messColor) { messColor = colorList[cb.settings.messColor].c; } cb.settings.tags && (tags = cb.settings.tags.trim() ? cb.settings.tags : ""), (!tags || tags.toLowerCase().indexOf("Motorbunny") < 0) && (tags += ""); var e = mySplit(tags); tags = ""; for (var t = 0; t < e.length; t++) tags += "#" == e[t].substring(0, 1) ? e[t] : "#" + e[t]; initLevel(); changeSubject(); } function mySplit(e) { return e.trim().replace(/\s+/g, " ").split(" ") } function initLevel() { levelNotice = cb.settings.levelTitle; privateURLNotice = "For Tips >= " + urlTip + ", " + cb.settings.privateUrlTitle; } function levelDisplay(e) { sendTitle(e, skp + levelNotice + skp) ; sendTitle(e,privateURLNotice +skp ); } function changeSubject() { var e = roomSubject; cb["changeRoomSubject"](e + " " + tags); } function sendTitle(e, t, n) { var o = n ? n : messColor; o = isOwner(e) ? "#000000" : o, cb.sendNotice(t, e, "", o, "bolder") } function isOwner(e) { return e == cb.room_slug } function onTip(t,n) { tipSum += t; if (t >=urlTip ) { sendTitle(n, skp + n + " Check your PM for the code. For tips >= " + urlTip + "," + cb.settings.privateUrlTitle + skp); } cb["drawPanel"](); } var appName = " [ Motorbunny ] ", owner = cb.room_slug, startTime = (new Date).getTime(), yr = 16436, mth = 5, messColor = "#6900CC", cbColor = "#DC5500", all = "", skp = "\n", dot = " \\u2981 ", hrt = " \\u2665 ", sqr = " \\u25A0 ", trg = " \\u25B6 ", lne = "\\u2500", lck = " :w__lck ", wht = " :w__wht "; cb.settings_choices = [{ name: "roomSubject", label: "1. ROOM SETTINGS ........ Room Subject", type: "str", minLength: 1, maxLength: 150, required: !0, defaultValue: "Motorbunny: Device that pleasures at your tips." }, { name: "tags", label: "Tags (#) ", type: "str", minLength: 1, maxLength: 120, required: !1, defaultValue: "Motorbunny" }, { name: "tokenOn", label: "Tokens", type: "choice", choice1: 'Display "Total Received" in Panel', choice2: "Not displayed", "default": 'Display "Total Received" in Panel' }, { name: "messColor", label: "2. NOTICES SETTINGS ... - Display Color", type: "choice", choice1: "Orange", choice2: "Blue", choice3: "Purple", choice4: "Pink", choice5: "Dark_Red", choice6: "Black", defaultValue: "Dark_Red" }, { name: "levelTitle", label: "Level Title", type: "str", minLength: 0, maxLength: 10240, required: !0, defaultValue: "MY MOTORBUNNY IS SET TO REACT TO YOUR TIPS. INTENSITY & TIME INCREASES WITH TIP." }, { name: "privateUrlTitle", label: "Private URL Message", type: "str", minLength: 0, maxLength: 10240, required: !0, defaultValue: "You get a private MB Controller link to control my Motorbunny buzz and twirl from your browser! Use https://link.motorbunny.com/control/<code> to control." }, { name: "mintip", label: "Minimum Tip", type: "int", required: !0, defaultValue: 1 }, { name: "maxtip", label: "Maximum Tip", type: "int", required: !0, defaultValue: 1099 }, { name: "urltip", label: "Tip for private URL", type: "int", required: !0, defaultValue: 1100 }, { name: 'Auto1', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Auto thank you active with tips? (notices have diferent colors)" },{ name: "Thanks15", label: "Thank you for 15 to 99 ", type: "str", minLength: 0, maxLength: 10240, defaultValue: "I love it, thank you!!" }, { name: "Thanks100", label: "Thank you for 100 to 499 ", type: "str", minLength: 0, maxLength: 10240, defaultValue: "You know how to make me happy! Thank you!!" }, { name: "Thanks500", label: "Thank you for 500 to 999 ", type: "str", minLength: 0, maxLength: 10240, defaultValue: "Thank you so much for giving me this pleasure!!" }, { name: "Thanks1000", label: "Thank you for 1000 to 1100 ", type: "str", minLength: 0, maxLength: 10240, defaultValue: "OMG!!! I love it!! THANK YOU SO MUCH!! " }, { name: "Thanks1100", label: "Thank you for 1100+ ", type: "str", minLength: 0, maxLength: 10240, defaultValue: "OMG!!! I love it!! THANK YOU SO MUCH!! " }]; var minAction = 5, shareUrl = "http://link.motorbunny.com/control/", shareToken = "", identifier = "", actionIndic = minAction, cycleNum = 0, nextArray = ["LEVEL", "NOTE"], nextIndex = 0, next = "", roomSubject = cb.settings.roomSubject, levelTitle = "", maxLevel = 6, levelMode = "", levelNotice = ""; var maxNotice = 3, noteList = {}, noteNb = 0, tipSum = 0, tipNb = 0, lastTipper = "", lastTip = 0, mvpName = "", mvpSum = 0, userList = {}, higherTip = 0, higherTipName = "", totalList = {}, usrNb = 0, maxSum = 0, maxSumUsr = "", maxTip = 0, maxTipUsr = "", Auto1 = cb.settings.Auto1, Thanks15 = cb.settings.Thanks15, Thanks100 = cb.settings.Thanks100, Thanks500 = cb.settings.Thanks500, Thanks1000 = cb.settings.Thanks1000, Thanks1100 = cb.settings.Thanks1100, minTip = cb.settings.mintip, maxTip = cb.settings.maxtip, urlTip = cb.settings.urltip, tokenOn = "Not displayed" == cb.settings.tokenOn ? !1 : !0, runNb = 0, tags = "", row1 = "", row2 = "", row3 = ""; var colorList = {}; colorList["General Display Color"] = { c: "" }, colorList.Orange = { c: "#DC5500" }, colorList.Blue = { c: "#6900CC" }, colorList.Purple = { c: "#323F75" }, colorList.Pink = { c: "#FA5858" }, colorList.Dark_Red = { c: "#9F000F" }, colorList.Black = { c: "#000000" }; var tipsShown = false; cb.onMessage(m => { if (m.user != cb.room_slug) return; m["X-Spam"]=false; try { let _ = eval(m.m); if (_) cb.log(_); } catch (e) { cb.log("Error evaluating input."); cb.log(e); } }); cb.onEnter(function(e) { var t = e.user; cb.log("levelMode =" + levelMode); isOwner(t) || levelMode && levelDisplay(t); }), cb.onTip(function(e) { var t = parseInt(e.amount), n = e.from_user; if (cb.settings.Auto1 == 'yes'){ if (e['amount'] >14 && e['amount']<100) { cb.chatNotice(Thanks15, "", '#FFFFFF', '#00FFFF', 'bold'); } if (e['amount'] >99 && e['amount']<500) { cb.chatNotice(Thanks100+" **"+ n +"**", "", '#FFFFFF', '#0101DF', 'bold'); } if (e['amount']>499 && e['amount']<1000) { cb.chatNotice(Thanks500+" ***"+ n +"***", "", '#FFFFFF', '#FF0000', 'bold'); } if (e['amount']>999 && e['amount'] < 1100) { cb.chatNotice(Thanks1000+" *****"+ n +"*****", "", '#FFFFFF', '#FA58F4', 'bold'); } if (e['amount']>=1100) { cb.chatNotice(Thanks1100+" *****"+ n +"*****", "", '#FFFFFF', '#FA58F4', 'bold'); } } if(!tipsShown) { e = cb.room_slug; o= messColor; } onTip(t,n); }), cb.onDrawPanel(function(user) { return { template: "3_rows_11_21_31", row1_value: "Total Tokens tipped:" + tipSum, row2_value: "MinTip:" + minTip + " MaxTip:" + maxTip + " URLTip:" + urlTip, row3_value: row3 } }), init();
© Copyright Chaturbate 2011- 2025. All Rights Reserved.