aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
Diffstat (limited to 'commands')
-rw-r--r--commands/poweroff.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/poweroff.js b/commands/poweroff.js
index e5e26b8..be2fa54 100644
--- a/commands/poweroff.js
+++ b/commands/poweroff.js
@@ -1,9 +1,9 @@
-exports.run = (bot, msg) => {
+exports.run = async (bot, msg) => {
if (!['242775871059001344', '247221105515823104', '236279900728721409'].includes(msg.author.id)) {
msg.reply('Nope! You need the person who created this bot to use this command.');
}
else {
- msg.reply(':warning: Pokebot is now powering off!');
+ await msg.reply(':warning: Pokebot is now powering off!');
console.log('Pokebot is now powering off...');
process.exit(0);
}