Bots Home
|
Create an App
gptest
Author:
guytesting
Description
Source Code
Launch Bot
Current Users
Created by:
Guytesting
cb.onMessage(function(msg) { if (msg.user === cb.room_slug) { var cmd = msg.m.trim(); if (cmd === '/privstart' && !cb.limitCam_isRunning()) { cb.chatNotice('Guy\'s private is starting. Only allowed users will be able to see your cam.', msg.user); cb.limitCam_start('You need to be invited to view this cam.'); } else if (cmd === '/privstop' && cb.limitCam_isRunning()) { cb.chatNotice('Guy\'s private is ending. All users will be allowed to view your cam.', msg.user); cb.limitCam_stop(); } else if (startsWith('/privadd')) { var users = msg.m.split(' ').slice(1); cb.limitCam_addUsers(users); cb.chatNotice('Users ' + users.concat(...users) + ' are now allowed to view Guy\'s private.', msg.user); } else if (cmd.startsWith('/privremove')) { var users = msg.m.split(' ').slice(1); cb.limitCam_removeUsers(users); cb.chatNotice('Users ' + users.concat(...users) + ' are now allowed to view Guy\'s private.', msg.user); } } return msg; });
© Copyright Chaturbate 2011- 2025. All Rights Reserved.