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