Bots Home
|
Create an App
Rumata roulette
Author:
rumataestor
Description
Source Code
Launch Bot
Current Users
Created by:
Rumataestor
/** * App: * Version: * Author: * Date: */ cb.settings_choices = [ { name: 'tokens', type: 'int', minValue: 1, maxValue: 1000, label: 'How much do you want to charge per roll?', defaultValue: 25 }, {name: 'prize_1', type: 'str', label: 'Prize for rolling 1'}, {name: 'prize_2', type: 'str', label: 'Prize for rolling 2'}, {name: 'prize_3', type: 'str', label: 'Prize for rolling 3'}, {name: 'prize_4', type: 'str', label: 'Prize for rolling 4'}, {name: 'prize_5', type: 'str', label: 'Prize for rolling 5'}, {name: 'prize_6', type: 'str', label: 'Prize for rolling 6'}, ]; var counter = 6; cb.onTip(function (tip) { if (parseInt(tip['amount']) == cb.settings.tokens) { // roll(tip['from_user']); var q = getRandom(counter); counter--; cb.sendNotice(counter+' No one h '+q, '', '', '', 'bold'); } }); function getRandom(counter) { return Math.floor(Math.random() * counter) + 1; }
© Copyright Chaturbate 2011- 2025. All Rights Reserved.