summaryrefslogtreecommitdiff
path: root/bot.js
diff options
context:
space:
mode:
author8cy <[email protected]>2020-05-04 04:34:27 -0700
committer8cy <[email protected]>2020-05-04 04:34:27 -0700
commite8083d5db2258ce8c9771f39e365aca2781bad70 (patch)
tree467abd2b35ba73ae74bbe7f037697c7736903eba /bot.js
parentadd maintenance mode (diff)
downloaduppity-master.tar.xz
uppity-master.zip
add maintenance as a status cmd modeHEADmaster
Diffstat (limited to 'bot.js')
-rw-r--r--bot.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/bot.js b/bot.js
index 78576e2..b7a8321 100644
--- a/bot.js
+++ b/bot.js
@@ -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**.');