aboutsummaryrefslogtreecommitdiff
path: root/commands
diff options
context:
space:
mode:
authorAlee <Alee14498@gmail.com>2019-10-21 05:03:56 +0000
committerAlee <Alee14498@gmail.com>2019-10-21 05:03:56 +0000
commit4c242ad7eef8202e58aac159810328b88a04749d (patch)
tree047b6f42c76013903cbef6e494e9a4ba323cabee /commands
parentb6d9e3305107c221741108a8de7559c9d7f59f14 (diff)
downloadPokeBot-4c242ad7eef8202e58aac159810328b88a04749d.tar.gz
PokeBot-4c242ad7eef8202e58aac159810328b88a04749d.tar.bz2
PokeBot-4c242ad7eef8202e58aac159810328b88a04749d.zip
Make bot invisible when powered down
Diffstat (limited to 'commands')
-rw-r--r--commands/Owners Only/poweroff.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/Owners Only/poweroff.js b/commands/Owners Only/poweroff.js
index 4bd7f75..e369b0a 100644
--- a/commands/Owners Only/poweroff.js
+++ b/commands/Owners Only/poweroff.js
@@ -13,6 +13,7 @@ exports.run = async (bot, msg) => {
}
else {
await msg.reply(':warning: Pokebot is now powering off!');
+ await bot.user.setStatus('invisible')
console.log('Pokebot is now powering off...');
process.exit(0);
}