From 777c9b20d49ae0fab9954d1156a2caf2310c054f Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 9 Mar 2018 22:28:48 -0500 Subject: dimbo --- commands/Fun/slots.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'commands/Fun') diff --git a/commands/Fun/slots.js b/commands/Fun/slots.js index e21fe02..0432347 100644 --- a/commands/Fun/slots.js +++ b/commands/Fun/slots.js @@ -18,7 +18,7 @@ * * *************************************/ -exports.run = (bot, msg) => { +exports.run = async (bot, msg) => { const slot1 = [ ':one:', ':two:', @@ -31,7 +31,9 @@ exports.run = (bot, msg) => { ':nine:', ]; - msg.channel.send('If the numbers are sequenced forwards or backwards, you win!\nCurrent Balance: ' + bot.plugins.economy.get(msg.author.id) + ' \n> ' + slot1[Math.floor(Math.random() * slot1.length)] + ' ' + slot1[Math.floor(Math.random() * slot1.length)] + ' ' + slot1[Math.floor(Math.random() * slot1.length)]); + const balance = await bot.plugins.economy.get(msg.author.id); + + msg.channel.send('If the numbers are sequenced forwards or backwards, you win!\nCurrent Balance: ' + balance + ' \n> ' + slot1[Math.floor(Math.random() * slot1.length)] + ' ' + slot1[Math.floor(Math.random() * slot1.length)] + ' ' + slot1[Math.floor(Math.random() * slot1.length)]); }; exports.conf = { -- cgit v1.2.3