mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 21:19:13 +00:00
Ensure bot config is copied
This commit is contained in:
parent
1debd54f2e
commit
27090f1b91
@ -197,6 +197,7 @@ export class BridgeConfig {
|
||||
this.webhook = configData.webhook;
|
||||
this.provisioning = configData.provisioning;
|
||||
this.passFile = configData.passFile;
|
||||
this.bot = configData.bot;
|
||||
assert.ok(this.webhook);
|
||||
this.queue = configData.queue || {
|
||||
monolithic: true,
|
||||
@ -222,4 +223,4 @@ export class BridgeConfig {
|
||||
export async function parseRegistrationFile(filename: string) {
|
||||
const file = await fs.readFile(filename, "utf-8");
|
||||
return YAML.parse(file) as IAppserviceRegistration;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user