diff options
| author | Alee <Alee14498@gmail.com> | 2020-01-02 14:46:06 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-02 14:46:06 -0500 |
| commit | dcec0212db88a775967f975c9c1d32dec7f63ec8 (patch) | |
| tree | 4a6c2b6f8fc6b51971ef82b18cfdc66ea33f8e06 /commands/poweroff.js | |
| parent | c8b8ba0bc5774bda115c368e8ce30a74b72b7231 (diff) | |
| download | AleeBot-dcec0212db88a775967f975c9c1d32dec7f63ec8.tar.gz AleeBot-dcec0212db88a775967f975c9c1d32dec7f63ec8.tar.bz2 AleeBot-dcec0212db88a775967f975c9c1d32dec7f63ec8.zip | |
Beta (#20)
* 2.12.0 Beta
* 2020 changes and tweaked some stuff
* remove lock
* more copyright update
* Service status, updating readme files
* readme changes
* readme changes x2
* 2.12.0 release
Diffstat (limited to 'commands/poweroff.js')
| -rw-r--r-- | commands/poweroff.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/poweroff.js b/commands/poweroff.js index ed85202..f336bed 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 @@ -19,7 +19,9 @@ * *************************************/ 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 client.channels.find('id', '606602551634296968').send("**AleeBot Status:** AleeBot is now going offline."); await message.reply(':warning: AleeBot will now exit!'); + client.destroy(); process.exit(0); }; |
