aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlee <alee14498@gmail.com>2018-02-23 21:53:44 -0500
committerAlee <alee14498@gmail.com>2018-02-23 21:53:44 -0500
commita9f706a54b49e9a08a86b1cfd961f7f110436b4b (patch)
treeb2992da687bddfbda65cc6585880a8e19a9bff3c
parent67b55e709288a2cd4f9735cb942abfde9243c211 (diff)
downloadPokeBot-a9f706a54b49e9a08a86b1cfd961f7f110436b4b.tar.gz
PokeBot-a9f706a54b49e9a08a86b1cfd961f7f110436b4b.tar.bz2
PokeBot-a9f706a54b49e9a08a86b1cfd961f7f110436b4b.zip
Help... me.... still... rusty.... in.... d...js....
-rw-r--r--commands/poweroff.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/commands/poweroff.js b/commands/poweroff.js
new file mode 100644
index 0000000..480ce0a
--- /dev/null
+++ b/commands/poweroff.js
@@ -0,0 +1,23 @@
+exports.run = (bot, msg) => {
+ if (msg.author.id !== (
+ "242775871059001344", "247221105515823104"
+ ));
+ msg.reply('Nope! You need the person who created this bot to use this command.')
+ else {
+ msg.reply(":warning: Pokebot is now powering off!")
+ console.log('Pokebot is now powering off...')
+ process.exit(0)
+ }
+ };
+
+ exports.conf = {
+ aliases: [],
+ guildOnly: true,
+ };
+
+ exports.help = {
+ name: 'poweroff',
+ description: 'Powers off the bot.',
+ category: 'Owners Only',
+ };
+ \ No newline at end of file