Bots Home
|
Create an App
Getting Familiar With CB object
Author:
mischieftk69
Description
Source Code
Launch Bot
Current Users
Created by:
Mischieftk69
cb.onEnter( function(user) { cb.chatNotice( 'USER: ' + user['user'] ); cb.chatNotice( 'ROOM: ' + user['room'] ); cb.chatNotice( 'IN FANCLUB: ' + user['in_fanclub'] ); cb.chatNotice( 'HAS TOKENS: ' + user['has_tokens'] ); cb.chatNotice( 'IS MOD: ' + user['is_mod'] ); cb.chatNotice( 'GENDER: ' + user['gender'] ); cb.chatNotice( 'TIPPED RECENTLY: ' + user['tipped_recently'] ); cb.chatNotice( 'TIPPED A LOT RECENTLY: ' + user['tipped_alot_recently'] ); cb.chatNotice( 'TIPPED TONS RECENTLY: ' + user['tipped_tons_recently'] ); cb.chatNotice( 'TIPPED RECENTLY: ' + user.tipped_recently ); }); cb.getRoomOwnerData( ownerData => { if (ownerData['success']) { cb.chatNotice(cb.room_slug + ' has ' + ownerData['data']['followers'] + ' followers!'); cb.chatNotice( 'Room Owner: ' + ownerData['data']['room_owner'] ); cb.chatNotice( 'Room Status: ' + ownerData['data']['room_status'] ); // the current status of the room (public, private, group, hidden) cb.chatNotice( 'Followers: ' + ownerData['data']['followers'] ); // number of followers cb.chatNotice( 'Show Cam To Genders: ' + ownerData['data']['show_cam_to_genders'] ); // array of genders that owner is broadcasting to [m (male), f (female), t (trans), c (couple)] cb.chatNotice( 'Fan Club Fee: ' + ownerData['data']['fanclub_cost'] ); // tokens needed for owner’s fan club membership cb.chatNotice( 'Private Shows?: ' + ownerData['data']['allow_private_shows'] ); // does the owner allow private shows cb.chatNotice( 'Private Show Recordings?: ' + ownerData['data']['allow_private_show_recordings']); // does the owner allow private show recordings cb.chatNotice( 'Private Show Tokens Per Minute: ' + ownerData['data']['private_show_tokens_per_minute'] ); // tokens required per minute for private show cb.chatNotice( 'Min. Minutes Private Show: ' + ownerData['data']['private_show_minimum_minutes'] ); // minimum minutes required for private show cb.chatNotice( 'Spy on Private Show?: ' + ownerData['data']['spy_on_private_show_tokens_per_minute'] ); // tokens required per minute to spy on private show cb.chatNotice( 'Min. Balance for Private Show: ' + ownerData['data']['token_balance_to_request_private_show'] ); // token balance required to request private show cb.chatNotice( 'Who can chat: ' + ownerData['data']['chat_allowed_by'] ); //type of users allowed to chat (all, tip_recent, tip_anytime, tokens) } else { cb.chatNotice('Error retrieving ownerData: ' + errorMessage); } });
© Copyright Chaturbate 2011- 2024. All Rights Reserved.