Bots Home
|
Create an App
HighView
Author:
sleepwalker7
Description
Source Code
Launch Bot
Current Users
Created by:
Sleepwalker7
// vars var highTipValue = 0; cb.onTip(function(tip) { if (!cbjs.arrayContains(cb.limitCam_allUsersWithAccess(), tip['from_user'])) { if (cb.limitCam_isRunning() && parseInt(tip['amount']) > highTipValue) { cb.limitCam_removeAllUsers(); cb.limitCam_addUsers([tip['from_user']]); highTipValue = parseInt(tip['amount']); output("Camera now being shown only to "+ tip['from_user'] + ". Tip "+(highTipValue+1)+" or more to steal"); } } }); cb.onMessage(function (msg) { var message = msg["m"]; var user = msg["user"]; var username = ""; if (cb.room_slug === user && message == "/start" && !cb.limitCam_isRunning()) { output(cb.room_slug + ' has started the show!'); cb.limitCam_start("Be the current high tipper to be the only one to see the show"); } if (cb.room_slug === user && message == "/stop" && cb.limitCam_isRunning()) { output(cb.room_slug + ' has stopped the show!'); cb.limitCam_stop(); } if (message[0] == '/') { msg['X-Spam'] = true; } return msg; }); function output(message) { cb.chatNotice(message); }
© Copyright Chaturbate 2011- 2026. All Rights Reserved.