Apps Home
|
Create an App
limit cam testing
Author:
janan
Description
Source Code
Launch App
Current Users
Created by:
Janan
cb.onMessage(msg => { const splittedMessage = msg.m.split(" ") let command = ""; let users = []; if (splittedMessage && splittedMessage.length != 0) { command = splittedMessage[0]; if (splittedMessage.length > 1) { for (let i = 1; i < splittedMessage.length; i++) { users.push(splittedMessage[i]) } } } if (command === '/start') { cb.limitCam_start(msg.m, users); } if (command === '/stop') { cb.limitCam_stop(); } if (command === '/addusers') { cb.limitCam_addUsers(users); } if (command === '/removeusers') { cb.limitCam_removeUsers(users); } if (command === '/removeall') { cb.limitCam_removeAllUsers() } if (command === '/hasaccess') { cb.limitCam_userHasAccess(user[0]) } if (command === '/allaccess') { for (const u of cb.limitCam_allUsersWithAccess()) { cb.chatNotice("user "+u+" has access") } } if (command === '/running') { cb.chatNotice("is running: "+cb.limitCam_isRunning()) } if (msg.m[0] == '/') { msg['X-Spam'] = true; } return msg; })
© Copyright Chaturbate 2011- 2024. All Rights Reserved.