diff --git a/.gitignore b/.gitignore index 2de042f9..356902c7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ # Project ignored *.sqlite3 +docs/.yarn data/ accounts/ go-cqhttp/ diff --git a/docs/.vuepress/public/ch04-12.jpg b/docs/.vuepress/public/ch04-12.jpg deleted file mode 100644 index 02386545..00000000 Binary files a/docs/.vuepress/public/ch04-12.jpg and /dev/null differ diff --git a/docs/.vuepress/public/ch04-12.png b/docs/.vuepress/public/ch04-12.png new file mode 100644 index 00000000..a524493a Binary files /dev/null and b/docs/.vuepress/public/ch04-12.png differ diff --git a/docs/.vuepress/public/ch04-3.png b/docs/.vuepress/public/ch04-3.png index 32ab32d8..8f950810 100644 Binary files a/docs/.vuepress/public/ch04-3.png and b/docs/.vuepress/public/ch04-3.png differ diff --git a/docs/.vuepress/public/ch04-6.jpg b/docs/.vuepress/public/ch04-6.jpg deleted file mode 100644 index f15b6d4c..00000000 Binary files a/docs/.vuepress/public/ch04-6.jpg and /dev/null differ diff --git a/docs/.vuepress/public/ch04-6.png b/docs/.vuepress/public/ch04-6.png new file mode 100644 index 00000000..ab9e0e18 Binary files /dev/null and b/docs/.vuepress/public/ch04-6.png differ diff --git a/docs/.vuepress/public/ch04-7.jpg b/docs/.vuepress/public/ch04-7.jpg deleted file mode 100644 index 3598d20e..00000000 Binary files a/docs/.vuepress/public/ch04-7.jpg and /dev/null differ diff --git a/docs/.vuepress/public/ch04-8.jpg b/docs/.vuepress/public/ch04-8.jpg deleted file mode 100644 index e9919900..00000000 Binary files a/docs/.vuepress/public/ch04-8.jpg and /dev/null differ diff --git a/docs/.vuepress/public/ch04-9.jpg b/docs/.vuepress/public/ch04-9.jpg deleted file mode 100644 index 0cded15e..00000000 Binary files a/docs/.vuepress/public/ch04-9.jpg and /dev/null differ diff --git a/docs/.vuepress/public/ch04-9.png b/docs/.vuepress/public/ch04-9.png new file mode 100644 index 00000000..22200a67 Binary files /dev/null and b/docs/.vuepress/public/ch04-9.png differ diff --git a/docs/level-0/ch04.md b/docs/level-0/ch04.md index 6c26c3d3..8a69874c 100644 --- a/docs/level-0/ch04.md +++ b/docs/level-0/ch04.md @@ -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: # 账号相关 @@ -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配置 @@ -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 注意