File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ import { AccessControl } from "./AccessControl";
88import { Access } from "../models/AccessControlUnit" ;
99import { randomUUID } from "crypto" ;
1010
11+ /**
12+ * The MjolnirManager is responsible for:
13+ * * Provisioning new mjolnir instances.
14+ * * Starting mjolnirs when the appservice is brought online.
15+ * * Informing mjolnirs about new events.
16+ */
1117export class MjolnirManager {
1218 public readonly mjolnirs : Map < /*the user id of the mjolnir*/ string , ManagedMjolnir > = new Map ( ) ;
1319
Original file line number Diff line number Diff line change @@ -2,8 +2,11 @@ import { Cli } from "matrix-appservice-bridge";
22import { MjolnirAppService } from "./AppService" ;
33import { IConfig } from "./config/config" ;
44
5- // ts-node src/appservice/AppService.ts -r -u "http://host.docker.internal:9000"
6- // ts-node src/appservice/AppService -p 9000 -c your-confg.yaml # to start
5+ /**
6+ * This file provides the entrypoint for the appservice mode for mjolnir.
7+ * A registration file can be generated `ts-node src/appservice/cli.ts -r -u "http://host.docker.internal:9000"`
8+ * and the appservice can be started with `ts-node src/appservice/cli -p 9000 -c your-confg.yaml`.
9+ */
710const cli = new Cli ( {
811 registrationPath : "mjolnir-registration.yaml" ,
912 bridgeConfig : {
You can’t perform that action at this time.
0 commit comments