Bots Home
|
Create an App
Pop Tarts
Author:
pokedex
Description
Source Code
Launch Bot
Current Users
Created by:
Pokedex
cb.settings_choices = [ { name: 'welcome', label: 'Welcome Notification: (This will greet your viewers as they enter your room)', type: 'str', minLength: 1, maxLength: 255, defaultValue: "Welcome to my room!" }, { name: 'notification', label: 'Remind your viewers to be polite and have fun!', type: 'str', minLength: 1, maxLength: 255, defaultValue: 'Please be kind to the broadcaster and remember to have fun!' }, { name: 'timer', label: 'How often should the viewers see the notification? (This timer is in seconds, and 60 seconds are in 1 minute)', type: 'int', minValue: 1, maxValue: 6000, defaultValue: 60 }, { name: 'thanks', label: 'Thank your tippers with an automated "Thank You" message!', type: 'str', minLength: 1, maxLength: 255, defaultValue: "Thank you for your tip!" }, ]; cb.onEnter(function(user) { cb.sendNotice("Hello, " + user['user'] + "! " + cb.settings.welcome, user['user']); }); cb.onTip(function(tip) { cb.sendNotice(tip.from_user + "! " + cb.settings.thanks); }); function notify() { cb.chatNotice(cb.settings.notification); cb.setTimeout(notify, 1000 * cb.settings.timer); } cb.setTimeout(notify, 1000 * cb.settings.timer);
© Copyright Chaturbate 2011- 2024. All Rights Reserved.