Bots Home
|
Create an App
beeppa
Author:
prova
Description
Source Code
Launch Bot
Current Users
Created by:
Prova
function helloF(user) { const { welcomeMsg, backgroundColor, foregroundColor } = cb.settings; let msg = welcomeMsg.replace(/\$user\$/g, user); cb.sendNotice(msg, user, backgroundColor, foregroundColor, 'bold'); } function helloM(user) { const { welcomeMsg, backgroundColor, foregroundColor } = cb.settings; let msg = welcomeMsg.replace(/\$user\$/g, user); cb.sendNotice(msg, user, backgroundColor, foregroundColor, 'bold'); } function globalMessage(message, color) { //Unfortunately color isn't supported yet. Soon! cb.chatNotice(message); } cb.settings_choices = [ { name: 'welcomeMsg', type: 'str', defaultValue: 'Hi $user$, Welcome to my room?', required: true, label: 'Welcome Message (you can use $user$ to put users\'s name)' }, { name: 'backgroundColor', type: 'str', defaultValue: '#FF69B4', required: true, label: 'Background color, default: #FF69B4 (Hot Pink)' }, { name: 'foregroundColor', type: 'str', defaultValue: '#FFFFFF', required: true, label: 'Foreground color, default: #FFFFFF (White)' } ]; cb.onEnter(({ user }) => { if (user['gender'] == 'f') { cb.setTimeout(function() { helloF(user)}, 7000); } else { cb.setTimeout(function() { helloM(user)}, 3000); } });
© Copyright Chaturbate 2011- 2025. All Rights Reserved.