diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-03-09 21:53:41 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-03-09 21:53:41 -0500 |
| commit | 9a6661af9ca233dbf8de1b19c1d0289eda383d4c (patch) | |
| tree | b20676e8a8a68fa4fc723e03a8f0b179e307481f /commands/Fun/slots.js | |
| parent | ef137f3367d107db420acddf5842e67e4a0ba4da (diff) | |
| download | PokeBot-9a6661af9ca233dbf8de1b19c1d0289eda383d4c.tar.gz PokeBot-9a6661af9ca233dbf8de1b19c1d0289eda383d4c.tar.bz2 PokeBot-9a6661af9ca233dbf8de1b19c1d0289eda383d4c.zip | |
its all the same slots system
Diffstat (limited to 'commands/Fun/slots.js')
| -rw-r--r-- | commands/Fun/slots.js | 69 |
1 files changed, 22 insertions, 47 deletions
diff --git a/commands/Fun/slots.js b/commands/Fun/slots.js index ca5f585..4f30a10 100644 --- a/commands/Fun/slots.js +++ b/commands/Fun/slots.js @@ -19,52 +19,27 @@ * *************************************/ exports.run = (bot, msg) => { - const slot1 = [ - ':one:', - ':two:', - ':three:', - ':four:', - ':five:', - ':six:', - ':seven:', - ':eight:', - ':nine:', - ]; + const slot1 = [ + ':one:', + ':two:', + ':three:', + ':four:', + ':five:', + ':six:', + ':seven:', + ':eight:', + ':nine:', + ]; - const slot2 = [ - ':one:', - ':two:', - ':three:', - ':four:', - ':five:', - ':six:', - ':seven:', - ':eight:', - ':nine:', - ]; + msg.channel.send('If the numbers are sequenced forwards or backwards, you win!\n\n> ' + slot1[Math.floor(Math.random() * slot1.length)] + ' ' + slot1[Math.floor(Math.random() * slot1.length)] + ' ' + slot1[Math.floor(Math.random() * slot1.length)]); +}; - const slot3 = [ - ':one:', - ':two:', - ':three:', - ':four:', - ':five:', - ':six:', - ':seven:', - ':eight:', - ':nine:', - ]; - - msg.channel.send('If the numbers are sequenced forwards or backwards, you win!\n\n> ' + slot1[Math.floor(Math.random() * slot1.length)] + ' ' + slot2[Math.floor(Math.random() * slot2.length)] + ' ' + slot3[Math.floor(Math.random() * slot3.length)]); - }; - - exports.conf = { - aliases: [], - guildOnly: true, - }; - - exports.help = { - name: 'slots', - description: 'Develop a gambling addiction by playing Slots!', - }; -
\ No newline at end of file +exports.conf = { + aliases: [], + guildOnly: true, +}; + +exports.help = { + name: 'slots', + description: 'Develop a gambling addiction by playing Slots!', +}; |
