Bots Home
|
Create an App
MyGreeterBot
Author:
george_dan_81_dev
Description
Source Code
Launch Bot
Current Users
Created by:
George_Dan_81_Dev
// cb.settings_choices = [ // { // name: "welcomemsgchoice", // type: "choice", // label: "Welcome Messages + Notes / Rules", // choice1: "On", // choice2: "Off", // required: false, // defaultValue: "Off", // }, // { // name: "welcomemsgtextcolor", // type: "str", // label: "Text Color (Fill in if you choose to customize.)", // defaultValue: "#000000", // minLength: 7, // maxLength: 7, // required: false, // }, // { // name: "welcomemsgbgcolor", // type: "str", // label: "Background Color (Fill in if you choose to customize.)", // defaultValue: "#FFFFFF", // minLength: 7, // maxLength: 7, // required: false, // }, // { // name: "welcomemsgrotatetime", // type: "int", // label: "Repeat Welcome Messages / Rules in (Minutes)", // minValue: 2, // maxValue: 60, // defaultValue: 7, // required: false, // }, // ]; cb.onEnter(function (user) { if (user["has_tokens"]) { // cb.chatNotice("Bienvenido " + user["user"] + "! Puedes aportar tokens con /tokens"); // cb.sendNotice( // ":tinyflower2 Dolly-Bot has started :tinyflower2", // "", // "", // "#d0a9f5", // "bold" // ); // cb.sendNotice( // 'Bienvenido ', // user["user"], // "#A6E68A", // "#FD4F4A" // ); cb.sendNotice( "Hola, bienvenido a la sala de " + cb.room_slug + " " + user["user"] +"", user["user"], "#006b94", "#ffffff" ); // cb.sendNotice(message, [to_user], [background], [foreground], [weight], [to_group]) // cb.sendNotice( // "Hola, bienvenido a la sala de " + cb.room_slug + " " + user["user"] + // // + "." + "\n " + // "", // user["user"], // "#700c0c", // "#ffffff" // ); } }); // cb.onTip((tip) => { // cb.chatNotice("Thanks for the " + tip["amount"] + "tokens!"); // }); cb.onTip(function (tip) { var fromUser = tip.from_user || ""; if (tip["amount"] > 1) { cb.chatNotice( "Gracias " + fromUser + " por tus " + tip["amount"] + " tokens!" ); } else { cb.chatNotice( "Gracias " + fromUser + " por tu aporte de " + tip["amount"] + " token!" ); } }); // cb.sendNotice(user + ": " + str, cb.room_slug, '#D4DDED', '#000080', 'bolder'); cb.onFollow(user => { cb.chatNotice(user['user'] + ' is my new follower! \uD83D\uDE00'); }); cb.onMessage(function (msg) { msg['background'] = '#9F9'; msg['foreground'] = '#000'; return msg; }); // if ( msg['user'] != cb['room_slug'] && !msg['is_mod'] && !msg['in_fanclub'] && !msg['has_tokens'] && msg['is_lite_blue'] ) { // cb.sendNotice(msg['user'] + ' is lite blue, no tokens = grey ', cb.room_slug, '#B4B4B4', '#020202', 'normal'); // cb.sendNotice(msg['user'] + ' is lite blue, no tokens = grey ', '', '#B4B4B4', '#020202', 'normal', 'red'); // } // function callme() { // cb.chatNotice("hello world"); // cb.setTimeout(callme, 10000) // } // cb.setTimeout(callme, 10000)
© Copyright Chaturbate 2011- 2025. All Rights Reserved.