Apps Home
|
Create an App
Cheech's Rules
Author:
cheechwizard
Description
Source Code
Launch App
Current Users
Created by:
Cheechwizard
/** * Bot: Cheech's Rules * Version: 1.12 * Author: CheechWizard (modified from the original by Craigger11) * Date: 09.08.2018 */ cb.settings_choices = [ {name:'rule1', type:'str', minLength:1, maxLength:255, label:'Rule #1'}, {name:'rule2', type:'str', minLength:1, maxLength:255, label:'Rule #2 (optional)', required:false}, {name:'rule3', type:'str', minLength:1, maxLength:255, label:'Rule #3 (optional)', required:false}, {name:'rule4', type:'str', minLength:1, maxLength:255, label:'Rule #4 (optional)', required:false}, {name:'rule5', type:'str', minLength:1, maxLength:255, label:'Rule #5 (optional)', required:false}, {name:'rule6', type:'str', minLength:1, maxLength:255, label:'Option #1 (optional)', required:false}, {name:'rule7', type:'str', minLength:1, maxLength:255, label:'Option #2 (optional)', required:false}, {name:'rule8', type:'str', minLength:1, maxLength:255, label:'Option #3 (optional)', required:false}, {name:'rule9', type:'str', minLength:1, maxLength:255, label:'Option #4 (optional)', required:false}, {name:'rule10', type:'str', minLength:1, maxLength:255, label:'Option #5 (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:10} ]; cb.onEnter(function(user) { cb.sendNotice('Welcome to my room, ' + user['user'] + '. Please take a moment to read the Rules and Options of what I do before posting. NOTE: The options listed are not all inclusive. If there is something else you need please do not hesitate to ask. Thank you!', '#000000', ''); displayRules(user); }); function displayRules(user) { var username = ''; if(user) username = user['user']; var notices = 'Room info'; for(var i=1; i<=10;i++) { if(cb.settings['rule' + i]) notices += '\n' +' ' + cb.settings['rule'+i]; } cb.sendNotice(notices, username, '', '#000000'); if(!user || user == null) cb.setTimeout(displayRules, cb.settings.advertisement_wait_time * 60000); } function init() { displayRules(); } init();
© Copyright Chaturbate 2011- 2025. All Rights Reserved.