Bots Home
|
Create an App
Bambii's Wheel of Fortune
Author:
mrdabomb
Description
Source Code
Launch Bot
Current Users
Created by:
Mrdabomb
// Wheel Of Fortune! // Parsimonious version by TransFat // (now with more changes than just parsimony) // based on the original by SweetDann cb.settings_choices = [ {name:'cost_per_spin', type:'int', minValue:1, maxValue:999, defaultValue:25, label: 'Cost Per Spin Of The Wheel (1-999): '}, {name:'advertise_in_chat', type:'int', minValue:1, maxValue:999, defaultValue:10, label: 'How Often To Advertise The Plugin: (min)'}, {name:'pos1', type:'str', minLength: 1, maxLength: 255, label: 'Reward #1 '}, {name:'pos2', type:'str', minLength: 1, maxLength: 255, label: 'Reward #2 '}, {name:'pos3', type:'str', minLength: 1, maxLength: 255, label: 'Reward #3 '}, {name:'pos4', type:'str', minLength: 0, maxLength: 255, label: 'Reward #4 ', required: false}, {name:'pos5', type:'str', minLength: 0, maxLength: 255, label: 'Reward #5 ', required: false}, {name:'pos6', type:'str', minLength: 0, maxLength: 255, label: 'Reward #6 ', required: false}, {name:'pos7', type:'str', minLength: 0, maxLength: 255, label: 'Reward #7 ', required: false}, {name:'pos8', type:'str', minLength: 0, maxLength: 255, label: 'Reward #8 ', required: false}, {name:'pos9', type:'str', minLength: 0, maxLength: 255, label: 'Reward #9 ', required: false}, {name:'pos10', type:'str', minLength: 0, maxLength: 255, label: 'Reward #10 ', required: false}, ]; cb.chatNotice('Wheel of Fortune, modified by @TransFat from the original by @SweetDann.'); cb.onMessage(function (msg) { var userName = msg['user']; if(msg['m'] == '/rewards') { for(var x = 0; x < rewards.length; x++) { cb.chatNotice('Reward ' + x + ': ' + rewards[x], userName); } } return msg; }); function advert() { cb.chatNotice('Wheel of Fortune is active! Tip ' + cb.settings.cost_per_spin + ' to play! Type \'/rewards\' to get a wheel reward listing.'); cb.setTimeout(advert, (cb.settings.advertise_in_chat * 60000)); } cb.setTimeout(advert, (cb.settings.advertise_in_chat * 60000));
© Copyright Chaturbate 2011- 2024. All Rights Reserved.