Skip to content

Commit

Permalink
Merge pull request fuergaosi233#73 from ycjcl868/fix/no-keywords-error
Browse files Browse the repository at this point in the history
fix: no keywords forEach error
  • Loading branch information
fuergaosi233 authored Dec 8, 2022
2 parents 34617c9 + 154332f commit 39f3650
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "dist/main.js",
"export": "dist/main.js",
"scripts": {
"dev": "nodemon --exec node --loader ts-node/esm src/main.ts",
"dev": "nodemon --exec node --watch config.yaml --loader ts-node/esm src/main.ts",
"build": "tsc"
},
"author": "",
Expand Down
2 changes: 1 addition & 1 deletion src/chatgpt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class ChatGPTBot {
});
console.log(`Chatgpt pool size: ${chatGPTPools.length}`);
this.chatGPTPools = chatGPTPools;
config.botConfig.forEach((item: { [key: string]: string; }) => {
config.botConfig?.forEach((item: { [key: string]: string; }) => {
Object.assign(this.botConfig, item)
});
}
Expand Down

0 comments on commit 39f3650

Please sign in to comment.