aboutsummaryrefslogtreecommitdiff
path: root/commands/poweroff.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2020-01-02 13:53:18 -0500
committerAndrew Lee <alee14498@protonmail.com>2020-01-02 13:53:18 -0500
commite5a8fa84938e76dcc7177b46efab1815eca7c293 (patch)
treed53e8fd7811bb4e4ae2b11380bba8df1d2d7b704 /commands/poweroff.js
parent898d230151b13b386108e139ffe34648da45675d (diff)
downloadAleeBot-e5a8fa84938e76dcc7177b46efab1815eca7c293.tar.gz
AleeBot-e5a8fa84938e76dcc7177b46efab1815eca7c293.tar.bz2
AleeBot-e5a8fa84938e76dcc7177b46efab1815eca7c293.zip
2020 changes and tweaked some stuff
Diffstat (limited to 'commands/poweroff.js')
-rw-r--r--commands/poweroff.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands/poweroff.js b/commands/poweroff.js
index ed85202..9011567 100644
--- a/commands/poweroff.js
+++ b/commands/poweroff.js
@@ -1,7 +1,7 @@
/****************************************
*
* Poweroff: Command for AleeBot
- * Copyright (C) 2018 AleeCorp
+ * Copyright (C) 2017-2020 Alee Productions
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -20,6 +20,7 @@
module.exports.run = async (client, message, args) => {
if (!['242775871059001344',].includes(message.author.id)) return message.reply('Nope! You need the person who created this bot to use this command.');
await message.reply(':warning: AleeBot will now exit!');
+ client.destroy();
process.exit(0);
};