Apps Home
|
Create an App
test_rrm
Author:
redreefmax
Description
Source Code
Launch App
Current Users
Created by:
Redreefmax
/** Name: Afina Lovely's Ultimate Bot Author: redreefmax Creation Date: 2/05/18 Date Last Edited: 2/05/18 Live Version: 0.1 Test Version: 0.1 **/ /** Purpose Room Control King Tip Leader Board Notifier Private Messages in Chat Make it Rain/snow Games **/ // Settings for chaturbate cb['settings_choices'] = [{ name: 'precipitation_tokens', type: 'int', minValue: 1, maxValue: 10000, defaultValue: 100, label: 'Minimum Tips to make it rain/snow' }, { name: 'precipitation_amount', type: 'int', minValue: 1, maxValue: 50, defaultValue: 25, label: 'Number of lines you want it to rain/snow.' }, { name: 'precipitation_type', type: 'choice', choice1: 'rain', choice2: 'snow', defaultValue: 'rain', label: 'Rain|$$$ or Snow|***' }, { name: 'colorRain', label: '$$$|Rain Dollar Color|$$$? (Use HTML colors default yellow #FFFF00) ', type: 'str', minLength: 0, maxLength: 8, required: !1, defaultValue: '#FFFF00' }, { name: 'colorBackgroundRain', label: '$$$|Rain Dollar Background Color|$$$? (Use HTML colors default Green #01DF01) ', type: 'str', minLength: 0, maxLength: 8, required: !1, defaultValue: '#01DF01' }, { name: 'colorSnow', label: '***|Snow Color|***? (Use HTML colors default white #FFFFFF) ', type: 'str', minLength: 0, maxLength: 8, required: !1, defaultValue: '#FFFFFF' }, { name: 'colorBackgroundSnow', label: '***|Snow Background Color|***? (Use HTML colors default blue #00BFFF) ', type: 'str', minLength: 0, maxLength: 8, required: !1, defaultValue: '#00BFFF' }]; precipitation_tokens = cb['settings']['precipitation_tokens']; precipitation_amount = cb['settings']['precipitation_amount']; precipitation_type = cb['settings']['precipitation_type']; colorSnow = cb['settings']['colorSnow']; colorBackgroundSnow = cb['settings']['colorBackgroundSnow']; colorRain = cb['settings']['colorRain']; colorBackgroundRain = cb['settings']['colorBackgroundRain']; cb['onTip'](function(tip) { tipper = tip['from_user']; if (tip['amount'] >= cb['settings']['precipitation_tokens'] && cb['settings']['precipitation_type'] == 'rain') { cb['sendNotice']('$$$ ' + tipper + ' made it rain! $$$ ','',colorRain,colorBackgroundRain, 'bold',''); for (i = 0; i < cb['settings']['precipitation_amount']; i++) { var dollars = Math['floor']((Math['random']() * 10) + 1), msg = ''; while(dollars) { msg += '$'; dollars--; } cb['sendNotice'](msg,'', colorBackgroundRain, colorRain, 'bold',''); } cb['sendNotice'](' :dollars ' + tipper + ' made it rain! :dollars ','', colorRain, colorBackgroundRain, 'bold', ''); } if (tip['amount'] >= cb['settings']['precipitation_tokens'] && cb['settings']['precipitation_type'] == 'snow') { cb['sendNotice']('*** ' + tipper + ' made it snow! *** ','',colorSnow,colorBackgroundSnow, 'bold',''); for (i = 0; i < cb['settings']['precipitation_amount']; i++) { var dollars = Math['floor']((Math['random']() * 10) + 1), msg = ''; while(dollars) { msg += '* ❄ * ❅ ✴ * ❆ ✺'; dollars--; } cb['sendNotice'](msg,'', colorBackgroundSnow, colorSnow, 'bold',''); } cb['sendNotice'](' :snowmanmelt ' + tipper + ' made it snow! :snowmanmelt ','', colorSnow, colorBackgroundSnow, 'bold', ''); } });
© Copyright Chaturbate 2011- 2025. All Rights Reserved.