Bots Home
|
Create an App
Miss Menu
Author:
butterfly_sex
Description
Source Code
Launch Bot
Current Users
Created by:
Butterfly_Sex
/* Title: "Miss Menu" bot Author: Nika Version: 1.0.0 (10/03/2019) */ 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:'Hearts',shortcut:':missheart3'}, {label:'Glitter',shortcut:':pixelglitter'}, {label:'Flowers',shortcut:':tinyflower2'}, {label:'Bow',shortcut:':bluebow'}, {label:'Hearts2',shortcut:':pixelheart'}, {label:'Smiley',shortcut:':smile'}, {label:'Text Heart',shortcut:HEART}, {label:'Text Diamond',shortcut:BDIAMOND}, {label:'Text Star',shortcut:BSTAR}, ] cb.settings_choices = [ {name: 'sepchar', type: 'choice', choice1: 'Vertical Bar', choice2: 'Hearts', choice3:'Glitter',choice4:'Flowers',choice5:'Bow',choice6:'Hearts2',choice7:'Smiley',choice8:'Text Heart', choice9:'Text Diamond', choice10:'Text Star', defaultValue: 'Hearts', label: "Separator character"}, {name:'item1', type:'str', label:'Item 1 (eg 10--flash tits)', defaultValue: '5--Like me'}, {name:'item2', type:'str', required: false, label:'Item 2', defaultValue: '11--PM'}, {name:'item3', type:'str', required: false, label:'Item 3', defaultValue: '22--Show feet'}, {name:'item4', type:'str', required: false, label:'Item 4', defaultValue: '33--C2C'}, {name:'item5', type:'str', required: false, label:'Item 5', defaultValue: '44--Spank ass'}, {name:'item6', type:'str', required: false, label:'Item 6', defaultValue: '55--Show tits'}, {name:'item7', type:'str', required: false, label:'Item 7', defaultValue: '66--Nipple clamps'}, {name:'item8', type:'str', required: false, label:'Item 8', defaultValue: '77--Show pussy'}, {name:'item9', type:'str', required: false, label:'Item 9', defaultValue: '88--Сandle wax on body'}, {name:'item10', type:'str', required: false, label:'Item 10', defaultValue: '99--Change clothes'}, {name:'item11', type:'str', required: false, label:'Item 11', defaultValue: '155--Lovense: full control 5min'}, {name:'item12', type:'str', required: false, label:'Item 12', defaultValue: '200--Anal'}, {name:'item13', type:'str', required: false, label:'Item 13', defaultValue: ''}, {name:'item14', type:'str', required: false, label:'Item 14', defaultValue: ''}, {name:'item15', type:'str', required: false, label:'Item 15', defaultValue: ''}, {name:'item16', type:'str', required: false, label:'Item 16', defaultValue: ''}, {name:'item17', type:'str', required: false, label:'Item 17', defaultValue: ''}, {name:'item18', type:'str', required: false, label:'Item 18', defaultValue: ''}, {name:'item19', type:'str', required: false, label:'Item 19', defaultValue: ''}, {name:'item20', type:'str', required: false, label:'Item 20', defaultValue: ''}, {name:'noticecolor', type:'str', label:'Notice color (html code default red #FF0000)', defaultValue: '#cc005b'}, {name: 'chat_ad', type:'int', minValue: 1, maxValue: 999, defaultValue: 3, 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['noticecolor'],'bold'); } } }); function chatAd() { if (msg!=':missinfo7 MY TIP MENU: :missheart3 ') { 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 = ':missinfo7 MY TIP MENU: :missheart3 '; 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!= ':missinfo7 MY TIP MENU: :missheart3 ') { 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.