diff --git a/config/default.yaml b/config/default.yaml index 01b0b6ec..de5af7dc 100644 --- a/config/default.yaml +++ b/config/default.yaml @@ -83,17 +83,6 @@ protectedRooms: # protected rooms to protect it. protectAllJoinedRooms: false -# An optional server for the Synapse Mjolnir plugin to connect to. This is -# recommended if you're running the Synapse module in a worker environment, -# particularly if you're running a federation reader. -# -# It is not recommended to expose this to the wider internet. Connections -# are over TCP only. -banListServer: - enabled: false - bind: "0.0.0.0" - port: 5186 - # Misc options for command handling and commands commands: # If true, Mjolnir will respond to commands like !help and !ban instead of diff --git a/src/index.ts b/src/index.ts index 087c1ea4..07fe3941 100644 --- a/src/index.ts +++ b/src/index.ts @@ -30,7 +30,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"; config.RUNTIME = {client: null}; @@ -96,10 +95,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(); })();