Bots Home
|
Create an App
Sarah's_Herald
Author:
gaius
Description
Source Code
Launch Bot
Current Users
Created by:
Gaius
var i=0; var MAXITEMS=10; cb.settings_choices = [ {name: 'msgonentry', type: 'choice', choice1: 'yes', choice2: 'no', defaultValue: 'yes', label: "Mostrar 'Mensaje 1' de forma privado cuando Usuario entra en la sala"}, {name:'msg1', type:'str', required: true, label:'Mensaje 1',}, {name:'msg2', type:'str', required: false, label:'Mensaje 2',}, {name:'msg3', type:'str', required: false, label:'Mensaje 3',}, {name:'msg4', type:'str', required: false, label:'Mensaje 4',}, {name:'msg5', type:'str', required: false, label:'Mensaje 5',}, {name:'msg6', type:'str', required: false, label:'Mensaje 6',}, {name:'msg7', type:'str', required: false, label:'Mensaje 7',}, {name:'msg8', type:'str', required: false, label:'Mensaje 8',}, {name:'msg9', type:'str', required: false, label:'Mensaje 9',}, {name:'msg10', type:'str', required: false, label:'Mensaje 10',}, {name:'msgcolor', type:'str', label:'Color de los Avisos (valor de HTML))', defaultValue: '#54066C'}, {name: 'chat_ad', type:'int', minValue: 1, maxValue: 999, defaultValue: 10, label: 'Intervalo entre los mensajes, en minutos (mÃnimo 1)'} ]; cb.onEnter(function(user) { if (cb.settings['msgonentry'] == 'yes') { cb.sendNotice('Hello ' + user['user'] + '. ' + cb.settings['msg1'],user['user'],'',cb.settings['msgcolor'],'bold'); } }); function chatAd() { var msg; while (cb.settings['msg' + (i + 1)] == 0) { //skip empty messages i++; i %= MAXITEMS; } msg = cb.settings['msg' + (i + 1)]; i++; i %= MAXITEMS; cb.sendNotice(msg,'','',cb.settings['msgcolor'],'bold'); cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); } cb.setTimeout(chatAd, (cb.settings.chat_ad * 60000)); function init() { } init();
© Copyright Freesexcam 2011- 2024. All Rights Reserved.