Apps Home
|
Create an App
cop900
Author:
noor320
Description
Source Code
Launch App
Current Users
Created by:
Noor320
var total_tipped = 0; var total_amount = 0; cb.settings_choices = [ {name: 'Minimum_tip_amount', type: 'int', minValue: 1, maxValue: 500}, {name: 'Prize', type: 'str', minLength: 1, maxLength: 511, default: "You get to see me!"} ]; cb.onTip(function(tip) { if( tip['amount'] >= cb.settings.Minimum_tip_amount ) { if( !cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), tip['from_user']) && !checkGoalReached() ) { cb.chatNotice('User ' + tip['from_user'] + ' is now inside.'); cb.limitCam_addUsers([tip['from_user']]); } else { cb.chatNotice('Viewer ' + tip['from_user'] + ' tipped.'); } } else { cb.chatNotice('Thanks for the tip ' + tip['from_user'] + ', but the amount is too low for you to enter.'); } total_tipped += 1; total_amount += tip['amount']; cb.drawPanel(); }); cb.onDrawPanel(function(user) { return { 'template': 'Tip to enter.', 'row1_label': 'Tips Received:', 'row1_value': total_tipped, 'row2_label': 'Total amount:', 'row2_value': total_amount }; }); cb.onEnter(function(user) { if((user['is_mod'] === true || user['in_fanclub'] === true) && cb.settings.fans_watch_for_free === 'Yes') { if (!cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), tip['from_user'])) { cb.limitCam_addUsers([user['user']]) } } else { cb.chatNotice('Model is using GetIn App. To view you must tip a minimum amount of ' + cb.settings.Minimum_tip_amount ); } }); cb.onMessage(function (msg) { var message = msg['m']; var user = msg['user']; if (cb.room_slug === user && message == '/start' && !cb.limitCam_isRunning()) { cb.chatNotice(cb.room_slug + ' has hidden the cam!', '#FF69B4'); cb.limitCam_start( "Minimum tip needed: " + cb.settings.Minimum_tip_amount + "."); } if (cb.room_slug === user && message == '/stop' && cb.limitCam_isRunning()) { cb.chatNotice( cb.room_slug + ' is now public broadcasting!','#FF69B4'); cb.limitCam_stop(); } }); function init() { total_tipped = 0; total_amount = 0; } init();
© Copyright Chaturbate 2011- 2026. All Rights Reserved.