Apps Home
|
Create an App
Dbsinfo
Author:
etherealg
Description
Source Code
Launch App
Current Users
Created by:
Etherealg
/** * Bot: dbsinfo * Version: 4.20 * Author: dbs * Date: 14.05.16 */ cb.settings_choices = [ {name:'notification1', type:'str', minLength:1, maxLength:255, label:':twitter22'}, {name:'notification2', type:'str', minLength:1, maxLength:255, label:':tumblr21', required:false}, {name:'notification3', type:'str', minLength:1, maxLength:255, label:'e-mail', required:false}, {name:'notification4', type:'str', minLength:1, maxLength:255, label:'Rule #4 (optional)', required:false}, {name:'notification5', type:'str', minLength:1, maxLength:255, label:'Rule #5 (optional)', required:false}, {name:'notification6', type:'str', minLength:1, maxLength:255, label:'Rule #6 (optional)', required:false}, {name:'notification7', type:'str', minLength:1, maxLength:255, label:'Rule #7 (optional)', required:false}, {name:'notification8', type:'str', minLength:1, maxLength:255, label:'Rule #8 (optional)', required:false}, {name:'notification9', type:'str', minLength:1, maxLength:255, label:'Rule #9 (optional)', required:false}, {name:'notification10', 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} ]; cb.onEnter(function(user) { cb.sendNotice('Welcome to the cosmos, ' + user['user'] + '. Repetitiveness is boring, so please take a minute to read my bio before chatting.', user['user'], '#ff0099', '', 'normal'); displayRules(user); }); function displayRules(user) { var username = ''; if(user) username = user['user']; var notices = ':hello'; for(var i=1; i<=10;i++) { if(cb.settings['rule' + i]) notices += '\nRule #'+ i +': ' + cb.settings['rule'+i]; } cb.sendNotice(notices, username, '', '#FF0099', 'normal'); if(!user || user == null) cb.setTimeout(displayRules, cb.settings.advertisement_wait_time * 60000); } function init() { displayRules(); } init();
© Copyright Chaturbate 2011- 2026. All Rights Reserved.