Skip to content

Commit

Permalink
trying#9
Browse files Browse the repository at this point in the history
  • Loading branch information
laendoor committed Jan 11, 2024
1 parent 2678323 commit ea4931c
Show file tree
Hide file tree
Showing 6 changed files with 138 additions and 156 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"import/resolver": {
"node": {
"extensions": [".ts"],
"extensions": [".d.ts", ".ts"],
"moduleDirectory": ["node_modules", "src"]
},
"typescript": {
Expand Down
143 changes: 62 additions & 81 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@
"prepare": "if [ \"$NODE_ENV\" != production ]; then husky install; fi"
},
"dependencies": {
"axios": "^1.6.4",
"axios": "^1.6.5",
"cron": "^3.1.6",
"date-fns": "^3.0.6",
"date-fns": "^3.2.0",
"dayjs": "^1.11.10",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"morgan": "^1.10.0",
"openai": "4.24.1",
"openai": "4.24.3",
"telegraf": "^4.15.3",
"winston": "^3.11.0"
},
Expand All @@ -47,9 +47,9 @@
"@types/express": "^4.17.21",
"@types/jest": "^29.5.11",
"@types/morgan": "^1.9.9",
"@types/node": "^20.10.6",
"@typescript-eslint/eslint-plugin": "^6.17.0",
"@typescript-eslint/parser": "^6.17.0",
"@types/node": "^20.11.0",
"@typescript-eslint/eslint-plugin": "^6.18.1",
"@typescript-eslint/parser": "^6.18.1",
"babel-eslint": "^10.1.0",
"dotenv-cli": "^7.3.0",
"eslint": "^8.56.0",
Expand Down
3 changes: 2 additions & 1 deletion src/controllers/GPT/GPTController.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ChatCompletionMessageParam } from 'openai/resources';
import { Message } from 'telegraf/typings/core/types/typegram';
// import { Message } from 'telegraf/typings/core/types/typegram';

import { Message } from 'telegraf/typings/core/types/typegram';
import { espiId } from '../../config';
import GPT from '../../core/GPT';
import api from '../../lib/api';
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"outDir": "./dist",
"sourceMap": true,
"paths": {
"telegraf/*": ["node_modules/telegraf/*"]
"telegraf/*": ["node_modules/telegraf/"]
}
},
"include": ["src/**/*.ts"],
Expand Down
Loading

0 comments on commit ea4931c

Please sign in to comment.