zhenxun_bot/assets/js/8.6bb0baec.js
2021-10-01 21:55:06 +08:00

1 line
3.3 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([[8],{380:function(t,s,a){"use strict";a.r(s);var e=a(46),n=Object(e.a)({},(function(){var t=this,s=t.$createElement,a=t._self._c||s;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h2",{attrs:{id:"部署"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#部署"}},[t._v("#")]),t._v(" 部署")]),t._v(" "),a("h3",{attrs:{id:"配置gocq"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#配置gocq"}},[t._v("#")]),t._v(" 配置gocq")]),t._v(" "),a("p",[t._v("在 "),a("a",{attrs:{href:"https://github.com/Mrs4s/go-cqhttp",target:"_blank",rel:"noopener noreferrer"}},[t._v("https://github.com/Mrs4s/go-cqhttp"),a("OutboundLink")],1),t._v(" 下载Releases最新版本运行后选择反向代理。")]),t._v(" "),a("p",[t._v("后将 go-cqhttp 的配置文件 config.yml 中的 universal 改为 universal: ws://127.0.0.1:8080/cqhttp/ws")]),t._v(" "),a("h3",{attrs:{id:"获取源码"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#获取源码"}},[t._v("#")]),t._v(" 获取源码")]),t._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[t._v("git clone https://github.com/HibiKier/zhenxun_bot.git //克隆仓库\n\ncd zhenxun_bot //进入目录\n\npip install -r requirements.txt //安装依赖\n")])])]),a("p",[a("strong",[t._v("进行基础配置")])]),t._v(" "),a("blockquote",[a("p",[t._v("请查看 "),a("strong",[t._v("配置")]),t._v(" 部分")])]),t._v(" "),a("h3",{attrs:{id:"开始运行"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#开始运行"}},[t._v("#")]),t._v(" 开始运行")]),t._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[t._v("python bot.py\n")])])]),a("h2",{attrs:{id:"配置"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#配置"}},[t._v("#")]),t._v(" 配置")]),t._v(" "),a("p",[a("strong",[t._v("在 configs/config.py 中的 USE_CONFIG_FILE默认为 False")])]),t._v(" "),a("blockquote",[a("p",[a("strong",[t._v("#如果不使用配置文件,将 USE_CONFIG_FILE 设置为 False")])])]),t._v(" "),a("h3",{attrs:{id:"在-env-dev文件中"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#在-env-dev文件中"}},[t._v("#")]),t._v(" 在.env.dev文件中")]),t._v(" "),a("div",{staticClass:"language- extra-class"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[t._v('SUPERUSERS = [""] # 填写你的QQ\n')])])]),a("h3",{attrs:{id:"在configs-config-py文件中"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#在configs-config-py文件中"}},[t._v("#")]),t._v(" 在configs/config.py文件中")]),t._v(" "),a("p",[a("strong",[t._v("必填:")])]),t._v(" "),a("ul",[a("li",[t._v("API KEY")]),t._v(" "),a("li",[t._v("数据库配置")])]),t._v(" "),a("p",[t._v("在./configs/config.py中配置基本配置除API KEY ,数据库和代理外都含有默认值)")]),t._v(" "),a("p",[t._v("在./configs/path_config.py配置路径含有默认配置")]),t._v(" "),a("blockquote",[a("p",[a("strong",[t._v("#可在 ./configs/config.py 文件中修改配置,在 ./configs/path_config.py 修改资源路径")])])]),t._v(" "),a("blockquote",[a("p",[a("strong",[t._v("#已在 ./configs/config.py 和 ./configs/path_config.py 中为各个配置提供注解!")])])])])}),[],!1,null,null,null);s.default=n.exports}}]);