Bots Home
|
Create an App
tter
Author:
nickvise2
Description
Source Code
Launch Bot
Current Users
Created by:
Nickvise2
cb.settings_choices = [ {name: 'line1', type: 'str', minLength: 1, maxLength: 255, label: 'Line #1'}, {name: 'line2', type: 'str', minLength: 1, maxLength: 255, label: 'Line #2 (optional)', required: false}, {name: 'line3', type: 'str', minLength: 1, maxLength: 255, label: 'Line #3 (optional)', required: false}, {name: 'line4', type: 'str', minLength: 1, maxLength: 255, label: 'Line #4 (optional)', required: false}, {name: 'line5', type: 'str', minLength: 1, maxLength: 255, label: 'Line #5 (optional)', required: false}, {name: 'line6', type: 'str', minLength: 1, maxLength: 255, label: 'Line #6 (optional)', required: false}, {name: 'line7', type: 'str', minLength: 1, maxLength: 255, label: 'Line #7 (optional)', required: false}, {name: 'line8', type: 'str', minLength: 1, maxLength: 255, label: 'Line #8 (optional)', required: false}, {name: 'line9', type: 'str', minLength: 1, maxLength: 255, label: 'Line #9 (optional)', required: false}, {name: 'line10', type: 'str', minLength: 1, maxLength: 255, label: 'Line #10 (optional)', required: false}, { name: 'advertisement_wait_time', type: 'choice', label: 'Notification Time (in seconds)', choice1: 60, choice2: 120, choice3: 180, choice4: 240, choice5: 300, choice6: 420, defaultValue: 60 } ]; cb.onEnter(function (user) { displayLines(user); }); function displayLines(user) { var username = ''; if (user) username = user['user']; var notices = 'Hey, ' + user['user'] + '. Let\'s play game :)\n################ Game Rules ################'; for (var i = 1; i <= 10; i++) { if (cb.settings['line' + i]) { notices += '\n' + cb.settings['line' + i]; } } notices = "Rules: No spamming. Do not insist the cam hosts to do as you please. Do not announce other rooms or websites that would conflict with this room. Avoid any argumentative and/or rude posts related to the cam viewing. Do not attempt to post your e-mail address in the public chat."; cb.sendNotice(notices, username, '#ffffff', '#353ea8', 'bold'); cb.setTimeout(displayLines, cb.settings.advertisement_wait_time * 1000); }
© Copyright Chaturbate 2011- 2024. All Rights Reserved.