diff options
| author | Alee <Alee14498@gmail.com> | 2019-10-21 05:03:56 +0000 |
|---|---|---|
| committer | Alee <Alee14498@gmail.com> | 2019-10-21 05:03:56 +0000 |
| commit | 4c242ad7eef8202e58aac159810328b88a04749d (patch) | |
| tree | 047b6f42c76013903cbef6e494e9a4ba323cabee | |
| parent | b6d9e3305107c221741108a8de7559c9d7f59f14 (diff) | |
| download | PokeBot-4c242ad7eef8202e58aac159810328b88a04749d.tar.gz PokeBot-4c242ad7eef8202e58aac159810328b88a04749d.tar.bz2 PokeBot-4c242ad7eef8202e58aac159810328b88a04749d.zip | |
Make bot invisible when powered down
| -rw-r--r-- | commands/Owners Only/poweroff.js | 1 |
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); } |
