Bots Home
|
Create an App
Lian's Unbreakable Wheel
Author:
shyguy4567
Description
Source Code
Launch Bot
Current Users
Created by:
Shyguy4567
cb.settings_choices=[{name:'spin_cost',type:'int',minValue:1,label:'Costo de girar',defaultValue:38},{name:'announce_freq',type:'int',label:'Frecuencia de anuncio en minutos (0 deshabilitar)',defaultValue:10},{name:'prize_0',type:'str',minLength:1,label:'Premio 1',defaultValue:'kisses'},{name:'prize_1',type:'str',minLength:1,label:'Premio 2',defaultValue:'flash ass'},{name:'prize_2',type:'str',minLength:1,label:'Premio 3',defaultValue:'flash boobs'},{name:'prize_3',type:'str',minLength:1,label:'Premio 4',defaultValue:'flash feet'},{name:'prize_4',type:'str',minLength:0,label:'Premio 5',defaultValue:'flash pussy',required:false},{name:'prize_5',type:'str',minLength:0,label:'Premio 6',defaultValue:'10 spanks',required:false},{name:'prize_6',type:'str',minLength:0,label:'Premio 7',defaultValue:'10 squats',required:false},{name:'prize_7',type:'str',minLength:0,label:'Premio 8',defaultValue:'doggie without panties',required:false},{name:'prize_8',type:'str',minLength:0,label:'Premio 9',defaultValue:'silly faces',required:false},{name:'prize_9',type:'str',minLength:0,label:'Premio 10',defaultValue:'blowjob tease',required:false},{name:'prize_10',type:'str',minLength:0,label:'Premio 11',defaultValue:'twerk dance',required:false},{name:'prize_11',type:'str',minLength:0,label:'Premio 12',defaultValue:'',required:false},{name:'prize_12',type:'str',minLength:0,label:'Premio 13',defaultValue:'',required:false},{name:'prize_13',type:'str',minLength:0,label:'Premio 14',defaultValue:'',required:false},{name:'prize_14',type:'str',minLength:0,label:'Premio 15',defaultValue:'',required:false}];const app={name:'Lian\'s Unbreakable Wheel',version:'1.5.2',author:'shyguy4567'};const config={get colorsReg(){return['',this.colors.litePurple]},get colorsWin(){return['',this.colors.darkPurple]},get colorsDef(){return['','']},separator:' :heart2 ',colors:{darkPurple:'#400B86',litePurple:'#6A3AAB',black:'#000000',white:'#FFFFFF'}};const prizes=[];const phistory=[];const stats={};function rand(options){return options[Math.floor(Math.random()*options.length)]}function synonym(word){switch(word){case'awesome':return rand(['awesome','amazing','wonderful','magnificent','extraordinary','marvelous','great','incredible','terrific','fantastic','wondrous','excellent','glorious','beautiful','lovely']);default:return word;}}function init(){for(let k of Object.keys(cb.settings)){if(k.indexOf('prize_')===0){let v=cb.settings[k].trim().toLowerCase();if(v&&prizes.indexOf(v)===-1){prizes.push(v)}}}cb.sendNotice(`tip ${cb.settings.spin_cost}tks to spin Lian's wheel and win ${synonym('awesome')} prizes!`,'',...config.colorsReg,'bold');cb.sendNotice('type /prizes to see what you will win','',...config.colorsReg);if(cb.settings.announce_freq>0){cb.setTimeout(announce,cb.settings.announce_freq*60*1000)}}function announce(){if(typeof announce.espanol=='undefined'){announce.espanol=false}if(announce.espanol){cb.sendNotice(`echar ${cb.settings.spin_cost}tks para girar la rueda de Lian y ganar increĆble premios!`,'',...config.colorsReg,'bold');cb.sendNotice('escribe /prizes para ver lo que vas a ganar','',...config.colorsReg)}else{cb.sendNotice(`tip ${cb.settings.spin_cost}tks to spin Lian's wheel and win ${synonym('awesome')} prizes!`,'',...config.colorsReg,'bold');cb.sendNotice('type /prizes to see what you will win','',...config.colorsReg)}announce.espanol=!announce.espanol;cb.setTimeout(announce,cb.settings.announce_freq*60*1000)}cb.onTip(tip=>{if(stats[tip['from_user']]===undefined){stats[tip['from_user']]={spins:0,tips:0}}if(tip['amount']==cb.settings.spin_cost){let avail=prizes.filter(x=>phistory.indexOf(x)===-1);let prize=rand(avail);phistory.unshift(prize);phistory.splice(Math.floor(prizes.length/1.5));cb.sendNotice(`${tip['from_user']} spun Lian's wheel and won: ${prize.toUpperCase()}!!`,'',...config.colorsWin,'bold');stats[tip['from_user']]['spins']++}stats[tip['from_user']]['tips']+=tip['amount']});cb.onMessage(msg=>{if(msg['m'][0]=='/'){const cmd=msg['m'].split(' ');switch(cmd[0].toLowerCase()){case'/prizes':if(msg['user']==cb.room_slug||cmd[1]=='all'&&msg['is_mod']){msg['m']=cmd[0];cb.sendNotice(`tip ${cb.settings.spin_cost}tks to spin Lian's wheel and win one of these ${synonym('awesome')} prizes: ${prizes.join(config.separator)}`,'',...config.colorsReg,'bold')}else{msg['X-Spam']=true;cb.sendNotice(`you will win one of these ${synonym('awesome')} prizes: ${prizes.join(config.separator)}`,msg['user'],...config.colorsReg,'bold')}break;case'/stats':msg['X-Spam']=true;if(msg['user']==cb.room_slug||cmd[1]=='all'&&msg['is_mod']){let sorted=Object.keys(stats).sort((a,b)=>{return stats[b]['tips']-stats[a]['tips']});if(sorted.length){for(let user of sorted){cb.sendNotice(`${user}: spins=${stats[user]['spins']} / tips=${stats[user]['tips']}`,msg['user'],...config.colorsDef,msg['user']==user?'bold':'')}}else{cb.sendNotice('no tips yet',msg['user'],...config.colorsDef)}}else{let v=stats[msg['user']]||{spins:0,tips:0};cb.sendNotice(`spins: ${v['spins']} / tips: ${v['tips']}`,msg['user'],...config.colorsDef)}break;case'/version':msg['X-Spam']=true;cb.sendNotice(`${app.name} version ${app.version} by ${app.author}`,msg['user'],...config.colorsDef);break;}}return msg});cb.onEnter(user=>{if(user['user']!=cb.room_slug){cb.sendNotice(`Welcome ${user['user']}, tip ${cb.settings.spin_cost}tks to spin Lian's wheel and win ${synonym('awesome')} prizes!`,user['user'],...config.colorsReg,'bold');cb.sendNotice('type /prizes to see what you will win',user['user'],...config.colorsReg)}});init();
© Copyright Chaturbate 2011- 2026. All Rights Reserved.