Bots Home
|
Create an App
All in one
Author:
daddysbabyangel
Description
Source Code
Launch Bot
Current Users
Created by:
Daddysbabyangel
cb.onEnter(function(user) { cb.sendNotice('Welcome to my room, ' + user['user'] + '. Please :followtip99 thank you :pico', user['user'], '#CCF5EB', '', 'bold'); }); // Title: noGreys // Author: jb91 // Adapted from the CB demo code cb.settings_choices = [ {name: 'hide_message', label: 'Cam Message', type: 'str', minLength: 1, maxLength: 256, defaultValue: 'Only fanclub members or people with tips can enter!' }, ]; cb.onMessage(function (msg) { var message = msg['m']; var user = msg['user']; if (cb.room_slug === user && message == '/start' && !cb.limitCam_isRunning()) { output(cb.room_slug + ' has started the Colors-only 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 === '/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 (cb.room_slug === user && message === '/reset') { cb.limitCam_removeAllUsers(); cb.limitCam_addUsers([cb.room_slug]); output("User list cleared."); } if (message[0] == '/') { msg['X-Spam'] = true; } return msg; }); cb.onEnter(function (user){ if (!cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), user['user'] )) { if(user['in_fanclub'] == true || user['has_tokens'] == true) { cb.limitCam_addUsers([user['user']]); cb.log(user['user'] + ' was added!'); cb.log(cb.limitCam_userHasAccess(user['user'])); } } else { } }); function output(message) { cb.chatNotice(message); } // modifed from the WomeFinder script by by s74 var wc_count = 0; var wc_total = 0; var wc_total_other = 0; var wc_names=new Array() var wc_names_other=new Array() cb.settings_choices = []; cb.onEnter(function(user) { if (user['gender'] == 'f' || user['gender'] == 'c') { wc_count++ if(wc_names.indexOf(user['user']) == -1) { wc_total++ wc_names.push(user['user']) } cb.chatNotice(wc_count+'. '+user['gender']+' '+user['user'] + ' entered!', cb.room_slug, '#F99'); } else if(wc_names_other.indexOf(user['user']) == -1) { wc_total_other++ wc_names_other.push(user['user']) } }); cb.onLeave(function(user) { if (user['gender'] == 'f' || user['gender'] == 'c') { cb.chatNotice(wc_count+'. '+user['gender']+' '+user['user'] + ' left!', cb.room_slug, '#999'); wc_count-- } }); function generate_link_page(old) { // <script>var cb</script> var as=prompt().split(' ').sort() var asOld=old.split(' ') document.write('<table width="100%"><tr><td align="right"><div align="left" style="display:inline-block">') for (var i = 0; i < as.length; i++) { if(asOld.indexOf(as[i]) == -1) document.write('<a href="http://chaturbate.com/'+as[i]+'/" target="Data">'+as[i]+'</a><br>') } document.write('</div></table>') } // JacketAdmin was developed by JacketTrap // I have no real industry experience with JavaScript as I'm not a webdesigner so // there may be some problems with this code-wise and it may just ~not work~ // every now and then, my solution to this just restart the app var broadcaster = cb.room_slug; var command; var canChat = [broadcaster]; var canWatch = [broadcaster]; var userTips = []; var allUsers = []; var totalKing = ["no-one", 0]; var singleKing = ["no-one", 0]; var roomGoal; var roomGoalLeft; var roomMode; var row1L = "Mode:"; var row1V = "No Mode Selected"; var row2L = "App Author:"; var row2V = "JacketTrap"; var row3L = "Special Thanks to:"; var row3V = "#r.gonewildcd"; var roomSubject; cb.settings_choices = [ {name:'block_grey_chat', type:'choice', choice1:"No", choice2:"Yes", defaultValue:"No", label: "Block greys from chatting?"}, {name:'block_grey_viewing', type:'choice', choice1:"No", choice2:"Yes", defaultValue:"No", label: "Block greys from viewing?"}, {name:'welcome_message', type: "str", minLength: 1, maxLength: 255, defaultValue:"Welcome to my room!", label: "Message this to people when they join the room"} ]; var msInSec = 1000; var secInMin = msInSec*60; if (cb.settings.block_grey_viewing == "Yes" && !cb.limitCam_isRunning()) { cb.limitCam_start("This model does not allow grey users to see their cam, Buy some tokens and fap!", canWatch) } else if (cb.settings.block_grey_viewing == "No" && !cb.limitCam_isRunning()) { cb.limitCam_stop() } function hasRights(user) { if (user['user'] == broadcaster || user['is_mod'] == true) { return true; } } function repeatMessage(message, seconds) { cb.chatNotice(message); cb.setTimeout(repeatMessage, seconds); } cb.onEnter(function(user) { cb.chatNotice(cb.settings.welcome_message, user['user']); if (!cbjs.arrayContains(canChat, user['user']) && !cbjs.arrayContains(canWatch, user['user']) && user['has_tokens']) { canChat.push(user['user']); canWatch.push(user['user']); if (!cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), user['user'])) { cb.limitCam_addUsers([user['user']]); } } if (!cbjs.arrayContains(allUsers, user['user'])) { allUsers.push(user['user']); allUsers[user['user']] = 0; } }); cb.onTip(function (tip) { if (!cbjs.arrayContains(allUsers, tip['from_user'])) { allUsers.push(tip['from_user']); allUsers[tip['from_user']] = 0; } if (!cbjs.arrayContains(canChat, tip['from_user']) && !cbjs.arrayContains(canWatch, tip['from_user'])) { canChat.push(tip['from_user']); canWatch.push(tip['from_user']); if (!cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), tip['from_user'])) { cb.limitCam_addUsers([tip['from_user']]); } } if (roomMode == "Goal King") { allUsers[tip['from_user']] = allUsers[tip['from_user']] + tip['amount']; if (tip['amount'] > singleKing[1]) { cb.sendNotice(tip['from_user'] + " beat the last Single Tip King!"); singleKing = [tip['from_user'], tip['amount']]; row2V = (tip['from_user'] + " (" + String(tip['amount']) + ")"); } if (allUsers[tip['from_user']] > totalKing[1]) { if (tip['from_user'] != totalKing[0]) { cb.sendNotice(tip['from_user'] + " is the new Total Tip King!"); } totalKing = [tip['from_user'], allUsers[tip['from_user']]]; row3V = (tip['from_user'] + " (" + String(totalKing[1]) + ")"); } roomGoalLeft = roomGoalLeft - tip['amount']; if (roomGoalLeft <= 0) { cb.sendNotice("Goal was reached thanks to " + tip['from_user'] + "! Restarting goal!"); roomGoalLeft = roomGoal; } cb.changeRoomSubject(roomSubject + " [" + roomGoalLeft + " to go!]"); cb.drawPanel(); } }); cb.onDrawPanel(function(user) { return { 'template': '3_rows_of_labels', 'row1_label': row1L, 'row1_value': row1V, 'row2_label': row2L, 'row2_value': row2V, 'row3_label': row3L, 'row3_value': row3V }; }); cb.onMessage(function (msg) { if (hasRights(msg)) { if (msg['m'].charAt(0) == "/") { var command = msg['m'].split(" "); if (command[0] == "/subject") { command.splice(0,1); cb.changeRoomSubject(command.join(" ")); } else if (command[0] == "/add") { canChat.push(command[1]); canWatch.push(command[1]); if (!cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), command[1])) { cb.limitCam_addUsers([command[1]]); } } else if (command[0] == "/goalking") { roomGoal = Number(command[1]); roomGoalLeft = roomGoal; command.splice(0,2); roomSubject = command.join(" ") cb.changeRoomSubject(roomSubject + " [" + roomGoalLeft + " to go!]"); row1V = "Goal King"; if (roomMode != "Goal King") { row2L = "Highest Single Tip: "; row2V = "No-one :C"; row3L = "Highest Total Tips: "; row3V = "No-one :C"; } roomMode = "Goal King"; cb.drawPanel() } } } if (msg['gender'] == "m") { msg['background'] = '#CCFFFF'; } else if(msg['gender'] == "f") { msg['background'] = '#FFE4E1'; } else if(msg['gender'] == "s") { msg['background'] = '#E6E6FA'; } else if(msg['gender'] == "c") { msg['background'] = '#FFE4C4'; } //cb.chatNotice(cb.settings.block_grey_chat) if (!cbjs.arrayContains(canChat, msg['user']) && cb.settings.block_grey_chat == "Yes") { if (msg['has_tokens'] == false) { cb.chatNotice("This models room currently does not allow grey users to chat, Buy some tokens and chat!", msg['user']); msg['X-Spam'] = true; } else { canChat.push(msg['user']); canWatch.push(msg['user']); if (!cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), msg['user'])) { cb.limitCam_addUsers([msg['user']]); } } } return msg; }); /** * Bot: Holly Rules * Version: 1.12 * Author: hollycuteee * Date: 01.18.14 */ cb.settings_choices = [ {name:'rule1', type:'str', minLength:1, maxLength:255, label:'Rule #1'}, {name:'rule2', type:'str', minLength:1, maxLength:255, label:'Rule #2 (optional)', required:false}, {name:'rule3', type:'str', minLength:1, maxLength:255, label:'Rule #3 (optional)', required:false}, {name:'rule4', type:'str', minLength:1, maxLength:255, label:'Rule #4 (optional)', required:false}, {name:'rule5', type:'str', minLength:1, maxLength:255, label:'Rule #5 (optional)', required:false}, {name:'rule6', type:'str', minLength:1, maxLength:255, label:'Rule #6 (optional)', required:false}, {name:'rule7', type:'str', minLength:1, maxLength:255, label:'Rule #7 (optional)', required:false}, {name:'rule8', type:'str', minLength:1, maxLength:255, label:'Rule #8 (optional)', required:false}, {name:'rule9', type:'str', minLength:1, maxLength:255, label:'Rule #9 (optional)', required:false}, {name:'rule10', type:'str', minLength:1, maxLength:255, label:'Rule #10 (optional)', required:false}, {name:'advertisement_wait_time', type:'choice', label:'Notification Time (in minutes)', choice1:5, choice2:10, choice3:15, choice4:20, choice5:25, choice6:30, choice7:45, choice8:60, defaultValue:15} ]; cb.onEnter(function(user) { cb.sendNotice('Welcome to my room, ' + user['user'] + '. Please take a moment to read my room rules before chatting. Thank you!', user['user'], '#CCF5EB', '', 'bold'); displayRules(user); }); function displayRules(user) { var username = ''; if(user) username = user['user']; var notices = '## MY RULES ##'; for(var i=1; i<=10;i++) { if(cb.settings['rule' + i]) notices += '\nRule #'+ i +': ' + cb.settings['rule'+i]; } cb.sendNotice(notices, username, '', '#FF00FF', 'bold'); if(!user || user == null) cb.setTimeout(displayRules, cb.settings.advertisement_wait_time * 60000); } function init() { displayRules(); } init(); /** * App: Tip to See * Version: 1.2 * Author: zingknaat * Date: 06.24.14 */ var lastTipper = '--'; var lastTipAmount = 0; var tipCounter = 0; var lastItem = '--'; cb.settings_choices = [ {name:'item_1', type:'str', label:'Item #1', defaultValue:'show ass'}, {name:'item_1_price', type:'int', label:'Price for item #1', defaultValue:25}, {name:'item_2', type:'str', label:'Item #2 (optional)', defaultValue:'all fours'}, {name:'item_2_price', type:'int', label:'Price for item #2', defaultValue:35}, {name:'item_3', type:'str', label:'Item #3 (optional)', defaultValue:'show feet'}, {name:'item_3_price', type:'int', label:'Price for item #3', defaultValue:45}, {name:'item_4', type:'str', label:'Item #4 (optional)', defaultValue:'stroke cock/keep on stroking cock'}, {name:'item_4_price', type:'int', label:'Price for item #4', defaultValue:50}, {name:'item_5', type:'str', label:'Item #5 (optional)', defaultValue:'finger hole'}, {name:'item_5_price', type:'int', label:'Price for item #5', defaultValue:100}, {name:'item_6', type:'str', label:'Item #6 (optional)', defaultValue:'', required:false}, {name:'item_6_price', type:'int', label:'Price for item #6', defaultValue:75}, {name:'item_7', type:'str', label:'Item #7 (optional)', defaultValue:'', required:false}, {name:'item_7_price', type:'int', label:'Price for item #7', defaultValue:85}, {name:'item_8', type:'str', label:'Item #8 (optional)', defaultValue:'', required:false}, {name:'item_8_price', type:'int', label:'Price for item #8', defaultValue:95}, {name:'item_9', type:'str', label:'Item #9 (optional)', defaultValue:'', required:false}, {name:'item_9_price', type:'int', label:'Price for item #9', defaultValue:100}, {name:'item_10', type:'str', label:'Item #10 (optional)', defaultValue:'', required:false}, {name:'item_10_price', type:'int', label:'Price for item #10', defaultValue:125}, {name:'notification_wait_time', type:'choice', label:'Time to notify viewers (in minutes)', choice1:1, choice2:2, choice3:3, choice4:4, choice5:5, choice6:10, choice7:15, choice8:20, choice9:25, choice10:30, defaultValue:15} ]; cb.onDrawPanel(function (user) { return { 'template': '3_rows_of_labels', 'row1_label': 'Last Item:', 'row1_value': lastItem, 'row2_label': 'Last Tipper:', 'row2_value': lastTipper + ' (' + lastTipAmount + ')', 'row3_label': 'Tip Jar:', 'row3_value': tipCounter + ' token(s)' }; }); cb.onTip(function (tip) { tipCounter += parseInt(tip['amount']); lastTipAmount = parseInt(tip['amount']); lastTipper = tip['from_user']; lastItem = getItem(tip['amount']); if (lastItem) { cb.sendNotice(tip['from_user'] + ' wants to see: ' + getItem(tip['amount']), '', '#ABFFFB', '#000000', 'bold'); } cb.drawPanel(); }); cb.onEnter(function (user) { var notices = 'Welcome ' + user['user'] + '. ' + cb.room_slug + ' is showing something for a tip.\n'; notices += 'Type /list to see a list of things ' + cb.room_slug + ' will be showing.'; cb.sendNotice(notices, user['user'], '', '', 'bold'); }); cb.onMessage(function(msg) { if(msg['m'].match(/\/list/i)) { msg['X-Spam'] = true; showList(msg['user']); } return msg; }); function getItem(tokens) { for(var i=1;i<=10;i++) { if(parseInt(cb.settings['item_' + i + '_price']) == parseInt(tokens)) { return cb.settings['item_' + i]; } } } function showList(user) { var notices = '*** Tip to See One of The Following: ***'; for(var i=1;i<=10;i++) { if(cb.settings.get('item_' + i) && (parseInt(cb.settings['item_' + i + '_price']) > 0)) { notices += '\nTip ' + cb.settings['item_' + i + '_price'] + ' for: ' + cb.settings['item_' + i]; } } cb.sendNotice(notices, user, '#FCFCD7', '', 'bold'); } function advertise() { var notices = 'Tip to See v1.2 by zingknaat\n'; notices += 'Type /list to see a list of things ' + cb.room_slug + ' will be showing.'; cb.sendNotice(notices, '', '', '#AB001C'); cb.setTimeout(advertise, cb.settings.notification_wait_time * 60000); } function init() { advertise(); } init();
© Copyright Chaturbate 2011- 2026. All Rights Reserved.