Skip to content

Commit

Permalink
Merge pull request #89 from fuergaosi233/hot-fix/fix-config-error
Browse files Browse the repository at this point in the history
🚑️ Hotfix for config error
  • Loading branch information
fuergaosi233 authored Dec 9, 2022
2 parents 498b8f9 + 3790d61 commit 85c6b5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const config: IConfig = {
chatPrivateTiggerKeyword:
configFile.chatPrivateTiggerKeyword ||
// Try compatible with previous designs
(configFile?.botConfig as Array<Map<string, string>>).reduce(
(configFile?.botConfig as Array<Map<string, string>>)?.reduce(
(prev: string, curr: Map<string, string>) =>
curr.get("trigger_keywords") || "",
""
Expand Down

0 comments on commit 85c6b5a

Please sign in to comment.