import{_ as s,r as t,o,c,b as n,d as a,a as l,e as p}from"./app-CLWcxAoK.js";const i={},r=p(`
首次运行后生成config.yml
,你可以修改配置项后重启轻雪,绝大多数情况下,你只需要修改superusers
和nickname
字段即可
command_start: [ "/", "" ]
host: 127.0.0.1
port: 20216
nickname: [ "liteyuki" ]
superusers: [ "1919810" ]
以下为默认值,如需自定义请手动添加
onebot_access_token: ""
default_language: "zh-CN"
alconna_auto_completion: false
allow_update: true
log_level: "INFO"
log_icon: true
auto_report: true
auto_update: true
debug: false
safe_mode: false
custom_config_1: "custom_value1"
custom_config_2: "custom_value2"
...
提示
如果要使用dotenv配置文件,请自行创建.env.{ENVIRONMENT}
,并在config.yml
中添加environment:{ENVIRONMENT}
字段
生产环境中推荐反向WebSocket 不同的实现端给出的字段可能不同,但是基本上都是一样的,这里给出一个参考值
字段 | 参考值 | 说明 |
---|
协议 | 反向WebSocket | 推荐使用反向ws协议进行通信,即轻雪作为服务端 |
地址 | ws://127.0.0.1:20216/onebot/v11/ws | 地址取决于配置文件,本机默认为127.0.0.1:20216 |
AccessToken | "" | 如果你给轻雪配置了AccessToken ,请在此填写相同的值 |
`,11),u={href:"https://onebot.adapters.nonebot.dev/",target:"_blank",rel:"noopener noreferrer"},d=n("li",null,"轻雪不局限于OneBot适配器,你可以使用NoneBot2支持的任何适配器",-1);function m(k,v){const e=t("ExternalLinkIcon");return o(),c("div",null,[r,n("ul",null,[n("li",null,[a("要使用其他通信方式请访问"),n("a",u,[a("OneBot Adapter"),l(e)]),a("获取详细信息")]),d])])}const h=s(i,[["render",m],["__file","config.html.vue"]]),y=JSON.parse('{"path":"/deployment/config.html","title":"配置","lang":"zh-CN","frontmatter":{"title":"配置","icon":"cog","order":2,"category":"使用指南","tag":["配置","部署"],"description":"首次运行后生成config.yml,你可以修改配置项后重启轻雪,绝大多数情况下,你只需要修改superusers和nickname字段即可 基础配置项 其他配置 以下为默认值,如需自定义请手动添加 提示 如果要使用dotenv配置文件,请自行创建.env.{ENVIRONMENT},并在config.yml中添加environment:{ENVIRON...","head":[["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/deployment/config.html"}],["meta",{"property":"og:site_name","content":"LiteyukiBot 轻雪机器人"}],["meta",{"property":"og:title","content":"配置"}],["meta",{"property":"og:description","content":"首次运行后生成config.yml,你可以修改配置项后重启轻雪,绝大多数情况下,你只需要修改superusers和nickname字段即可 基础配置项 其他配置 以下为默认值,如需自定义请手动添加 提示 如果要使用dotenv配置文件,请自行创建.env.{ENVIRONMENT},并在config.yml中添加environment:{ENVIRON..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-05-31T11:17:25.000Z"}],["meta",{"property":"article:author","content":"远野千束"}],["meta",{"property":"article:tag","content":"配置"}],["meta",{"property":"article:tag","content":"部署"}],["meta",{"property":"article:modified_time","content":"2024-05-31T11:17:25.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"配置\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-05-31T11:17:25.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"远野千束\\",\\"url\\":\\"https://snowykami.me\\"}]}"]]},"headers":[{"level":2,"title":"基础配置项","slug":"基础配置项","link":"#基础配置项","children":[]},{"level":2,"title":"其他配置","slug":"其他配置","link":"#其他配置","children":[]},{"level":2,"title":"OneBot实现端配置","slug":"onebot实现端配置","link":"#onebot实现端配置","children":[]},{"level":2,"title":"其他","slug":"其他","link":"#其他","children":[]}],"git":{"createdTime":1711589926000,"updatedTime":1717154245000,"contributors":[{"name":"snowy","email":"snowykami@outlook.com","commits":19},{"name":"Snowykami","email":"79104275+snowykami@users.noreply.github.com","commits":2}]},"readingTime":{"minutes":1.79,"words":537},"filePathRelative":"deployment/config.md","localizedDate":"2024年3月28日","autoDesc":true}');export{h as comp,y as data};