Skip to content

Commit

Permalink
Disable ban list server for release
Browse files Browse the repository at this point in the history
  • Loading branch information
turt2live committed Mar 5, 2020
1 parent ecc7674 commit ea6c9bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
11 changes: 0 additions & 11 deletions config/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,6 @@ protectedRooms:
# Manually add these rooms to the protected rooms list if you want them protected.
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
Expand Down
9 changes: 4 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down Expand Up @@ -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();
})();

0 comments on commit ea6c9bd

Please sign in to comment.