|
@@ -2,7 +2,6 @@ import * as dotenv from "dotenv";
|
|
|
import * as fs from "fs";
|
|
|
import * as path from "path";
|
|
|
import client from "./client";
|
|
|
-import { shouldShowMaintenanceMessage, documentation } from "./util";
|
|
|
import { ICommand, BotEvent, IBotCommand } from "./commands/command"
|
|
|
import "reflect-metadata";
|
|
|
import {createConnection} from "typeorm";
|
|
@@ -51,16 +50,11 @@ client.on("message", async m => {
|
|
|
|
|
|
let content = m.cleanContent.trim();
|
|
|
|
|
|
- if (!shouldShowMaintenanceMessage(m.guild.id) && await trigger(msgActions, m, content))
|
|
|
+ if (await trigger(msgActions, m, content))
|
|
|
return;
|
|
|
|
|
|
if (m.mentions.users.size > 0 && m.mentions.users.first().id == client.user.id) {
|
|
|
|
|
|
- if(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();
|
|
|
|
|
@@ -87,8 +81,7 @@ client.on("message", async m => {
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
- if(!shouldShowMaintenanceMessage(m.guild.id))
|
|
|
- await trigger(postActions);
|
|
|
+ await trigger(postActions);
|
|
|
});
|
|
|
|
|
|
client.on("messageReactionAdd", (r, u) => {
|