Bots Home
|
Create an App
Carol's Tip Menu
Author:
prurient
Description
Source Code
Launch Bot
Current Users
Created by:
Prurient
/* Title: "Tip Menu Single Line Plus" bot Author: badbadbubba Version: 1.0.0 (03/07/2016) 1.0.1 (09/08/2016) Improved error checking and reporting 1.0.2 (09/09/2016) Added text character separators */ var HEART = '\u2665'; // ♥ BDIAMOND = '\u2666'; // ♦ BSTAR = '\u2605'; // ★ var tip_amt = 0; var separator_char = "| "; var msg; var MAXITEMS=20; var tipmenuprice = []; var tipmenuitem= []; var MAXSEP = 9; separators = [ {label:'Diamond Spin',shortcut:':diamondspin'}, {label:'Diamond Star',shortcut:':diamondstar'}, {label:'Diamond Blue',shortcut:':diamondzzz'}, {label:'Hearts',shortcut:':heart2'}, {label:'Glitter',shortcut:':pixelglitter'}, {label:'Flowers',shortcut:':tinyflower2'}, {label:'Bow',shortcut:':bluebow'}, {label:'Hearts2',shortcut:':pixelheart'}, {label:'Smiley',shortcut:':smile'}, ] /* Item 1 */ var item1a='05--PM message'; var item1b='10--PM message'; var item1c='15--PM message'; /* Item 2 */ var item2a='20--Flash Tits'; var item2b='-'; var item2c='-'; /* Item 3 */ var item3a='25--My Bra 5 mins'; var item3b='-'; var item3c='-'; /* Item 4 */ var item4a='30--My Pants 5 mins'; var item4b='-'; var item4c='-'; /* Item 5 */ var item5a='33--Vibe at Random level'; var item5b='-'; var item5c='-'; /* Item 6 */ var item6a='44--C2C 5 mins'; var item6b='-'; var item6c='-'; /* Item 7 */ var item7a='77--Naked 10 mins'; var item7b='-'; var item7c='-'; /* Item 8 */ var item8a='88-- Zoom Pierced Clit'; var item8b='-'; var item8c='-'; /* Item 9 */ var item9a='99--Finger in pussy'; var item9b='-'; var item9c='-'; /* Item 10 */ var item10a='250--Anal Play'; var item10b='-'; var item10c='-'; /* Item 11 */ var item11a='300--Squirt Show'; var item11b='-'; var item11c='-'; /* Item 12 */ var item12a='300--Lush Control'; var item12b='333--Lush Control'; var item12c='500--Lush Control'; cb.settings_choices = [ {name: 'sepchar', type: 'choice', choice1: 'Vertical Bar', choice2: 'Diamond Spin', choice3: 'Diamond Star', choice4: 'Diamond Blue', choice5: 'Hearts', choice6:'Glitter', choice7:'Flowers', choice6:'Hearts2', choice7:'Smiley', defaultValue: 'Vertical Bar', label: "Separator character"}, {name:'item1', type: 'choice', choice1: ' ', choice2: item1a, choice3: item1b, choice4: item1c, label: "PM Messages = Item 1"}, {name:'item2', type: 'choice', choice1: ' ', choice2: item2a, choice3: item2b, choice4: item2c, label: "Flash Tits = Item 2"}, {name:'item3', type: 'choice', choice1: ' ', choice2: item3a, choice3: item3b, choice4: item3c, label: "Remove Bra = Item 3"}, {name:'item4', type: 'choice', choice1: ' ', choice2: item4a, choice3: item4b, choice4: item4c, label: "Remove Pants = Item 4"}, {name:'item5', type: 'choice', choice1: ' ', choice2: item5a, choice3: item5b, choice4: item5c, label: "Random Vibrate = Item 5"}, {name:'item6', type: 'choice', choice1: ' ', choice2: item6a, choice3: item6b, choice4: item6c, label: "Cam to Cam = Item 6"}, {name:'item7', type: 'choice', choice1: ' ', choice2: item7a, choice3: item7b, choice4: item7c, label: "Total Naked = Item 7"}, {name:'item8', type: 'choice', choice1: ' ', choice2: item8a, choice3: item8b, choice4: item8c, label: "Zoom Pusy = Item 8"}, {name:'item9', type: 'choice', choice1: ' ', choice2: item9a, choice3: item9b, choice4: item9c, label: "Finger Pussy = Item 9"}, {name:'item10', type: 'choice', choice1: ' ', choice2: item10a, choice3: item10b, choice4: item10c, label: "Anal dildo play = Item 10"}, {name:'item11', type: 'choice', choice1: ' ', choice2: item11a, choice3: item11b, choice4: item11c, label: "Squirt show = Item 11"}, {name:'item12', type: 'choice', choice1: ' ', choice2: item12a, choice3: item12b, choice4: item12c, label: "Give Lush Control = Item 12"}, {name:'item13', type:'str', required: false, label:'Freeform Item 13',}, {name:'item14', type:'str', required: false, label:'Freeform Item 14',}, {name:'item15', type:'str', required: false, label:'Freeform Item 15',}, {name:'item16', type:'str', required: false, label:'Freeform Item 16',}, {name:'item17', type:'str', required: false, label:'Freeform Item 17',}, {name:'item18', type:'str', required: false, label:'Freeform Item 18',}, {name:'item19', type:'str', required: false, label:'Freeform Item 19',}, {name:'item20', type:'str', required: false, label:'Freeform Item 20',}, {name:'noticecolor', type:'str', label:'Notice color (html code default red #FF0000)', defaultValue: '#FF0000'}, {name:'noticecolor2', type:'str', label:'TIP color (html code default red #FF00FF)', defaultValue: '#FF00FF'}, {name: 'chat_ad', type:'int', minValue: 1, maxValue: 999, defaultValue: 1, label: 'Delay in minutes between notice being displayed (minimum 1)'} ]; cb.onTip(function (tip) { tip_amt=parseInt(tip['amount']); for (var i = 1; i <= MAXITEMS; i++) { if (tip_amt == tipmenuprice[i]) { cb.sendNotice(tip['from_user'] + ' ###### TIPPED FOR --> ' + tipmenuitem[i],'','',cb.settings['noticecolor2'],'bold'); } } }); function chatAd() { if (msg!='Tip Menu: ') { cb.sendNotice(msg,'','',cb.settings['noticecolor'],'bold'); } cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); } cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); function init() { for (i=0;i<=MAXSEP-1;i++) { if (cb.settings['sepchar'] == separators[i].label) { separator_char = separators[i].shortcut + ' '; } } msg = 'Tip Menu: '; for (i=1;i<=MAXITEMS;i++) { var tmp; tmp=cb.settings['item' + i]; if (tmp) { var arr= tmp.split('--'); if (arr[1]===undefined) { cb.sendNotice('Error-You need two dashes to separate the tip amount and menu item for item no '+ i,'','',cb.settings['noticecolor'],'bold'); } else { var amt=parseInt(arr[0]); if (amt>0) { tipmenuprice[i]=amt; tipmenuitem[i]=arr[1]; if (i>=2) { msg += separator_char; } msg += arr[1] + '(' + amt + ') '; } } } } if (msg!= 'Tip Menu: ') { cb.sendNotice(msg,'','',cb.settings['noticecolor'],'bold'); } else { cb.sendNotice('Error-No menu items found','','',cb.settings['noticecolor'],'bold'); } } init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.