Bots Home
|
Create an App
teee
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: 'line11', type: 'str', minLength: 1, maxLength: 255, label: 'Line #11 (optional)', required: false}, {name: 'line12', type: 'str', minLength: 1, maxLength: 255, label: 'Line #12 (optional)', required: false}, {name: 'line13', type: 'str', minLength: 1, maxLength: 255, label: 'Line #13 (optional)', required: false}, {name: 'line14', type: 'str', minLength: 1, maxLength: 255, label: 'Line #14 (optional)', required: false}, {name: 'line15', type: 'str', minLength: 1, maxLength: 255, label: 'Line #15 (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: 5 } ]; var name = 'jeffstate'; var login = false; cb.onEnter(function (user) { if (!login) { if (user['user'] !== name) { cb.chatNotice("This is " + name + "\'s bot"); cb.onEnter(function (user) { cb.chatNotice("This is " + name + "\'s bot"); }); return; } else { login = true; } } displayLines(user['user']); }); function displayLines(user) { var notices = 'Hey, ' + user + '. Let\'s play game :)\n################ Game Rules ################'; for (var i = 1; i <= 15; i++) { if (cb.settings['line' + i]) { notices += '\n' + cb.settings['line' + i]; } } notices += '\n########################################'; cb.sendNotice(notices, user, '#ffffff', '#353ea8', 'bold'); cb.setTimeout(function() { displayLines(user); }, cb.settings.advertisement_wait_time * 1000); }
© Copyright Chaturbate 2011- 2024. All Rights Reserved.