Remove ban list server support

This will take the shape of something else eventually.
This commit is contained in:
Travis Ralston
2020-05-11 21:11:24 -06:00
parent cdc8170a8f
commit 7fa025f678
2 changed files with 4 additions and 16 deletions
+4 -5
View File
@@ -29,7 +29,6 @@ import BanList from "./models/BanList";
import { Mjolnir } from "./Mjolnir";
import { logMessage } from "./LogProxy";
import { MembershipEvent } from "matrix-bot-sdk/lib/models/events/MembershipEvent";
import { BanListServer } from "./server/BanListServer";
import * as htmlEscape from "escape-html";
config.RUNTIME = {client: null};
@@ -112,10 +111,10 @@ LogService.info("index", "Starting bot...");
const bot = new Mjolnir(client, protectedRooms, banLists);
if (config.banListServer && config.banListServer.enabled) {
const server = new BanListServer(bot);
await server.start();
}
// if (config.banListServer && config.banListServer.enabled) {
// const server = new BanListServer(bot);
// await server.start();
// }
await bot.start();
})();