Skip to content

Commit

Permalink
Fix run check
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Nov 28, 2023
1 parent ab05aae commit 5983d50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export class ConferenceBot {
}

public static async start(config: IConfig): Promise<ConferenceBot> {
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"));
Expand Down

0 comments on commit 5983d50

Please sign in to comment.