Ensure bot config is copied

This commit is contained in:
Will Hunt 2021-12-08 15:20:11 +00:00
parent 1debd54f2e
commit 27090f1b91

View File

@ -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;
}
}