From 9a6661af9ca233dbf8de1b19c1d0289eda383d4c Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 9 Mar 2018 21:53:41 -0500 Subject: its all the same slots system --- commands/Fun/slots.js | 69 ++++++++++++++++----------------------------------- 1 file changed, 22 insertions(+), 47 deletions(-) (limited to 'commands/Fun/slots.js') 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!', +}; -- cgit v1.2.3