Bots Home
|
Create an App
Welcome to the room message
Author:
gonadsphallusappdev
Description
Source Code
Launch Bot
Current Users
Created by:
Gonadsphallusappdev
cb.settings_choices = [ { name: 'welcomeMsg', type: 'str', defaultValue: 'Welcome $user$!, Enjoy and feel free to Follow!', required: true, label: 'Welcome Message (use [visitor] to add guests name)' }, { name: 'backgroundColor', type: 'str', defaultValue: '#FFFFFF', required: true, label: 'Background color, default: #FFFFFF (White)' }, { name: 'foregroundColor', type: 'str', defaultValue: '#350035', required: true, label: 'Foreground color, default: #350035 (Eggplant Purple)' } ]; cb.onEnter(({ user }) => { const { welcomeMsg, backgroundColor, foregroundColor } = cb.settings; let msg = welcomeMsg.replace(/\[visitor\]/g, user); cb.sendNotice(msg, user, backgroundColor, foregroundColor, 'bold'); });
© Copyright Chaturbate 2011- 2024. All Rights Reserved.