Skip to content

Commit 77b4133

Browse files
committed
feat: 添加服务选择交互逻辑
1 parent aacb7cd commit 77b4133

File tree

7 files changed

+429
-21
lines changed

7 files changed

+429
-21
lines changed

README.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# WeChat Bot
22

3-
![](https://assets.fedtop.com/picbed/202212071317377.png)
4-
53
一个 基于 `chatgpt` + `wechaty` 的微信机器人
64

75
可以用来帮助你自动回复微信消息,或者管理微信群/好友.
@@ -10,6 +8,16 @@
108

119
## 近期的改动
1210

11+
### 2024.03.26
12+
13+
#### 1. 新增服务类型可选交互
14+
15+
![](https://assets.fedtop.com/picbed/202403261420468.png)
16+
17+
#### 2. 新增国产 ai 服务 Kimi
18+
19+
可以去 : (kimi apikey)[https://platform.moonshot.cn/console/api-keys] 获取你的 key
20+
1321
### 2024.03.23
1422

1523
近期老有人问为什么所有都配置好后,`npm run test` 请求不通?
@@ -63,10 +71,10 @@ SET PUPPETEER_SKIP_DOWNLOAD='true'
6371

6472
也可以进交流群,一起交流探讨相关问题和解决方案,添加的时候记得备注来意。(如果项目对你有所帮助,也可以请我喝杯咖啡 ☕️ ~
6573

66-
| <img src="https://assets.fedtop.com/picbed/202302090947704.png" width="180px"> | <img src="https://raw.githubusercontent.com/wangrongding/image-house/master/202303151014249.JPG" width="180px"> | <img src="https://raw.githubusercontent.com/wangrongding/image-house/master/202302092216101.png" width="180px"> |
67-
| --- | --- | --- |
74+
| <img src="https://assets.fedtop.com/picbed/202302090947704.png" width="180px"> | <img src="https://raw.githubusercontent.com/wangrongding/image-house/master/202303151014249.JPG" width="180px"> |
75+
| --- | --- |
6876

69-
## 开发
77+
## 开发及使用指南
7078

7179
1. 检查好自己的开发环境,确保已经安装了 `nodejs` , 版本需要满足 Node.js >= v18.0 ,版本太低会导致运行报错,最好使用 LTS 版本。
7280
2. 先获取自己的 `api key`,地址戳这里 👉🏻 :[创建你的 api key](https://beta.openai.com/account/api-keys)
@@ -90,7 +98,7 @@ OPENAI_API_KEY='你的key'
9098
# 安装依赖
9199
npm i
92100
# 启动服务
93-
npm run dev
101+
npm run dev # 或者 npm run start
94102
```
95103

96104
然后就可以扫码登录了,然后根据你的需求,自己修改相关逻辑文件。

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"main": "index.js",
66
"type": "module",
77
"scripts": {
8+
"start": "node ./index.js",
89
"dev": "node ./index.js",
910
"test": "node ./src/wechaty/testMessage.js",
1011
"test-openai": "node ./src/openai/__test__.js",
@@ -16,6 +17,7 @@
1617
"axios": "^1.6.8",
1718
"chatgpt": "^2.5.2",
1819
"dotenv": "^16.0.3",
20+
"inquirer": "^9.2.16",
1921
"openai": "^3.1.0",
2022
"p-timeout": "^6.0.0",
2123
"qrcode-terminal": "^0.12.0",

0 commit comments

Comments
 (0)