|
@@ -40,11 +40,16 @@ client.on("message", m => {
|
|
|
|
|
|
let content = m.cleanContent.trim();
|
|
|
|
|
|
- if (trigger(msgActions, m, content))
|
|
|
+ if (!util.shouldShowMaintenanceMessage() && trigger(msgActions, m, content))
|
|
|
return;
|
|
|
|
|
|
if (m.mentions.users.size > 0 && m.mentions.users.first().id == client.user.id) {
|
|
|
|
|
|
+ if(util.shouldShowMaintenanceMessage(m.guild.id)) {
|
|
|
+ m.channel.send(`${m.author.toString()} I'm currently being maintained; please wait.`);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
if (content.startsWith(`@${client.user.username}`)) {
|
|
|
content = content.substring(`@${client.user.username}`.length).trim();
|
|
|
|
|
@@ -71,7 +76,8 @@ client.on("message", m => {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- trigger(postActions);
|
|
|
+ if(!util.shouldShowMaintenanceMessage())
|
|
|
+ trigger(postActions);
|
|
|
});
|
|
|
|
|
|
client.on("messageReactionAdd", (r, u) => {
|