Skip to content

Commit

Permalink
Change README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
kylelin1998 committed May 26, 2023
1 parent 9b178b6 commit bd04dc6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,23 @@ ChatGPT机器人, 这是一个开源项目, 你可以基于它搭建属于
你可以事先录制一段对话, 后面用到的时候直接快速重放出来, 就不用每次建立新对话就要发送一堆引导文本了

## 部署
机器人的部署步骤是基于 Docker 的,其机器人升级功能也基于 Docker,因此请使用 Docker 进行部署,以防出现错误

### 部署方式1 (推荐)
#### 一键部署
```
docker run --name gpttb -d -v $(pwd):/app/config -e GPT_TOKEN=你的GPTApiKey -e BOT_ADMIN_ID=管理者的ChatId -e BOT_NAME=机器人的username -e BOT_TOKEN=机器人token --restart=always kylelin1998/chatgpt-tg-bot
```
#### 一键部署(开启代理)
```
docker run --name gpttb -d -v $(pwd):/app/config -e GPT_TOKEN=你的GPTApiKey -e BOT_ADMIN_ID=管理者的ChatId -e BOT_NAME=机器人的username -e BOT_TOKEN=机器人token -e PROXY=true -e PROXY_HOST=127.0.0.1 -e PROXY_PORT=7890 --restart=always kylelin1998/chatgpt-tg-bot
```

### 部署方式2 (不推荐)
Youtube:https://youtu.be/CiDxb1ESijQ

哔哩哔哩: https://www.bilibili.com/video/BV1Ts4y1S7bn/

机器人的部署步骤是基于 Docker 的,其机器人升级功能也基于 Docker,因此请使用 Docker 进行部署,以防出现错误

### 准备
![ff3379f00b462db7b016f361c9b8fb7cd9097dc8.png](https://openimg.kylelin1998.com/img/ff3379f00b462db7b016f361c9b8fb7cd9097dc8.png)

Expand Down
15 changes: 13 additions & 2 deletions README_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,23 @@ This project is an open-source project that you can trust. Once deployed, the bo
The record & playback mode allows you to record chats with the bot, then send 'end_record' to stop and save the recording. Afterward, you can playback the recorded chat. It can help your work and is a nice feature.

## Deploy
The bot's deploy steps based on the Docker, its upgrade feature also based on the Docker, so please use the Docker to deploy it in case appear error.

### Deployment method 1 (recommended)
#### One-click deployment
```
docker run --name gpttb -d -v $(pwd):/app/config -e GPT_TOKEN=YourGPTApiKey -e BOT_ADMIN_ID=AdminChatId -e BOT_NAME=BotUsername -e BOT_TOKEN=BotToken --restart=always kylelin1998/chatgpt-tg-bot
```
#### One-click deployment (with proxy enabled)
```
docker run --name gpttb -d -v $(pwd):/app/config -e GPT_TOKEN=YourGPTApiKey -e BOT_ADMIN_ID=AdminChatId -e BOT_NAME=BotUsername -e BOT_TOKEN=BotToken -e PROXY=true -e PROXY_HOST=127.0.0.1 -e PROXY_PORT=7890 --restart=always kylelin1998/chatgpt-tg-bot
```

### Deployment method 2 (not recommended)
Youtube:https://youtu.be/CiDxb1ESijQ

哔哩哔哩: https://www.bilibili.com/video/BV1Ts4y1S7bn/

The bot's deploy steps based on the Docker, its upgrade feature also based on the Docker, so please use the Docker to deploy it in case appear error.

### Prepare
![ff3379f00b462db7b016f361c9b8fb7cd9097dc8.png](https://openimg.kylelin1998.com/img/ff3379f00b462db7b016f361c9b8fb7cd9097dc8.png)

Expand Down

0 comments on commit bd04dc6

Please sign in to comment.