Bots Home
|
Create an App
FernandaTipMenu
Author:
bk77777
Description
Source Code
Launch Bot
Current Users
Created by:
Bk77777
/* Title: "FernandaTipMenu" Author: bryan4547, smoochaman Original Author: badbadbudda Version: 1.0.0 (11/18/2016) 1.0.0 Modifications, Defaulting more options 1.0.2 Reduced to 15 items maximum 1.0.3 Special Tips added, and special messages 1.0.4 - removed MAXSEP variable to simplify settings - added "simple_user_tipped_texts" and "tipmenu_user_tipped_texts" - changed tip item lookup to object key lookup for simpler code and speed - added some error checking for settings_choices */ var HEART = '\u2665'; // ♥ var BDIAMOND = '\u2666'; // ♦ var BSTAR = '\u2605'; // ★ var tip_amt = 0; var separator_char = "| "; var msg; var MAXITEMS = 20; var tipmenuitem = {}; separators = [ { label: 'Hearts', shortcut: ':heart2' }, { 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 }, { label: 'Jap char', shortcut: ':wheelicon' }, ] 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', choice11: 'Jap char', defaultValue: 'Text Star', label: "Separator character" }, { name: 'item1', type: 'choice', choice1: '24--PM', defaultValue: '24--PM', label: 'Item 1' }, { name: 'item2', type: 'choice', choice1: '50--Any Flash', Choice2: '35--Quick Flash', defaultValue: '50--Any Flash', label: 'Item 2', }, { name: 'item3', type: 'choice', choice1: '49--Feet', defaultValue: '49--Feet', label: 'Item 3', }, { name: 'item4', type: 'choice', choice1: '85--Ass', defaultValue: '85--Ass', label: 'Item 4', }, { name: 'item5', type: 'choice', choice1: '99--Tits', defaultValue: '99--Tits', label: 'Item 5', }, { name: 'item6', type: 'choice', choice1: '110--Pussy', defaultValue: '110--Pussy', label: 'Item 6', }, { name: 'item7', type: 'choice', choice1: '111--OilTits', defaultValue: '111-OilTits', label: 'Item 7', }, { name: 'item8', type: 'choice', choice1: '129--BlowJob', defaultValue: '129--BlowJob', label: 'Item 8', }, { name: 'item9', type: 'choice', choice1: '150--Cum Video', defaultValue: '150--Cum Video', label: 'Item 19', }, { name: 'item10', type: 'choice', choice1: '600--SnapChat', defaultValue: '600--SnapChat', label: 'Item 10', }, { name: 'item11', type: 'choice', choice1: '1500--Whatsapp', defaultValue: '1500--Whatsapp', label: 'Item 11', }, { name: 'item12', type: 'choice', choice1: '7--Remind Drink', defaultValue: '7--Remind Drink', label: 'Item 12', }, { name: 'item13', type: 'choice', choice1: '27--Sing', defaultValue: '27--Sing', label: 'Item 13', }, { name: 'item14', type: 'choice', choice1: '33--Glasses On/Off', defaultValue: '33--Glasses On/Off', label: 'Item 14', }, { name: 'item15', type: 'choice', choice1: '44--Dance', defaultValue: '44--Dance', label: 'Item 15', }, { name: 'item16', type: 'choice', choice1: '8--Kiss From Fernanda', defaultValue: '8--Kiss From Fernanda', label: 'Item 16', }, { name: 'item17', type: 'choice', choice1: '1111--Five Video Package', defaultValue: '1111--Five Video Package', label: 'Item 17', }, { name: 'item18', type: 'choice', choice1: '11--Hi Romeo!!', defaultValue: '11--Hi Romeo!!', label: 'Item 18', }, { name: 'item19', type: 'choice', choice1: '37--Suck Fingers', defaultValue: '37--Suck Fingers', label: 'Item 19', }, { name: 'item20', type: 'choice', choice1: '19--Say My Name Fernanda', defaultValue: '19--Say My Name Fernanda', label: 'Item 20', }, { name: 'noticecolor', type: 'choice', choice1: '#3CB371', label: 'Notice color (html code default beige #3CB371)', defaultValue: '#3CB371' }, { name: 'speccolor', type: 'choice', choice1: '#EFFBF5', label: 'Notice color (html code default ##EFFBF5)', defaultValue: '#EFFBF5' }, { name: 'highcolor', type: 'choice', choice1: '#FF8000', label: 'BackgroundHighlight', defaultValue: '#FF8000' }, { name: 'awesomecolor', type: 'choice', choice1: '#2E9AFE', label: 'BackgroundHighlight', defaultValue: '#2E9AFE' }, { name: 'lovecolor', type: 'choice', choice1: '#FF0040', label: 'BackgroundHighlight', defaultValue: '#FF0040' }, { name: 'chat_ad', type: 'int', minValue: 1, maxValue: 999, defaultValue: 5, label: 'Delay in minutes between notice being displayed (minimum 1)' } ]; var tipmenu_user_tipped_texts = { 33: ':glasses- ', 27: ':singg ', 110: ':pussy ', 111: ':oilalltheboobies ', 7: ':cocacola2 ', } var simple_user_tipped_texts = { 1499: ':cake2 :cake2 :cake2', } cb.onTip(function (tip) { tip_amt = parseInt(tip['amount']); if (tipmenuitem[tip_amt] !== undefined) { cb.sendNotice(tip['from_user'] + ' tipped for ' + tipmenuitem[tip_amt], '', cb.settings['highcolor'], cb.settings['speccolor'], 'bold'); if (tipmenu_user_tipped_texts[tip_amt] !== undefined) { cb.sendNotice(tipmenu_user_tipped_texts[tip_amt], '', '', ''); } } else if (tip_amt == 28) { cb.sendNotice(':clap :mod ' + tip['from_user'] + ' says Thank You to the MOD(s) Good Job Guys!!! :mod :clap', '', '', cb.settings['awesomecolor'], 'bold'); } else if (tip_amt == 1111) { cb.sendNotice(':clap :video4 ' + tip['from_user'] + ' Five Video Package -- Happy Fapping :video4 ', '', '', cb.settings['awesomecolor'], 'bold'); } else if (tip_amt == 47) { cb.sendNotice(':butterflyx :butterflykiss :butterflykiss :butterflyx', '', '', cb.settings['lovecolor'], 'bold') cb.sendNotice(':kiss ' + tip['from_user'] + ' DICE TE QUIERO FERNANDA :kiss', '', '', cb.settings['lovecolor'], 'bold'); cb.sendNotice(':butterflyx :butterflykiss :butterflykiss :butterflyx', '', '', cb.settings['lovecolor'], 'bold') } else if ((tip_amt > 99) && (tip_amt < 499) && (tip_amt != 150) && (tip_amt != 110) && (tip_amt != 129) && (tip_amt != 111) && (tip_amt != 175) && (tip_amt != 250)) { cb.sendNotice(':vibration_1 :vibration_1 MMMMMMMM :vibration_1 :vibration_1 ', '', '', cb.settings['awesomecolor'], 'bold'); } else if ((tip_amt > 499) && (tip_amt < 999) && (tip_amt != 666) && (tip_amt != 700) && (tip_amt != 600)) { cb.sendNotice(':fireworksmany Someone call the :firefighter ***' + tip['from_user'] + '*** is trying to burn down the house!! :clap ', '', '', cb.settings['awesomecolor'], 'bold'); } else if ((tip_amt > 999) && (tip_amt != 1499) && (tip_amt != 1500) && (tip_amt != 4001) && (tip_amt != 1111)) { cb.sendNotice(':explos1on !!OMFG!! Hail ****' + tip['from_user'] + '**** SOOOOO GOOOD!!!! :awesome7 ', '', '', cb.settings['awesomecolor'], 'bold'); cb.sendNotice(':clap :clap :clap', '', '', cb.settings['awesomecolor'], 'bold'); } else if (tip_amt == 666) { cb.sendNotice(':demon3 :demon3 !!!!!!!!!!!!!!!!!!!!!!! :demon3 :demon3 ', '', '', cb.settings['awesomecolor'], 'bold'); cb.sendNotice(':devil3 :devil3 Fernanda brings out the Devil in ' + tip['from_user'] + ':devil3 devil3 ', '', '', cb.settings['awesomecolor'], 'bold'); cb.sendNotice(':demon3 :demon3 !!!!!!!!!!!!!!!!!!!!!!! :demon3 :demon3 ', '', '', cb.settings['awesomecolor'], 'bold'); } else if ((tip_amt == 3) || (tip_amt == 2) || (tip_amt == 4)) { cb.sendNotice(tip['from_user'] + ' mmmm such a tease!', '', '', cb.settings['awesomecolor'], 'bold'); } else if (tip_amt == 5) { cb.sendNotice(tip['from_user'] + ' :highfive1 Thanks for the tip!!', '', '', cb.settings['awesomecolor'], 'bold'); } else if (tip_amt == 15) { cb.sendNotice(tip['from_user'] + ' :heart2 Thanks for the tip!! :heart2', '', '', cb.settings['awesomecolor'], 'bold'); } if (simple_user_tipped_texts[tip_amt] !== undefined) { cb.sendNotice(simple_user_tipped_texts[tip_amt], '', '', ''); } }); 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 < separators.length; 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) { cb.sendNotice('Error - invalid tip amount ' + amt + ' used in item no ' + i, '', '', cb.settings['noticecolor'], 'bold'); continue; } if (tipmenuitem[amt] !== undefined) { cb.sendNotice('Error - duplicate tip amount ' + amt + ' used in item no ' + i, '', '', cb.settings['noticecolor'], 'bold'); continue; } tipmenuitem[amt] = 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.