aboutsummaryrefslogtreecommitdiff
path: root/commands/Fun/slots.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/Fun/slots.js')
-rw-r--r--commands/Fun/slots.js6
1 files changed, 4 insertions, 2 deletions
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 = {