Bots Home
|
Create an App
lilimariexx Bot
Author:
fickufertig_de6
Description
Source Code
Launch Bot
Current Users
Created by:
Fickufertig_De6
/** * App: Tip to See * Version: 1.2.2 * Author: zingknaat * Modified by fickufertig * Date: 03.27.16 * History: * 1.2.2 : added 10 more slots updated Choices */ var lastTipper = '--'; var lastTipAmount = 0; var tipCounter = 0; var lastItem = '--'; cb.settings_choices = [{ name: 'item_1', type: 'str', label: 'Item #1', defaultValue: 'Blow kiss' }, { name: 'item_1_price', type: 'int', label: 'Price for item #1', defaultValue: 5 }, { name: 'item_2', type: 'str', label: 'Item #2 (optional)', defaultValue: 'PM request', required: false }, { name: 'item_2_price', type: 'int', label: 'Price for item #2', defaultValue: 30 }, { name: 'item_3', type: 'str', label: 'Item #3 (optional)', defaultValue: 'Spanks', required: false }, { name: 'item_3_price', type: 'int', label: 'Price for item #3', defaultValue: 35 }, { name: 'item_4', type: 'str', label: 'Item #4 (optional)', defaultValue: 'Twerks', required: false }, { name: 'item_4_price', type: 'int', label: 'Price for item #4', defaultValue: 40 }, { name: 'item_5', type: 'str', label: 'Item #5 (optional)', defaultValue: 'Booty flash', required: false }, { name: 'item_5_price', type: 'int', label: 'Price for item #5', defaultValue: 50 }, { name: 'item_6', type: 'str', label: 'Item #6 (optional)', defaultValue: 'Tit flash', 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: 'Pussy flash', required: false }, { name: 'item_7_price', type: 'int', label: 'Price for item #7', defaultValue: 100 }, { name: 'item_8', type: 'str', label: 'Item #8 (optional)', defaultValue: 'BJ tease', required: false }, { name: 'item_8_price', type: 'int', label: 'Price for item #8', defaultValue: 150 }, { name: 'item_9', type: 'str', label: 'Item #9 (optional)', defaultValue: 'Pussy tease', required: false }, { name: 'item_9_price', type: 'int', label: 'Price for item #9', defaultValue: 175 }, { name: 'item_10', type: 'str', label: 'Item #10 (optional)', defaultValue: '', required: false }, { name: 'item_10_price', type: 'int', label: 'Price for item #10', defaultValue: 50 }, { name: 'item_11', type: 'str', label: 'Item #11 (optional)', defaultValue: '', required: false }, { name: 'item_11_price', type: 'int', label: 'Price for item #10', defaultValue: 75 }, { name: 'item_12', type: 'str', label: 'Item #12 (optional)', defaultValue: '', required: false }, { name: 'item_12_price', type: 'int', label: 'Price for item #10', defaultValue: 125 }, { name: 'item_13', type: 'str', label: 'Item #13 (optional)', defaultValue: '', required: false }, { name: 'item_13_price', type: 'int', label: 'Price for item #10', defaultValue: 125 }, { name: 'item_14', type: 'str', label: 'Item #14 (optional)', defaultValue: '', required: false }, { name: 'item_14_price', type: 'int', label: 'Price for item #10', defaultValue: 125 }, { name: 'item_15', type: 'str', label: 'Item #15 (optional)', defaultValue: '', required: false }, { name: 'item_15_price', type: 'int', label: 'Price for item #10', defaultValue: 125 }, { name: 'item_16', type: 'str', label: 'Item #16 (optional)', defaultValue: '', required: false }, { name: 'item_16_price', type: 'int', label: 'Price for item #10', defaultValue: 125 }, { name: 'item_17', type: 'str', label: 'Item #17 (optional)', defaultValue: '', required: false }, { name: 'item_17_price', type: 'int', label: 'Price for item #10', defaultValue: 125 }, { name: 'item_18', type: 'str', label: 'Item #18 (optional)', defaultValue: '', required: false }, { name: 'item_18_price', type: 'int', label: 'Price for item #10', defaultValue: 125 }, { name: 'item_19', type: 'str', label: 'Item #19 (optional)', defaultValue: '', required: false }, { name: 'item_19_price', type: 'int', label: 'Price for item #10', defaultValue: 125 }, { name: 'item_20', type: 'str', label: 'Item #20 (optional)', defaultValue: '', required: false }, { name: 'item_20_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'; cb.sendNotice(notices, user['user'], '', '', 'bold'); for (var i = 1; i <= 20; 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['user'], '#FCFCD7', '', 'bold'); }); cb.onMessage(function(msg) { if (msg['m'] == '/list') { var notices = msg['user'] + '. ' + cb.room_slug + ' is showing something for a tip.\n'; cb.sendNotice(notices, msg['user'], '', '', 'bold'); for (var i = 1; i <= 20; 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, msg['user'], '#FCFCD7', '', 'bold'); } }); function getItem(tokens) { for (var i = 1; i <= 20; i++) { if (parseInt(cb.settings['item_' + i + '_price']) == parseInt(tokens)) { return cb.settings['item_' + i]; } } } function advertiseList() { var notices = '*** Tip to See One of The Following: ***'; for (var i = 1; i <= 20; 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, '', '#FCFCD7', '', 'bold'); cb.setTimeout(advertiseList, cb.settings.notification_wait_time * 60000); } function init() { advertiseList(); } init();
© Copyright Chaturbate 2011- 2026. All Rights Reserved.