Skip to content

Commit

Permalink
Merge pull request #322 from wosiwq/master
Browse files Browse the repository at this point in the history
📃 docs(ch04.md): update ch04.md
  • Loading branch information
wosiwq authored Jan 27, 2023
2 parents 808e202 + b732254 commit 76191b2
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Project ignored
*.sqlite3

docs/.yarn
data/
accounts/
go-cqhttp/
Expand Down
Binary file removed docs/.vuepress/public/ch04-12.jpg
Binary file not shown.
Binary file added docs/.vuepress/public/ch04-12.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/.vuepress/public/ch04-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/.vuepress/public/ch04-6.jpg
Binary file not shown.
Binary file added docs/.vuepress/public/ch04-6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/.vuepress/public/ch04-7.jpg
Binary file not shown.
Binary file removed docs/.vuepress/public/ch04-8.jpg
Binary file not shown.
Binary file removed docs/.vuepress/public/ch04-9.jpg
Binary file not shown.
Binary file added docs/.vuepress/public/ch04-9.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 11 additions & 13 deletions docs/level-0/ch04.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ go-cqhttp并非是本项目的产物,仅仅是推荐的稳定的QQbot客户端

![](/ch04-4.jpg)

4. **完全复制**下方示例代码,**完全覆盖**`config.yml` 里的内容,再**修改**高亮的代码段,更改为**自己小号的账号和密码**,之后按下 `ctrl+S` 组合键保存,看到上方白点消失即为保存成功,保存成功后关闭此页面![](/ch04-5.png)
4. **完全复制**下方示例代码,**完全覆盖**`config.yml` 里的内容,再**修改**高亮的代码段,更改为**自己小号的账号**,之后按下 `ctrl+S` 组合键保存,看到上方白点消失即为保存成功,保存成功后关闭此页面![](/ch04-5.png)

::: details 示例代码
```yml {4,5}
```yml {4}
# go-cqhttp 默认配置文件

account: # 账号相关
Expand Down Expand Up @@ -178,19 +178,17 @@ go-cqhttp并非是本项目的产物,仅仅是推荐的稳定的QQbot客户端
```
:::

4. 再次双击打开 `go-cqhttp.bat` ,此时会弹出5s后启动的提示,接下来若是出现需要验证码等相关问题请阅读 [go-cqhttp 文档](https://docs.go-cqhttp.org/faq/slider.html)
1. 再次双击打开 `go-cqhttp.bat` ,此时会弹出如下图的提示,请使用手机扫码登录![](/ch04-6.png)
::: details 扫码失败,已失效或存在异常。

::: details 不会复制框内的内容?
出现此提示说明遭到了 tx 风控,此时可以将服务器上的 `go-cqhttp` 文件夹复制到本地的电脑上,将手机和电脑放置在同一个网络环境(如同一个wifi下),然后在电脑上双击打开 `go-cqhttp.bat` ,使用电脑扫码登录即可。最后在登录成功后将整个 `go-cqhttp` 文件夹复制回服务器上即可。

1. 右键 `go-cqhttp` 窗口顶部,选择 `属性` ![](/ch04-6.jpg)
2. 确保 `快速编辑模式` 已经勾选![](/ch04-7.jpg)
3. cmd窗口只能进行**矩形**的框选 所以务必从左上角框到右下角,之后在go-cqhttp窗口内点击**鼠标右键**即可复制,在**自己的电脑**上粘贴下来,处理掉多余字符后即可访问![](/ch04-8.jpg)
`此处的同一网络环境并非严格同一网络环境,经过测试只要运行go-cqhttp的IP和手机的IP的地区偏差不算太大就能成功`

:::

5. 当所有验证码都验证成功后,go-cqhttp会自动进行登录尝试,当你看到如下提醒时,go-cqhttp就已经正确的配置好并登录上了,注意**不要关闭此窗口**![](/ch04-9.jpg)
:::
6. 当所有验证码都验证成功后,go-cqhttp会自动进行登录尝试,当你看到如下提醒时,go-cqhttp就已经正确的配置好并登录上了,注意**不要关闭此窗口**![](/ch04-9.png)

6. 以后每次启动go-cqhttp只需要再次双击打开即可
7. 以后每次启动go-cqhttp只需要再次双击打开 `go-cqhttp.bat` 即可

## 4.3 haruka-bot配置

Expand All @@ -200,8 +198,8 @@ go-cqhttp并非是本项目的产物,仅仅是推荐的稳定的QQbot客户端

> 主人QQ号(多个使用空格分开):10010 10086 10000

4. 在第三步完成后,hb会自动下载chromium,经过一段下载的进度条后,hb会自动启动,启动后若go-cqhttp配置没有问题,下方将提示小号QQ号连接成功,同时go-cqhttp停止滚动报错![](/ch04-12.jpg)
5. 至此,hb已经成功安装并成功与go-cqhttp连接成功,现在向它发送 `帮助` 开始使用吧!
1. 在第三步完成后,hb会自动下载chromium,经过一段下载的进度条后,hb会自动启动,启动后若go-cqhttp配置没有问题,下方将提示 `已连接到WebSocket Universal服务器` ,若未发现此提示,请回到 [4.2](#_4-2-go-cqhttp%E9%85%8D%E7%BD%AE) 检查go-cqhttp配置是否正确![](/ch04-12.png)
2. 至此,hb已经成功安装并成功与go-cqhttp连接成功,现在向它发送 `帮助` 开始使用吧!

::: warning 注意

Expand Down

0 comments on commit 76191b2

Please sign in to comment.