Bots Home
|
Create an App
switcher
Author:
test_kaffeebohne
Description
Source Code
Launch Bot
Current Users
Created by:
Test_Kaffeebohne
'use strict'; //var cb; cb.settings_choices = [ { name: 'switchOTF', type: 'choice', choice1: 'Yes', choise2: 'No', label: 'Switch Bot on the fly without loosing goals?' } ]; if (cb.settings.switchOTF === 'Yes') { cb_settings_choices_switchotf(); } else { cb_settings_choices_noswitch(); } function cb_settings_choices_switchotf() { cb.settings_choices = [ { name: 'var1', type: 'int', label: 'Some text_yes switch', minValue: 1, maxValue: 5, defaultValue: 3 } ]; } function cb_settings_choices_noswitch() { cb.settings_choices = [ { name: 'var1', type: 'str', label: 'Some text_no switch', choice1: 'Foo', choice2: 'Bar', choice3: 'Baz', defaultValue: 'Foo' } ]; } //cb.settings.switchOTF = 'Yes'; /** * On first script run. Setup everything, Launch choices. * * @returns {undefined} */ function init() { // // if (cb.settings.switchOTF === 'No') { // cb_settings_choices_noswitch(); // } else { // cb_settings_choices_switchotf(); // } cb.sendNotice(cb.var1, null, '0XFFFFFF', '0X000000', 'bold', null); } // start loop init();
© Copyright Chaturbate 2011- 2025. All Rights Reserved.