zhenxun_bot/assets/js/23.923ef864.js
2021-10-25 11:16:00 +08:00

1 line
2.1 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window.webpackJsonp=window.webpackJsonp||[]).push([[23],{558:function(t,s,o){"use strict";o.r(s);var r=o(8),e=Object(r.a)({},(function(){var t=this,s=t.$createElement,o=t._self._c||s;return o("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[o("div",{staticClass:"custom-block tip"},[o("p",{staticClass:"title"}),o("p",[t._v("go-cqhttp 是什么?"),o("br"),t._v("\n使用OneBot协议实现的无头QQ接受消息发往后端处理")])]),o("div",{staticClass:"custom-block warning"},[o("p",{staticClass:"title"}),o("p",[t._v("此页没有显示图片刷新即可")])]),o("h1",{attrs:{id:"如何安装"}},[o("a",{staticClass:"header-anchor",attrs:{href:"#如何安装"}},[t._v("#")]),t._v(" 如何安装?")]),t._v(" "),o("ol",[o("li",[t._v("从"),o("a",{attrs:{href:"https://github.com/Mrs4s/go-cqhttp",target:"_blank",rel:"noopener noreferrer"}},[t._v("Mrs4s / go-cqhttp"),o("OutboundLink")],1),t._v("的Release中下载与你系统对应的最新版本")]),t._v(" "),o("li",[t._v("首次运行会让你选择通信方式,选择 "),o("code",[t._v("3")]),t._v(" (反向 Websocket 通信),会生成一个配置文件"),o("strong",[t._v("config.yml")]),t._v(" "),o("img",{attrs:{src:"/zhenxun_bot/gocq/gocq0.png",alt:"_"}})]),t._v(" "),o("li",[t._v("打开"),o("strong",[t._v("config.yml")]),t._v("文件将uin修改为bot账号"),o("br"),t._v(" "),o("img",{attrs:{src:"/zhenxun_bot/gocq/gocq1.png",alt:"_"}})]),t._v(" "),o("li",[t._v("在"),o("strong",[t._v("config.yml")]),t._v("文件中将"),o("br"),t._v(" "),o("code",[t._v("universal: ws://your_websocket_universal.server")]),o("br"),t._v("\n修改为"),o("br"),t._v(" "),o("code",[t._v("universal: ws://127.0.0.1:8080/cqhttp/ws")]),o("br"),t._v(" "),o("img",{attrs:{src:"/zhenxun_bot/gocq/gocq2.png",alt:"_"}})]),t._v(" "),o("li",[t._v("重启go-cqhttp后扫码登录即可")])]),t._v(" "),o("div",{staticClass:"custom-block tip"},[o("p",{staticClass:"title"}),o("p",[t._v("没有 ws-reverse 怎么办?"),o("br"),t._v("\n第二步的配置文件选错了删除"),o("strong",[t._v("config.yml")]),t._v("重新生成即可")])])])}),[],!1,null,null,null);s.default=e.exports}}]);