Bots Home
|
Create an App
WhiteOnRice69 - Ring The Gong
Author:
realn1ce
Description
Source Code
Launch Bot
Current Users
Created by:
Realn1ce
// Title: Make It gong // Author: jalbre (justin@brechtmedia.com)- edited by realn1ce // Version: 1.0 (07/20/2015) // Description: Hit the GONG when minimum tip is reached var colorChoices = ['red', 'green', 'orange', 'blue', 'purple', 'pink']; cb.settings_choices = [ {name: 'min_tokens', type: 'int', minValue: 1, maxValue: 10000, defaultValue: 500, label: "Minimum Tips to make it gong"}, {name: 'gong_amount', type: 'int', minValue: 1, maxValue: 50, defaultValue: 25, label: "Number of lines you want it to gong"}, {name: 'gong_color', type: 'choice', choice1:'Randomize Colors', choice2:'red', choice3:'green', choice4:'orange', choice5:'blue', choice6:'purple', choice7:'pink', defaultValue: 'Randomize Colors', label: 'Color of gong (SOON)'} ]; cb.onTip(function(tip) { if(parseInt(tip['amount']) >= cb.settings.min_tokens) { globalMessage('OoO '+ tip['from_user'] +' joined the :GongSquad OoO', ''); for(i=0;i<cb.settings.gong_amount;i++) { var dollars = Math.floor((Math.random()*10)+1), color = cb.settings.gong_color, msg = ''; if(color == 'Randomize Colors') { color = colorChoices[Math.floor((Math.random()*6)+1)]; } while(dollars) { msg += 'Oo'; dollars--; } globalMessage(msg, color); } globalMessage('OoO '+ tip['from_user'] +' made it :chinese-h1 GONG! :chinese-h1 OoO', ''); } }); function globalMessage(message, color) { //Unfortunately color isn't supported yet. Soon! cb.chatNotice(message); }
© Copyright Chaturbate 2011- 2026. All Rights Reserved.