diff options
| author | 8cy <[email protected]> | 2020-05-04 04:34:27 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-05-04 04:34:27 -0700 |
| commit | e8083d5db2258ce8c9771f39e365aca2781bad70 (patch) | |
| tree | 467abd2b35ba73ae74bbe7f037697c7736903eba /bot.js | |
| parent | add maintenance mode (diff) | |
| download | uppity-master.tar.xz uppity-master.zip | |
Diffstat (limited to 'bot.js')
| -rw-r--r-- | bot.js | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -23,7 +23,10 @@ client.on('message', msg => { if (cmd == 'status' || cmd == 's') { let status = msg.guild.member('699473263998271489').presence.status; - if (status === 'online') { + let presence = this.client.user.presence.activities[0].name; + if (presence == 'maintenance') { + return msg.reply('<@699473263998271489> is under **maintenance**.'); + } else if (status === 'online') { return msg.reply('<@699473263998271489> is **online**.'); } else { return msg.reply('<@699473263998271489> is **offline**.'); |