mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
Revert "Disable ban list server for release"
This reverts commit 3e303219a6
.
This commit is contained in:
parent
f0476ccc80
commit
1a591b4dcf
@ -83,6 +83,17 @@ protectedRooms:
|
|||||||
# protected rooms to protect it.
|
# protected rooms to protect it.
|
||||||
protectAllJoinedRooms: false
|
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
|
# Misc options for command handling and commands
|
||||||
commands:
|
commands:
|
||||||
# If true, Mjolnir will respond to commands like !help and !ban instead of
|
# If true, Mjolnir will respond to commands like !help and !ban instead of
|
||||||
|
@ -30,6 +30,7 @@ import BanList from "./models/BanList";
|
|||||||
import { Mjolnir } from "./Mjolnir";
|
import { Mjolnir } from "./Mjolnir";
|
||||||
import { logMessage } from "./LogProxy";
|
import { logMessage } from "./LogProxy";
|
||||||
import { MembershipEvent } from "matrix-bot-sdk/lib/models/events/MembershipEvent";
|
import { MembershipEvent } from "matrix-bot-sdk/lib/models/events/MembershipEvent";
|
||||||
|
import {BanListServer} from "./server/BanListServer";
|
||||||
|
|
||||||
config.RUNTIME = {client: null};
|
config.RUNTIME = {client: null};
|
||||||
|
|
||||||
@ -95,10 +96,10 @@ LogService.info("index", "Starting bot...");
|
|||||||
|
|
||||||
const bot = new Mjolnir(client, protectedRooms, banLists);
|
const bot = new Mjolnir(client, protectedRooms, banLists);
|
||||||
|
|
||||||
// if (config.banListServer && config.banListServer.enabled) {
|
if (config.banListServer && config.banListServer.enabled) {
|
||||||
// const server = new BanListServer(bot);
|
const server = new BanListServer(bot);
|
||||||
// await server.start();
|
await server.start();
|
||||||
// }
|
}
|
||||||
|
|
||||||
await bot.start();
|
await bot.start();
|
||||||
})();
|
})();
|
||||||
|
Loading…
Reference in New Issue
Block a user