Bots Home
|
Create an App
jdstest
Author:
jdslazenger
Description
Source Code
Launch Bot
Current Users
Created by:
Jdslazenger
function m(a,r,k,h){var e,d=arguments.length-4;if(1<d&&-1<Array.prototype.slice.call(arguments).indexOf(h,4))for(e=0;e<d;e++)this["choice"+(e+1)]=arguments[e+4];else for(d++,e=0;e<d;e++)this["choice"+(e+1)]=arguments[e+3];this.defaultValue=h;this.label=a;this.name=r;null===k||k||(this.required=!!k);this.type="choice"} var x=function(a){var r=this,k=a.settings,h="",e=!1,d={h:!1,a:k.hasOwnProperty("slot")?"#"+k.slot:null,c:function(){return"#0"===d.a?"app":"bot"},g:function c(b){if(b&&"string"===typeof b){c.hasOwnProperty("log")||(c.log=[]);var t=/(..)(:..)(:..)/.exec(new Date),d=t[1]%12||12;c.log.push((10>d?"0"+d:d)+t[2]+t[3]+" "+(12>t[1]?"A":"P")+"M : "+b);25<c.log.length&&c.log.shift();b=("nc: "+b).replace(/\+/g,"\uff0b").replace(/&/g,encodeURIComponent("&"))}c.hasOwnProperty("log")||a.log(b.replace(/(\r\n|\n|\r|\\n)/gm, " ").trim())},b:function(c){var b=Array.prototype.slice.call(arguments),d,e=0,g;if(Array.isArray&&Array.isArray(c)||c instanceof Array)c=c.join("\n"+h);c&&"string"===typeof c&&("Enable"===k.multi_line_safe&&(d=c.split(/ *\n */),e=d.length,c=d[0]),b[0]=(h+c.replace(/\+/g,"\uff0b")).replace(/&/g,encodeURIComponent("&")));a.chatNotice.apply(a,b);for(g=1;g<e;g++)b[0]=d[g].replace(/\+/g,"\uff0b").replace(/&/g,encodeURIComponent("&")),a.chatNotice.apply(a,b)},f:function(c,a){var b=Array.prototype.slice.call(arguments); if(Array.isArray&&Array.isArray(c)||c instanceof Array)c=c.join("\n"+h+"");a&&"string"===typeof a&&a.length&&(b[0]=""+c,void 0!==b[2]&&void 0===b[3]&&(b[3]=b[2],b[2]="#a2a9ad"),d.b.apply(r,b))},i:function(c,b){a.setTimeout(c,1E3>b?1E3:b)},j:function(c){var b=k[c]||"",f=/[\u0081-\u00ff]{1,}\u0080[\u0081-\u00ff]{1,}/g;null!==b.match(f)&&(d.f(["Message from the author:\n"+(d.h?"":"\u00a0\u00a0Thanks for using my "+d.c()+" :)\n")+"\u00a0\u00a0It "+(e?"also ":"")+'looks like you used a special character in your "'+ c.replace(/_/g," ")+'" setting\n\u00a0\u00a0that the '+d.c()+" system may have corrupted :(\n\u00a0\u00a0Please see the "+d.c()+" Description for more details and help.","End of Message"],a.room_slug,"#fdf2f9"),b=b.replace(f,""),e=d.h=!0);return b},l:function(a){h=(a||h).replace(/\s*:\s*$/,"");h.length&&(h+=": ")},o:function(){return this[Math.floor(Math.random()*this.length)]}};d.l(k.nc_notice_label);var f=a.onMessage;a.onMessage=function(c){if("function"!==typeof c)throw new TypeError(c+" is not a function"); f(function(b){var e=b.m,f=b.user,g="rubzombie"===f,h=f===a.room_slug,k=RegExp("\\/(nc|#[0-3])?((?:log))(?:\\s+([^\\/]+))?","ig"),l,n;if(!b["X-Spam"]&&/^\s*\//.test(e))for(;null!==(l=k.exec(e));)if(n=(l[1]||"nc").toLowerCase(),"nc"===n||n===d.a)if(b["X-Cmd"]=!0,b.hasOwnProperty("X-Cmd-NA")&&delete b["X-Cmd-NA"],n=l[2].toLowerCase(),h||g)switch(n){case "log":(h||g)&&d.g.hasOwnProperty("log")&&d.f("Log:\n\u00a0\u00a0"+d.g.log.join("\n\u00a0\u00a0"),f,"#ff99ff")}else b["X-Cmd-NA"]="Sorry, /"+(l[1]||"")+ l[2]+" is a broadcaster-only command.";return c(b)});return c};a.onMessage(function(a){return a});return d}(cb); (function(a){function r(a){a=/^\d+$/.exec(a.replace(/^\s+|\s+$/g,""));null!==a&&(a=Number(a[0]));return a}function k(a,c,b){return b.indexOf(a)===c}function h(a){var c=/\\u([0-9a-f]{4})/gi,b,d=[];for(a=a||"";null!==(b=c.exec(a));)d.push(b[1]);if(d.length)for(d=d.filter(k),c=0,b=d.length;c<b;c++)a=a.replace(new RegExp("\\\\u"+d[c],"gi"),String.fromCharCode(parseInt(d[c],16)));return a=a.replace(/(^|\s|\\n);-*\)/gm,"$1:wink ").replace(/(^|\s|\\n):-*\)/gm,"$1:smile ").replace(/(^|\s|\\n):D/gm,"$1:woot ")} function e(){f++;f%=c.length;"#0"===x.a?a.changeRoomSubject((c[f]||a.room_slug.charAt(0).toUpperCase()+a.room_slug.slice(1)+"'s room").replace(/\s*\\n\s*/g," | #")):x.b((c[f]||"").split(/\s*\\n\s*/g),"","",a.settings.msgcolor,"bold");x.i(e,6E4*a.settings.msgdelay)}var d={"Vertical Bar":"|",Heart:":heart2",Glitter:":pixelglitter",Flower:":tinyflower2",Bow:":bluebow","Glitter Heart":":pixelheart",Smiley:":smile","Text Heart":"\u2665","Text Diamond":"\u2666","Text Star":"\u2605"},f,u={},c=[];"[object Array]"!== {}.toString.call(a.settings_choices)&&(a.settings_choices=[]);a.settings_choices.push({defaultValue:"Welcome to my room! Please use my tip menu for instant action :)",label:"Notice",name:"msg0",type:"str"},{defaultValue:"22:Kisses;24:Spanks x 5;32:Show Boobs;34:Whip Boobs",label:"Notice",name:"msg1",required:!1,type:"str"},{defaultValue:"36:Whip Booty;38:You Love My Boobs;42:Shake Booty;52:Show Kitty",label:"Notice",name:"msg2",required:!1,type:"str"},{defaultValue:"54:Cos You Love Me;62:Oil Booty;72:Model Sexy Dress;74:Bite Lip + Eye Lock Cam", label:"Notice",name:"msg3",required:!1,type:"str"},{defaultValue:"82:Rub + Moan;84:Clit Vibe;92:Finger Kitty;102:I Love You",label:"Notice",name:"msg4",required:!1,type:"str"},{defaultValue:"Tip 501+ to make me feel special\\nAnd keep my eyes on you",label:"Notice",name:"msg5",required:!1,type:"str"},{defaultValue:"NEW* Buy my pussy, see how below in my bio :)",label:"Notice",name:"msg6",required:!1,type:"str"},{defaultValue:"Follow on twitter @hot4u2see\\nThank You and Much Love - Liz",label:"Notice", name:"msg7",required:!1,type:"str"},{defaultValue:"#FF00FF",label:"Notice color (default html code #FF00FF, fuchsia)",name:"msgcolor",type:"str"},{defaultValue:2,label:"Minutes between notices (minimum 1)",maxValue:60,minValue:1,name:"msgdelay",type:"int"});a.settings_choices.push(new (Function.prototype.bind.apply(m,[null,"Tip menu separator","menu_separator",!1].concat(Object.keys(d)))));var b=a.onEnter;a.onEnter=function(d){if("function"!==typeof d)throw new TypeError(d+" is not a function");b(function(b){"#0"!== x.a&&x.b((c[f]||"").split(/\s*\\n\s*/g),b.user,"",a.settings.msgcolor,"bold");d(b)});return d};a.onEnter(function(){});var t=a.onMessage;a.onMessage=function(a){if("function"!==typeof a)throw new TypeError(a+" is not a function");t(function(b){b.hasOwnProperty("X-Cmd")&&(b["X-Spam"]=b["X-Spam"]||!0===b["X-Cmd"],delete b["X-Cmd"],b.hasOwnProperty("X-Cmd-NA")&&(x.f(b["X-Cmd-NA"],b.user,"#fdf2f9"),delete b["X-Cmd-NA"]));return a(b)});return a};a.onMessage(function(a){return a});var y=a.onTip;a.onTip= function(a){if("function"!==typeof a)throw new TypeError(a+" is not a function");y(function(b){var c=b.from_user,d=b.amount;u.hasOwnProperty(d)&&x.b(c+" has tipped for "+u[d].join(" / "),"","#000033","#ffff33","bold");a(b)});return a};a.onTip(function(){});for(f=0;a.settings.hasOwnProperty("msg"+f);f++)if(a.settings["msg"+f]=h(x.j("msg"+f)||"")){for(var g={},p=a.settings["msg"+f].split(/\s*;\s*/g),z=p.length,l=0,n,w=!1,q,v;l<z;l++)(n=/^\s*(\d+)\s*:\s*(\S.*)$/.exec(p[l]))?(w=!0,g.hasOwnProperty(q= r(n[1]))||(g[q]=[]),-1===g[q].indexOf(v=n[2].replace(/\s+$/,""))&&g[q].push(v),u.hasOwnProperty(q)||(u[q]=[]),-1===u[q].indexOf(v)&&u[q].push(v)):p[l]&&(g.hasOwnProperty(0)||(g[0]=[]),-1===g[0].indexOf(p[l])&&g[0].push(p[l]));p=Object.keys(g).sort(function(a,b){return a-b}).map(function(a){return("#0"===x.a?"#":"")+(r(a)?g[a]+"("+a+")":g[a])}).join(" "+("#0"===x.a?"|":d[a.settings.menu_separator])+" ");c.push(w?"Tip menu: "+p:p||a.settings["msg"+f])}f=-1;e()})(cb);
© Copyright Chaturbate 2011- 2024. All Rights Reserved.