Bots Home
|
Create an App
Kyle2-testrv3
Author:
rhend99
Description
Source Code
Launch Bot
Current Users
Created by:
Rhend99
// Condensed // vars var ArTy1 = []; var ArTy2 = []; cb.settings_choices = [ {name: 'thankyou1_description', type: 'str', minLength: 0, maxLength: 255}, {name: 'thankyou2_description', type: 'str', minLength: 0, maxLength: 255} ]; // handlers cb.onTip(function(tip) { apply_ty(tip['from_user']); // CHANGED }); // helper functions function apply_ty(sUser) { // CHANGED var COLOR_YELLOW = '#FFFF00'; var COLOR_BLACK = '#000000'; var COLOR_WHITE = '#FFFFFF'; var iTy1Rnd = (Math.round(Math.random() * (ArTy1.length-1))); var iTy2Rnd = (Math.round(Math.random() * (ArTy2.length-1))); var s1 = '' + ArTy1[iTy1Rnd] + ' ' + sUser + '! ' + ArTy2[iTy2Rnd]; cb.sendNotice(s1, '', COLOR_WHITE, COLOR_BLACK, 'bold'); } function init2() { // CHANGED var s1 = '' + cb.settings.thankyou1_description; var s2 = '' + cb.settings.thankyou2_description; ArTy1 = s1.split('*'); ArTy2 = s2.split('*'); } function init() { init2(); // CHANGED } init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.