aboutsummaryrefslogtreecommitdiff
path: root/commands/Fun
diff options
context:
space:
mode:
authorUnknown <jtsshieh@outlook.com>2018-03-09 22:24:10 -0500
committerUnknown <jtsshieh@outlook.com>2018-03-09 22:24:10 -0500
commit66f92c9566e7410f9bc8273d709eec7adbb15326 (patch)
treeb77ad1743070145fc761699a7b98cd729bc3e0f6 /commands/Fun
parentf5af521bac7bfa34a53a069d031428e151ef9c6e (diff)
downloadPokeBot-66f92c9566e7410f9bc8273d709eec7adbb15326.tar.gz
PokeBot-66f92c9566e7410f9bc8273d709eec7adbb15326.tar.bz2
PokeBot-66f92c9566e7410f9bc8273d709eec7adbb15326.zip
FIX DUMBO
Diffstat (limited to 'commands/Fun')
-rw-r--r--commands/Fun/balance.js28
-rw-r--r--commands/Fun/getcredits.js27
2 files changed, 27 insertions, 28 deletions
diff --git a/commands/Fun/balance.js b/commands/Fun/balance.js
index d5e96bb..6bfd2b0 100644
--- a/commands/Fun/balance.js
+++ b/commands/Fun/balance.js
@@ -18,17 +18,17 @@
*
* *************************************/
-exports.run = (bot, msg) => {
- msg.reply(bot.exports.economy.get(msg.author.id) + 'credits');
- };
-
- exports.conf = {
- aliases: ['bal', 'money', 'credits'],
- guildOnly: true,
- };
-
- exports.help = {
- name: 'balance',
- description: 'Check your balance!',
- };
- \ No newline at end of file
+exports.run = async (bot, msg) => {
+ const credits = await bot.plugins.economy.get(msg.author.id);
+ msg.reply(credits + ' credits');
+};
+
+exports.conf = {
+ aliases: ['bal', 'money', 'credits'],
+ guildOnly: true,
+};
+
+exports.help = {
+ name: 'balance',
+ description: 'Check your balance!',
+};
diff --git a/commands/Fun/getcredits.js b/commands/Fun/getcredits.js
index c2736b0..21c6dd1 100644
--- a/commands/Fun/getcredits.js
+++ b/commands/Fun/getcredits.js
@@ -19,17 +19,16 @@
* *************************************/
exports.run = (bot, msg) => {
- bot.exports.economy.add(msg.author.id, 10);
- msg.reply('Added 10 credits.');
- };
-
- exports.conf = {
- aliases: [],
- guildOnly: true,
- };
-
- exports.help = {
- name: 'getcredits',
- description: 'Add credits to your account.',
- };
- \ No newline at end of file
+ bot.plugins.economy.add(msg.author.id, 10);
+ msg.reply('Added 10 credits.');
+};
+
+exports.conf = {
+ aliases: [],
+ guildOnly: true,
+};
+
+exports.help = {
+ name: 'getcredits',
+ description: 'Add credits to your account.',
+};