diff --git a/src/config.ts b/src/config.ts index f26ddbb..e98f349 100644 --- a/src/config.ts +++ b/src/config.ts @@ -15,7 +15,7 @@ export const config: IConfig = { chatPrivateTiggerKeyword: configFile.chatPrivateTiggerKeyword || // Try compatible with previous designs - (configFile?.botConfig as Array>).reduce( + (configFile?.botConfig as Array>)?.reduce( (prev: string, curr: Map) => curr.get("trigger_keywords") || "", ""