Bots Home
|
Create an App
littlebonnie's Make it Snow
Author:
ganja_babe
Description
Source Code
Launch Bot
Current Users
Created by:
Ganja_Babe
/** * App: littlebonnie’s Make it Snow * Version: 1.0 * Author: ganja_babe (thanks JHamerstix &jalbre) * Date: 2017-12-30 */ cb.settings_choices = [ {name: 'min_tokens', type: 'int', minValue: 1, maxValue: 300, defaultValue: 218, label: "Minimum Tips to make it snow"} ]; var total_tipped = 0; var i; cb.onTip(function (tip) { total_tipped = parseInt(tip['amount']); if(total_tipped >= cb.settings.min_tokens) { cb.sendNotice("$$$ " + tip['from_user'] + " made it snow! $$$", '', '#000000', '#ffffff', 'bolder'); for(i=0;i<cb.settings.rain_amount;i++) { var dollars = Math.ceil(Math.random() * 21); var msg = ''; while(dollars) { msg += "$"; dollars--; } cb.sendNotice(msg, '', '#000000', '#ffffff', 'bolder'); } cb.sendNotice(":bonkittysnow2 ", '', '#FFFFFF', '#ff0000', 'bolder'); cb.sendNotice(tip['from_user'] + " tipped " + total_tipped + " for this Snow!", '', '#000000', '#FFFFFF', 'bolder'); cb.sendNotice(" :mthankss " + tip['from_user'] + " for tipping :mclap", '', '#FFFFFF', '#ff0000', 'bolder'); cb.log(tip['from_user'] + " Tipped " + total_tipped); } }); function roomNotify() { cb.sendNotice("Tip " + cb.settings.min_tokens + " to Make it Snow :bonmakeitsnow ", '', '#FFFFFF', '#D4AF37', 'bold'); cb.setTimeout(roomNotify, 6000) } function roomNotify2() { cb.sendNotice("Tip " + cb.settings.min_tokens + " to Make it Snow :bonmakeitrain ", '', '#FFFFFF', '#D4AF37', 'bold'); cb.setTimeout(roomNotify2, 6000) } function init() { roomNotify(); // cb.setTimeout(roomNotify2, 5000) roomNotify2(); } init();
© Copyright Chaturbate 2011- 2024. All Rights Reserved.