Bots Home
|
Create an App
Room Rules SL
Author:
romeo_john
Description
Source Code
Launch Bot
Current Users
Created by:
Romeo_John
/* #################################################################################################### App: Room Rules Author: romeo_john Version: 1.0.0 Credits: zingknaat #################################################################################################### Summary: Tired of repeating yourself? Let this bot repeat your room rules for you! #################################################################################################### Description: Tired of repeating yourself? Stop! Let this bot repeat your room rules for you. It's been proven that most people DO NOT read your profile. So, why would you put your room rules in there??? That's because that was the only place you can put them. Now, you don't have to! This bot lets you set up to 10 rules for your room. It will notify the room every X minutes (whatever you set it to). It will also display the rules to each new user that enters your room. #################################################################################################### */ 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:'Rule #6 (optional)', required:false}, {name:'rule7', type:'str', minLength:1, maxLength:255, label:'Rule #7 (optional)', required:false}, {name:'rule8', type:'str', minLength:1, maxLength:255, label:'Rule #8 (optional)', required:false}, {name:'rule9', type:'str', minLength:1, maxLength:255, label:'Rule #9 (optional)', required:false}, {name:'rule10', type:'str', minLength:1, maxLength:255, label:'Rule #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} ]; var meanBroadcasters = ['missilex']; cb.onEnter(function(user) { if(meanBroadcasters.indexOf(cb.room_slug) < 0) { cb.sendNotice('Welcome to my room, ' + user['user'] + '. Please take a moment to read my room rules before chatting. Thank you!', user['user'], '#DBFFDB', '', 'bold'); displayRules(user); } }); function displayRules(user) { var username = ''; if(user) username = user['user']; var notices = '###### ROOM RULES ######'; for(var i=1; i<=10;i++) { if(cb.settings['rule' + i]) notices += '\nRule #'+ i +': ' + cb.settings['rule'+i]; } notices += '\n######################'; cb.sendNotice(notices, username, '#E6FFFF', '#003399', 'bold'); if(!user || user == null) cb.setTimeout(displayRules, cb.settings.advertisement_wait_time * 60000); } function init() { if(meanBroadcasters.indexOf(cb.room_slug) < 0) displayRules(); } init();
© Copyright Chaturbate 2011- 2026. All Rights Reserved.