Bots Home
|
Create an App
testingsillyfidget
Author:
sillyfidget33test
Description
Source Code
Launch Bot
Current Users
Created by:
Sillyfidget33test
// Room Fun Activities // by SillyFidget cb.settings_choices = [ //Toy Control Spin { name: 'control_title_line', type: 'choice', choice1: '-', defaultValue: '-', label: 'SPIN FOR TOY CONTROL SETTINGS ------------------------------------------------' }, { name: 'spinActive', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Do you want Spin for Toy Control active during this show?" }, //Wheel of Torture Choices { name: 'wheel_title_line', type: 'choice', choice1: '-', defaultValue: '-', label: 'WHEEL OF TORTURE SETTINGS ------------------------------------------------' }, { name: 'wheelActive', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Do you want the Wheel of Torture active during this show?" }, { name: 'cost_per_spin', type: 'int', minValue: 1, maxValue: 999, defaultValue: 25, label: 'Cost Per Spin Of The Wheel (1-999): ' }, { name: 'pos1', type: 'str', minLength: 1, maxLength: 255, label: 'Torture #1 ' }, { name: 'pos2', type: 'str', minLength: 1, maxLength: 255, label: 'Torture #2 ' }, { name: 'pos3', type: 'str', minLength: 1, maxLength: 255, label: 'Torture #3 ' }, { name: 'pos4', type: 'str', minLength: 0, maxLength: 255, label: 'Torture #4 ', required: false }, { name: 'pos5', type: 'str', minLength: 0, maxLength: 255, label: 'Torture #5 ', required: false }, { name: 'pos6', type: 'str', minLength: 0, maxLength: 255, label: 'Torture #6 ', required: false }, { name: 'pos7', type: 'str', minLength: 0, maxLength: 255, label: 'Torture #7 ', required: false }, { name: 'pos8', type: 'str', minLength: 0, maxLength: 255, label: 'Torture #8 ', required: false }, { name: 'pos9', type: 'str', minLength: 0, maxLength: 255, label: 'Torture #9 ', required: false }, { name: 'pos10', type: 'str', minLength: 0, maxLength: 255, label: 'Torture #10 ', required: false }, //Rando Roulette Settings { name: 'randoroulette_title_line', type: 'choice', choice1: '-', defaultValue: '-', label: 'RANDO ROULETTE SETTINGS ------------------------------------------------' }, { name: 'randoActive', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Do you want Rando Roulette active during this show?" }, { name: 'rando1', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ' }, { name: 'rando2', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ' }, { name: 'rando3', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ' }, { name: 'rando4', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ' }, { name: 'rando5', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ' }, { name: 'rando6', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando7', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando8', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando9', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando10', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando11', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando12', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando13', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando14', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando15', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando16', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando17', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando18', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando19', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando20', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando21', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando22', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando23', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando24', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando25', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando26', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando27', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando28', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando29', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, { name: 'rando30', type: 'str', minLength: 0, maxLength: 255, label: 'Rando Roulette Prizes ', required: false }, //Welcome Message { name: 'welcomemessage_title_line', type: 'choice', choice1: '-', defaultValue: '-', label: 'WELCOME MESSAGE SETTINGS ------------------------------------------------' }, { name: 'welcomeMessage', type: 'str', minLength: 0, maxLength: 10000, label: 'Welcome Message' }, //Rotating Notifiers { name: 'rotatingnotifiers_title_line', type: 'choice', choice1: '-', defaultValue: '-', label: 'ROTATING NOTIFIES SETTINGS ------------------------------------------------' }, { name: 'msg1', type: 'str', required: true, label: 'Message 1' }, { name: 'msg2', type: 'str', required: false, label: 'Message 2' }, { name: 'msg3', type: 'str', required: false, label: 'Message 3' }, { name: 'msg4', type: 'str', required: false, label: 'Message 4' }, { name: 'msg5', type: 'str', required: false, label: 'Message 5' }, { name: 'msg6', type: 'str', required: false, label: 'Message 6' }, { name: 'msg7', type: 'str', required: false, label: 'Message 7' }, { name: 'msg8', type: 'str', required: false, label: 'Message 8' }, { name: 'msg9', type: 'str', required: false, label: 'Message 9' }, { name: 'msg10', type: 'str', required: false, label: 'Message 10' }, { name: 'msg11', type: 'str', required: false, label: 'Message 11' }, { name: 'msg12', type: 'str', required: false, label: 'Message 12' }, { name: 'msg13', type: 'str', required: false, label: 'Message 13' }, { name: 'msg14', type: 'str', required: false, label: 'Message 14' }, { name: 'msg15', type: 'str', required: false, label: 'Message 15' }, //Tippers Only Show { name: 'tippersonly_title_line', type: 'choice', choice1: '-', defaultValue: '-', label: 'TIPPERS ONLY SHOW SETTINGS ------------------------------------------------' }, { name: 'min_start_tokens', type: 'int', minValue: 1, maxValue: 1000, defaultValue: 100, label: "Cost to Join Before Show Starts" }, { name: 'min_join_tokens', type: 'int', minValue: 0, maxValue: 1000, defaultValue: 100, label: "Cost to Join During Show. Set to 0 to Disable Joining During Show." }, { name: 'hide_message', label: 'Cam Message', type: 'str', minLength: 1, maxLength: 256, defaultValue: 'Tippers Only Show in Progress! Tip ANY AMOUNT to join in the fun!' }, { name: 'free_access', label: 'Users who get free access to the show: ', type: 'str', minLength: 1, maxLength: 256, required: false }, //Lovense Levels Settings { name: 'lovense_title_line', type: 'choice', choice1: '-', defaultValue: '-', label: 'LOVENSE LEVEL SETTINGS ------------------------------------------------' }, { name: "banner_emote", label: "Add emote or text at top of list", type: "str", minLength: 1, maxLength: 255, defaultValue: ":lovense130", required: true, }, {name:'Level1', type:'str', minLength:1, maxLength:255, defaultValue:'Tip 1-14 LOW :lushsm 1 second', label:'Lush Level #1', required:true}, {name:'Level2', type:'str', minLength:1, maxLength:255, defaultValue:'Tip 15-49 MEDIUM :lushsm 3 seconds', label:'Lush Level #2', required:false}, {name:'Level3', type:'str', minLength:1, maxLength:255, defaultValue:'Tip 50-99 HIGH :lushsm 5 seconds', label:'Lush Level #3', required:false}, {name:'Level4', type:'str', minLength:1, maxLength:255, defaultValue:'Tip 100-499 HIGH :lushsm 20 seconds', label:'Lush Level #4', required:false}, {name:'Level5', type:'str', minLength:1, maxLength:255, defaultValue:'Tip 500-999 ULTRA HIGH :lushsm 45 seconds', label:'Lush Level #5', required:false}, {name:'Level6', type:'str', minLength:1, maxLength:255, defaultValue:'Tip 1000+ ULTRA HIGH :lushsm 100 seconds', label:'Lush Level #6', required:false}, {name:'Level7', type:'str', minLength:1, maxLength:255, label:'Lush Level #7', required:false}, {name:'Level8', type:'str', minLength:1, maxLength:255, label:'Lush Level #8', required:false}, {name:'Level9', type:'str', minLength:1, maxLength:255, label:'Lush Level #9', required:false}, {name:'SpecialCommand1', type:'str', minLength:1, maxLength:255, defaultValue:':lslvl1 RANDOM Level Response :lushsm 77 Tokens', label:'Lush Special Command', required:false}, {name:'SpecialCommand2', type:'str', minLength:1, maxLength:255, label:'Lush Special Command\n \n(more emotes in description)', required:false}, {name:'SpecialCommand3', type:'str', minLength:1, maxLength:255, label:'Lush Special Command', required:false}, {name:'SpecialCommand4', type:'str', minLength:1, maxLength:255, label:'Lush Special Command', required:false}, {name:'SpecialCommand5', type:'str', minLength:1, maxLength:255, label:'Lush Special Command', required:false}, {name:'SpecialCommand6', type:'str', minLength:1, maxLength:255, label:'Lush Special Command', required:false}, {name:'advertisement_wait_time', type:"int", minValue : 1, maxValue : 60, defaultValue : 5, label:'Lush Level Notification Time (in minutes 1-60)', } ]; //Tip Log variables var userNameLog = new Array(); //Wheel of Torture variables var total_tipped = 0; var reminderCount = 100; var multiMessage = 'Disabled!'; var temp = new Array(cb.settings.pos1, cb.settings.pos2, cb.settings.pos3, cb.settings.pos4, cb.settings.pos5, cb.settings.pos6, cb.settings.pos7, cb.settings.pos8, cb.settings.pos9, cb.settings.pos10); var rewards = new Array(); for (var i = 0; i < temp.length; i++) { if (temp[i] != '') { rewards.push(temp[i]); } } //ToyControl variables var toyTemp = new Array('Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Sorry Charlie! Try again!', 'Winner!! WOOOOOOOOOOOO!!!!', 'Winner!! WOOOOOOOOOOOO!!!!', 'Winner!! WOOOOOOOOOOOO!!!!'); var toyRewards = new Array(); for (var t = 0; t < toyTemp.length; t++) { if (toyTemp[t] != '') { toyRewards.push(toyTemp[t]); } } //RandoRoulette variables var randoTemp = new Array(cb.settings.rando1, cb.settings.rando2, cb.settings.rando3, cb.settings.rando4, cb.settings.rando5, cb.settings.rando6, cb.settings.rando7, cb.settings.rando8, cb.settings.rando9, cb.settings.rando10, cb.settings.rando11, cb.settings.rando12, cb.settings.rando13, cb.settings.rando14, cb.settings.rando15, cb.settings.rando16, cb.settings.rando17, cb.settings.rando18, cb.settings.rando19, cb.settings.rando20, cb.settings.rando21, cb.settings.rando22, cb.settings.rando23, cb.settings.rando24, cb.settings.rando25, cb.settings.rando26, cb.settings.rando27, cb.settings.rando28, cb.settings.rando29, cb.settings.rando30); var randoRewards = new Array(); for (var r = 0; r < randoTemp.length; r++) { if (randoTemp[r] != '') { randoRewards.push(randoTemp[r]); } } //Rotating Notifier variables var i = 0; var MAXITEMS = 15; //Tippers Only Show Variables var freeAccess = String(cb.settings.free_access).split(','); for (var x = 0; x < freeAccess.length; x++) { cb.limitCam_addUsers(freeAccess[x]); } //Tip Emoticon variables var tip50 = new Array(); var tip100 = new Array(); var tip500 = new Array(); var tip1000 = new Array(); cb.onTip(function(tip) { var tipJar = tip['amount']; var tipper = tip['from_user']; //Spin Wheel of Torture if (tipJar == cb.settings.cost_per_spin && cb.settings.wheelActive == "yes") { var randomnumber = Math.floor(Math.random() * (rewards.length)); cb.setTimeout(function() { cb.chatNotice('******************************\nSpinning The Wheel of Torture!\n' + tipper + '\nThe wheel has stopped on:\n' + rewards[randomnumber] + '\n******************************', '', '#ff4444', '#ffffff', 'bold'); }, 500); } //Spin for Toy Control else if (tipJar == 44 && cb.settings.spinActive == "yes") { var randomnumber = Math.floor(Math.random() * (toyRewards.length)); cb.setTimeout(function() { cb.chatNotice('**********************************\nSpinning For 5-Minute Toy Control!\n' + tipper + '\n' + toyRewards[randomnumber] + '\n**********************************', '', '#191970', '#ffffff', 'bold'); }, 500); } //Spin Rando Roulette else if (tipJar == 26 && cb.settings.randoActive == "yes") { var randomnumber = Math.floor(Math.random() * (randoRewards.length)); cb.setTimeout(function() { cb.chatNotice('***********************\nPlaying Rando Roulette!\n' + tipper + ' landed on:\n' + randoRewards[randomnumber] + '\n***********************', '', '#FC81F5', '#000000', 'bold'); }, 500); } //Make It Rain else if (tipJar >= 500) { cb.setTimeout(function() { cb.chatNotice('$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n$$$$$$$$$$$$$$$$$$$$$$$$$$$$$\n$$$ ' + tipper + ' made it rain!! $$$', '', '#28d031', '#f1ff0d', 'bold'); }, 500); } //Tip over 25 tell them to rate if (tipJar >= 25) { cb.sendNotice('Hey ' + tipper + '! ' + ' Don\'t forget to rate me with a thumbs up! :rate', tipper, '#000000', '#f1ff0d', 'bold'); } //Tippers Only Show if (!cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), tip['from_user'])) { if (!cb.limitCam_isRunning() && parseInt(tip['amount']) >= cb.settings.min_start_tokens) { cb.limitCam_addUsers([tip['from_user']]); } if (cb.limitCam_isRunning() && parseInt(tip['amount']) >= cb.settings.min_join_tokens && cb.settings.min_join_tokens > 0) { output('Added ' + tip['from_user'] + ' to the Tippers Only show!'); cb.limitCam_addUsers([tip['from_user']]); } } //Add to Tip Emoticons lists if (tipJar > 49 && tipJar < 100) { tip50.push(tipper); } if (tipJar > 99 && tipJar < 500) { tip100.push(tipper); } if (tipJar > 499 && tipJar < 1000) { tip500.push(tipper); } if (tipJar > 999) { tip1000.push(tipper); } }); cb.onMessage(function(msg) { var message = msg['m']; var user = msg['user']; var username = ""; //Check for general inquiries if(message.includes('pm') || message.includes('flash') || message.includes('c2c') || message.includes('pvt') || message.includes('private') || message.includes('PVT')|| message.includes('Pvt')|| message.includes('PM')|| message.includes('C2C')){ cb.chatNotice(user + ', please note that I do not do PMs, PVT, C2C or Requests. Anything you can tip for is on the screen or in my profile. Thanks!', '', '#FC81F5', '#000000', 'bold'); } //display list of prizes for Wheel of Torture if (msg['m'] == '/torture') { var tortureNotice = '===============================\n=====WHEEL OF TORTURE PRIZE LIST=====\n==============================='; for (var x = 0; x < rewards.length; x++) { tortureNotice += '\n' + '\u2666\u2666\u2666 ' + rewards[x]; } //hides message from chat msg['X-Spam'] = true; cb.setTimeout(function() { cb.chatNotice(tortureNotice, user, '#ff4444', '#ffffff', 'bold'); }, 500); } //display list of prizes for Rando Roulette if (msg['m'] == '/rando') { var randoNotice = '===============================\n======RANDO ROULETTE PRIZE LIST======\n==============================='; for (var x = 0; x < randoRewards.length; x++) { randoNotice += '\n' + '\u2666\u2666\u2666 ' + randoRewards[x]; } //hides message from chat msg['X-Spam'] = true; cb.setTimeout(function() { cb.chatNotice(randoNotice, user, '#FC81F5', '#000000', 'bold'); }, 500); } //add tip emoticons for (var x = 0; x < tip50.length; x++) { if (tip50[x] == user) { msg['m'] = ':sfheart3 ' + msg['m']; } } for (var x = 0; x < tip100.length; x++) { if (tip100[x] == user) { msg['m'] = ':sfkiss3 ' + msg['m']; } } for (var x = 0; x < tip500.length; x++) { if (tip500[x] == user) { msg['m'] = ':sfglasses2 ' + msg['m']; } } for (var x = 0; x < tip1000.length; x++) { if (tip1000[x] == user) { msg['m'] = ':tophattinyy ' + msg['m']; } } //Tippers Only Show if (cb.room_slug === user && message == '/start' && !cb.limitCam_isRunning()) { output(cb.room_slug + ' has started the show!'); cb.limitCam_start(cb.settings.hide_message); } if (cb.room_slug === user && message == '/stop' && cb.limitCam_isRunning()) { output(cb.room_slug + ' has stopped the show!'); cb.limitCam_stop(); } if (cb.room_slug === user && message.substring(0, 7) == '/remove' && cb.limitCam_allUsersWithAccess().length > 0 && cb.limitCam_isRunning()) { username = message.substring(8, message.length); if (cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), username)) { cb.limitCam_removeUsers([username]); output(cb.room_slug + ' has removed ' + username + ' from the show!'); } } if (cb.room_slug === user && message.substring(0, 6) == '/check') { username = message.substring(7, message.length); if (cb.limitCam_userHasAccess(username)) { output(username + " is in the show!"); } else { output(username + " is not in the show!"); } } if (cb.room_slug === user && message === '/list') { var userlist = cb.limitCam_allUsersWithAccess(); if (userlist.length > 0) { output("" + userlist.length + (userlist.length > 1 ? " users" : " user") + " in show: " + cbjs.arrayJoin(userlist, ", ")); } else { output("No users in show."); } } if (message[0] == '/') { msg['X-Spam'] = true; } return msg; }); //Display message to user upon entering room cb.onEnter(function(user) { //Display Welcome Message cb.sendNotice('Welcome ' + user['user'] + '! ' + cb.settings['welcomeMessage'], user['user'], '#FFE7F5', '#ff039b', 'bold'); //Display Lovense Levels displayLevels(user); //Welcome Fan Club Member if (user['in_fanclub']) { cb.sendNotice('Hi, my name is ' + user['user'] + ' and I am not wearing any pants. No Pants Annonymous member ' + user['user'] + ' has entered the room! :rockon','', '#025B03', '#77FC79', 'bold'); } }); //Tippers Only Show function function output(message) { cb.chatNotice(message, '', '#DCDCDC', '#000000', 'bold'); } //Rotating Notifier function function chatAd() { var msg; while (cb.settings['msg' + (i + 1)] == 0) { //skip empty messages i++; i %= MAXITEMS; } msg = cb.settings['msg' + (i + 1)]; i++; i %= MAXITEMS; cb.sendNotice(msg, '', '#FFE7F5', '#ff039b', 'bold'); cb.setTimeout(chatAd, (3 * 60000)); } cb.setTimeout(chatAd, (3 * 60000)); //Find User Position in Array Function function findUserPosition(userName) { var x = 0; while (x < userNameLog.length) { if (userNameLog[x] == userName) { return x; } else { x++; } } } //LOVENSE LEVELS FUNCTION function displayLevels(user) { var username = ''; var banner = cb.settings.banner_emote; if(user) username = user['user']; var notices = banner; notices += '\n===== My Lovense Lush Levels ====='; for(var i=1; i<=10;i++) { if(cb.settings['Level' + i]) notices += '\n:llvlc'+ i +' ' + cb.settings['Level'+i]; } if (cb.settings.SpecialCommand1 !== '') notices += '\n====== Special Commands ======='; for(var j=1; j<=10;j++) { if(cb.settings['SpecialCommand' + j]) notices += '\n' + cb.settings['SpecialCommand'+j]; } cb.sendNotice(notices, username, '#FFF0DE', '#9C2868', 'normal'); if(!user || user == null) cb.setTimeout(displayLevels, cb.settings.advertisement_wait_time * 60000); }
© Copyright Chaturbate 2011- 2025. All Rights Reserved.