Bots Home
|
Create an App
top45
Author:
nickvise
Description
Source Code
Launch Bot
Current Users
Created by:
Nickvise
var tip_amt = 0; var separator_char = "| "; var msg; var MAXITEMS = 20; var tipmenuprice = []; var tipmenuitem = []; var n = 1; var MAXSEP = 6; 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'} ]; cb.settings_choices = [ { name: 'sepchar', type: 'choice', choice1: 'Vertical Bar', choice2: 'Hearts', choice3: 'Glitter', choice4: 'Flowers', choice5: 'Bow', choice6: 'Hearts2', choice7: 'Smiley', defaultValue: 'Hearts', label: "Tip Menu Separator character" }, {name: 'item1', type: 'str', label: 'Item 1 (eg 10--flash)', defaultValue: '10--pm'}, {name: 'item2', type: 'str', required: false, label: 'Item 2', defaultValue: '35--flash feet'}, {name: 'item3', type: 'str', required: false, label: 'Item 3', defaultValue: '40--4 spanks'}, {name: 'item4', type: 'str', required: false, label: 'Item 4', defaultValue: '45--suck fingers'}, {name: 'item5', type: 'str', required: false, label: 'Item 5', defaultValue: '50--dance to your song'}, {name: 'item6', type: 'str', required: false, label: 'Item 6', defaultValue: '60--flash ass'}, {name: 'item7', type: 'str', required: false, label: 'Item 7', defaultValue: '70--flash tits'}, {name: 'item8', type: 'str', required: false, label: 'Item 8', defaultValue: '80--stockings/heels for 10 mins'}, {name: 'item9', type: 'str', required: false, label: 'Item 9', defaultValue: '99--smoke request'}, {name: 'item10', type: 'str', required: false, label: 'Item 10', defaultValue: '101--flash pussy'}, {name: 'item11', type: 'str', required: false, label: 'Item 11', defaultValue: '110--flash asshole'}, {name: 'item12', type: 'str', required: false, label: 'Item 12', defaultValue: '111--watch cam'}, {name: 'item13', type: 'str', required: false, label: 'Item 13', defaultValue: '123--suck toes'}, {name: 'item14', type: 'str', required: false, label: 'Item 14', defaultValue: '150--play pussy for 5 mins'}, { name: 'item15', type: 'str', required: false, label: 'Item 15', defaultValue: '345--write your name on my body and email you pic' }, {name: 'item16', type: 'str', required: false, label: 'Item 16', defaultValue: '444--buttplug'}, {name: 'item17', type: 'str', required: false, label: 'Item 17', defaultValue: '456--lush control for 10 mins'}, {name: 'item18', type: 'str', required: false, label: 'Item 18', defaultValue: '499--fully nude for 30 mins'}, {name: 'item19', type: 'str', required: false, label: 'Item 19', defaultValue: '2000--make my day'}, {name: 'item20', type: 'str', required: false, label: 'Item 20', defaultValue: '2345--personal number'}, {name: 'item21', type: 'str', required: false, label: 'Item 21', defaultValue: ''}, {name: 'item22', type: 'str', required: false, label: 'Item 22', defaultValue: ''}, {name: 'item23', type: 'str', required: false, label: 'Item 23', defaultValue: ''}, {name: 'item24', type: 'str', required: false, label: 'Item 24', defaultValue: ''}, {name: 'item25', type: 'str', required: false, label: 'Item 25', defaultValue: ''}, {name: 'item26', type: 'str', required: false, label: 'Item 26', defaultValue: ''}, {name: 'item27', type: 'str', required: false, label: 'Item 27', defaultValue: ''}, {name: 'item28', type: 'str', required: false, label: 'Item 28', defaultValue: ''}, {name: 'item29', type: 'str', required: false, label: 'Item 29', defaultValue: ''}, {name: 'item30', type: 'str', required: false, label: 'Item 30', defaultValue: ''}, {name: 'noticecolor', type: 'str', label: 'Notice color (html code default red #FF0000)', defaultValue: '#FF0000'}, { name: 'chat_ad', type: 'int', minValue: 1, maxValue: 999, defaultValue: 5, label: 'Delay in minutes between Tip Menu being displayed (minimum 1)' }, {name: 'msg1', type: 'str', required: false, label: 'Notice 1', defaultValue: ''}, {name: 'msg2', type: 'str', required: false, label: 'Notice 2', defaultValue: ''}, {name: 'msg3', type: 'str', required: false, label: 'Notice 3', defaultValue: ''}, {name: 'msg4', type: 'str', required: false, label: 'Notice 4', defaultValue: ''}, {name: 'msg5', type: 'str', required: false, label: 'Notice 5', defaultValue: ''}, {name: 'msg6', type: 'str', required: false, label: 'Notice 6', defaultValue: ''}, {name: 'msg7', type: 'str', required: false, label: 'Notice 7', defaultValue: ''}, {name: 'msg8', type: 'str', required: false, label: 'Notice 8', defaultValue: ''}, {name: 'msg9', type: 'str', required: false, label: 'Notice 9', defaultValue: ''}, { name: 'display_notice', type: 'int', minValue: 1, maxValue: 60, defaultValue: 1, label: 'Delay in minutes between notices' } ]; function displayNotice() { var noticemsg; while (cb.settings['msg' + n] === 0) { //skip empty messages n++; if (n > 9) { //loop back to first message n = 1; } } noticemsg = cb.settings['msg' + n]; n++; if (n > 9) { //loop back to first message n = 1; } cb.sendNotice(noticemsg, '', '', '#9F000F', 'bold'); cb.setTimeout(displayNotice, (cb.settings.display_notice * 60000)); } cb.setTimeout(displayNotice, (cb.settings.display_notice * 60000)); 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], '', '#FDD7E4', cb.settings['noticecolor'], 'bold'); } } }); function chatAd() { cb.sendNotice(msg, '', '', cb.settings['noticecolor'], 'bold'); cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); } cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); var show_info = function (user) { cb.sendNotice("info", user, 'white', 'darkurple', 'bold', null); }; var show_help = function (user) { cb.sendNotice("help", user, 'white', 'darkurple', 'bold', null); }; var show_tipmenu = function (user) { cb.sendNotice(msg, user, 'white', 'darkurple', 'bold', null); }; cb.onMessage(function (msg) { switch (msg['m']) { case '/info' : { show_info(msg['user']); msg['X-Spam'] = true; } break; case '/help' : { show_help(msg['user']); msg['X-Spam'] = true; } break; case '/tipmenu' : { show_tipmenu(msg['user']); msg['X-Spam'] = true; } break; } return msg; }); 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('--'); var amt = parseInt(arr[0]); if (amt > 0) { tipmenuprice[i] = amt; tipmenuitem[i] = arr[1]; if (i >= 2) { msg += separator_char; } msg += '(' + amt + ') ' + arr[1] + ' '; } } } cb.sendNotice(msg, '', '', cb.settings['noticecolor'], 'bold'); } init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.