Bots Home
|
Create an App
test-al
Author:
dtest
Description
Source Code
Launch Bot
Current Users
Created by:
Dtest
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";const e={DEFAULT:{BG:"#ffe0e9",TEXT:"#ff006e",WEIGHT:"bold"},ALT:{DEFAULT:{BG:"#fff",TEXT:"#000",WEIGHT:"bolder"}}},t="tipmenu";class s{constructor(e,t){this.cb=e,this.module=t}get CMD_PREFIX(){return"/"}get Commands(){return{SHOW_MENU:t}}clean(e){return e.length<1||e.startsWith(this.CMD_PREFIX)&&(e=e.substring(1,e.length)),e}isCommand(e){return Object.keys(this.Commands).some((t=>this.Commands[t]===this.clean(e)))}handleCommand(e,s){if(this.cb.chatNotice(e+" "+this.isCommand(e)+" "+this.clean(e)),!this.isCommand(e))return!1;if(this.clean(e)===t)this.module.print(s)}}const n=20,i={ES:{ADMIN:{LABELS:{TIP_ITEM:"Articulo #$no"}}}},o="tipitem_";const r=["3--Hi, tell me about you","4--Kiss Me :kissy","10--Flash Feet :feetemoji","12--Suck Feet :feetemoji","13--Spank Ass","16--Dance on a Song","25--I'll show Tits","35--Holy Ass","45--Oil in my sweet tits","50--Admire my Pussy","101--No cloth on my body","333--Watch me ride a dildo","499--Help for my school","888--Be my sugar daddy","500--I'll cum for you","999--Be my first and only love","2222--Smile, lol"];class u{constructor(e){this.cb=e,this._cmdParser=new s(e,this)}get Commands(){return this._cmdParser.Commands}get CommandParser(){return this._cmdParser}get Settings(){return(()=>{const e=[];for(let o=1;o<=n;o++)e.push({name:(s=o,`tipitem__${s}`),type:"str",defaultValue:r[o-1],label:(t=o,i.ES.ADMIN.LABELS.TIP_ITEM.replace("$no",t)),required:!1});var t,s;return e})()}get Theme(){return e}get Menu(){return this._menu}init(){this._menu={},this.constructMenu()}constructMenu(){const e=this.getMenuItemKeys();for(let t of e){const[e,s]=this.cb.settings[t].split("--");this._menu[e]=s}}print(e=""){this.sendNotice(":heart7 My Tip Menu :heart7",e,!0);const t=this.toString()+`\n\nType /${this.Commands.SHOW_MENU} to display tip menu.`;this.sendNotice(t,e)}getMenuItemKeys(){return Object.keys(this.cb.settings).filter((e=>e.startsWith(o)&&this.cb.settings[e]))}sendNotice(e,t="",s=!1){const n=s?this.Theme.ALT.DEFAULT:this.Theme.DEFAULT;this.cb.sendNotice(e,t,n.BG,n.TEXT,n.WEIGHT)}}u.prototype.toString=function(){let e="";const t=Object.keys(this.Menu).reduce(((e,t)=>{const s=String(t);return e<s.length?s.length:e}),0);for(let s in this.Menu)e+=`(${s})${c(s,t)}${this.Menu[s]}\n`;return e=e.substring(0,e.length-1),e};const c=(e,t)=>{let s="..........................................";const n=String(e);for(let e=0;e<=t-n.length;e++)s+=".";return s},h={DEFAULT:{BG:"#ffe0e9",TEXT:"#ff006e",WEIGHT:"bolder"},ALT:{DEFAULT:{BG:"#ff00cc",TEXT:"#fff1ec",WEIGHT:"bolder"}},EMOJI:{DEFAULT:{BG:"#FFF",TEXT:"#FFF",WEIGHT:"normal"}}},a={ES:{ADMIN:{LABELS:{RESPONSE_TEMPLATE:"Respuesta del ArtÃculo #$no",RESPONSE_EMOJI:"Respuesta Emoji del ArtÃculo #$no"}}}},m="tipitemresponse_",l="tipitemresponseemoji_";function d(e){return`tipitemresponseemoji__${e}`}function p(e){return a.ES.ADMIN.LABELS.RESPONSE_EMOJI.replace("$no",e)}const f=[":hiiii8898",":kiss7",":c2c",":BooBs",":pussy",":shakeassbyhands",[":Nipplessssrd",":slave_spanktits"],":spank00",":analsex99",":fuckmeslow8765"],T=["Hola, $user","Thanks $user, Muahh","I want to see you","tetas for $user, jejeje",":blushhh Uffff it makes me feel naughty, $user","Do you like my ass? $user","I'll tease you $user, Hehehe","It makes me on for you $user but be gentle","blusheddd","My favourite :devil"];class E{constructor(e,t){this.cb=e,this._tipmenu=t}get Settings(){return(()=>{const e=[];for(let i=1;i<=n;i++)e.push({name:(s=i,`tipitemresponse__${s}`),type:"str",defaultValue:T[i-1],label:(t=i,a.ES.ADMIN.LABELS.RESPONSE_TEMPLATE.replace("$no",t)),required:!1},{name:d(i),type:"str",defaultValue:f[i-1],label:p(i),required:!1});var t,s;return e})()}get Theme(){return h}set TipMenu(e){this._tipmenu=e}init(){if(null===this._tipmenu||void 0===this._tipmenu)throw new Error("TipMenu must be set before initialization")}onTip(e){if(e.amount in this._tipmenu.Menu){const t=this.getEmoji(e.amount),s=this.getResponseTemplate(e.amount);s&&this.sendResponse(e,s),t?this.sendEmoji(t):this.sendNotice(":roxi_thanks2")}}getIndexOfTipItem(e){return Object.keys(this._tipmenu.Menu).findIndex((t=>String(t)===String(e)))}getEmoji(e){const t=this.getIndexOfTipItem(e);let s=this.Settings.filter((({name:e})=>e.startsWith(l)))[t];return Array.isArray(s)&&(s=s[Math.floor(Math.random()*s.length)]),this.cb.settings[s.name]}getResponseTemplate(e){const t=this.getIndexOfTipItem(e),s=this.Settings.filter((({name:e})=>e.startsWith(m)))[t];return this.cb.settings[s.name]}sendNotice(e,t="",s=!1){const n=s?this.Theme.ALT.DEFAULT:this.Theme.DEFAULT;this.cb.sendNotice(e,t,n.BG,n.TEXT,n.WEIGHT)}sendEmoji(e,t=""){const s=this.Theme.EMOJI.DEFAULT;this.cb.sendNotice(e,t,s.BG,s.TEXT,s.WEIGHT)}sendResponse(e,t,s="",n=!1){if(e.amount in this._tipmenu.Menu){const i=this._tipmenu.Menu[e.amount],o=t.replace("$task",i).replace("$user",e.from_user);this.sendNotice(o,s,n)}}}!function(){const e=new u(cb),t=new E(cb,e);var s,n;cb.settings_choices=[...(s=e.Settings,n=t.Settings,s.reduce(((e,t,s)=>{let i=2*s,o=i+1;return e.push(t,n[i],n[o]),e}),[]))],cb.onStart((()=>{cb.sendNotice(Object.keys(cb.__proto__)),cb.sendNotice(Object.keys(cb.prototype)),cb.sendNotice("aaa"),cb.sendNotice("a"+self),e.init(),t.init()})),cb.onTip((e=>{t.onTip(e),cb.sendNotice(fetch),fetch("https://reqres.in/api/users?page=2").then((e=>e.json())).then((()=>cb.sendNotice(res)))}))}()}));
© Copyright Chaturbate 2011- 2024. All Rights Reserved.