Bots Home
|
Create an App
Gods Bot
Author:
god1337
Description
Source Code
Launch Bot
Current Users
Created by:
God1337
/** * Bot: Gods Bot * Version: 1.0 * Author: god1337 * Date: 6/13/2014 */ cb.settings_choices = [ {name:'rule1', type:'str', minLength:1, maxLength:255, label:'Line #1'}, {name:'rule2', type:'str', minLength:1, maxLength:255, label:'Line #2 (optional)', required:false}, {name:'rule3', type:'str', minLength:1, maxLength:255, label:'Line #3 (optional)', required:false}, {name:'rule4', type:'str', minLength:1, maxLength:255, label:'Line #4 (optional)', required:false}, {name:'rule5', type:'str', minLength:1, maxLength:255, label:'Line #5 (optional)', required:false}, {name:'rule6', type:'str', minLength:1, maxLength:255, label:'Line #6 (optional)', required:false}, {name:'rule7', type:'str', minLength:1, maxLength:255, label:'Line #7 (optional)', required:false}, {name:'rule8', type:'str', minLength:1, maxLength:255, label:'Line #8 (optional)', required:false}, {name:'rule9', type:'str', minLength:1, maxLength:255, label:'Line #9 (optional)', required:false}, {name:'rule10', type:'str', minLength:1, maxLength:255, label:'Line #10 (optional)', required:false}, {name:'advertisement_wait_time', type:'choice', label:'Notification Time (in minutes)', choice1:5, choice2:10, choice3:15, choice4:20, choice5:25, choice6:30, choice7:45, choice8:60, defaultValue:15} ]; cb.onEnter(function(user) { cb.sendNotice('Welcome to Heaven, ' + user['user'] + '. Please take a moment to read the room notice before chatting. Thank you!', user['user'], '#FF69B4', '', 'bold'); displayRules(user); }); function displayRules(user) { var username = ''; if(user) username = user['user']; var notices = '########## ROOM RULES & NOTIFICATIONS ##########'; for(var i=1; i<=10;i++) { if(cb.settings['rule' + i]) notices += '\n~~> #'+ i +': ' + cb.settings['rule'+i]; } cb.sendNotice(notices, username, '', '#FF69B4', 'bold'); if(!user || user == null) cb.setTimeout(displayRules, cb.settings.advertisement_wait_time * 60000); } function init() { displayRules(); } init();
© Copyright Chaturbate 2011- 2026. All Rights Reserved.