aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-03-09 22:28:48 -0500
committerUnknown <jtsshieh@outlook.com>2018-03-09 22:28:48 -0500
commit777c9b20d49ae0fab9954d1156a2caf2310c054f (patch)
tree46e1f7a1227a1400269b0fcdcfd736740547b3a7 /commands
parent14954ccb8f3704037b773e5646f0045fed7f764e (diff)
downloadPokeBot-777c9b20d49ae0fab9954d1156a2caf2310c054f.tar.gz
PokeBot-777c9b20d49ae0fab9954d1156a2caf2310c054f.tar.bz2
PokeBot-777c9b20d49ae0fab9954d1156a2caf2310c054f.zip
dimbo
Diffstat (limited to 'commands')
-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 = {