From 5983d500b20461182ead0e545502f9b4404d613c Mon Sep 17 00:00:00 2001 From: Half-Shot Date: Mon, 27 Nov 2023 22:44:08 +0000 Subject: [PATCH] Fix run check --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 7564e16..751a4b1 100644 --- a/src/index.ts +++ b/src/index.ts @@ -81,7 +81,7 @@ export class ConferenceBot { } public static async start(config: IConfig): Promise { - if (!config.mode[config.mode]) { + if (!RunMode[config.mode]) { throw Error(`Incorrect mode '${config.mode}'`); } const storage = new SimpleFsStorageProvider(path.join(config.dataPath, "bot.json"));