import{_ as n}from"./plugin-vue_export-helper-DlAUqK2U.js";import{o as s,c as a,b as e}from"./app-Dq8EfOOC.js";const t={},o=e(`
配置文件会在首次启动后生成,你可以在config.yaml
中修改配置项后重启轻雪,绝大多数情况下,你只需要修改superusers
和nickname
。如果不确定字段的含义,请不要修改(部分在自动生成配置文件中未列出,需手动添加)
command_start: [ "/", "" ]
host: 127.0.0.1
port: 20216
nickname: [ "liteyuki" ]
superusers: [ "1919810" ]
onebot_access_token: ""
default_language: "zh-CN"
log_level: "INFO"
log_icon: true
auto_report: true
fake_device_info:
cpu:
brand: AMD
cores: 16
logical_cores: 32
frequency: 3600
mem:
total: 32768000000
alconna_use_command_start: false
alconna_auto_completion: false
custom_config_1: "custom_value1"
custom_config_2: "custom_value2"
...
不同的实现端给出的字段可能不同,但是基本上都是一样的,这里给出一个参考值
字段 | 参考值 | 说明 |
---|
协议 | 反向WebSocket | 推荐使用反向ws协议进行通信,即轻雪作为服务端 |
地址 | ws://address /onebot/v11/ws | 地址取决于配置文件,本机默认为127.0.0.1:20216 |
AccessToken | "" | 如果你给轻雪配置了AccessToken ,请在此填写相同的值 |
- 实现端与轻雪的通信方式不局限为反向WebSocket,但是推荐使用反向WebSocket。
- 反向WebSocket的优点是轻雪作为服务端,可以更好的控制连接,适用于生产环境。
- 在某些情况下,你也可以使用正向WebSocket,比如你在开发轻雪插件时,可以使用正向WebSocket主动连接实现端
`,8),c=[o];function p(l,i){return s(),a("div",null,c)}const d=n(t,[["render",p],["__file","config.html.vue"]]),m=JSON.parse('{"path":"/deployment/config.html","title":"配置","lang":"zh-CN","frontmatter":{"title":"配置","icon":"cog","order":2,"category":"使用指南","tag":["配置","部署"],"description":"轻雪配置项(Nonebot插件配置项也可以写在此,与dotenv格式不同,应为小写) 配置文件会在首次启动后生成,你可以在config.yaml中修改配置项后重启轻雪,绝大多数情况下,你只需要修改superusers和nickname。如果不确定字段的含义,请不要修改(部分在自动生成配置文件中未列出,需手动添加) Onebot实现端配置 不同的实现端给...","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":"轻雪配置项(Nonebot插件配置项也可以写在此,与dotenv格式不同,应为小写) 配置文件会在首次启动后生成,你可以在config.yaml中修改配置项后重启轻雪,绝大多数情况下,你只需要修改superusers和nickname。如果不确定字段的含义,请不要修改(部分在自动生成配置文件中未列出,需手动添加) Onebot实现端配置 不同的实现端给..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-03-31T19:01:27.000Z"}],["meta",{"property":"article:author","content":"远野千束"}],["meta",{"property":"article:tag","content":"配置"}],["meta",{"property":"article:tag","content":"部署"}],["meta",{"property":"article:modified_time","content":"2024-03-31T19:01:27.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"配置\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-03-31T19:01:27.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"远野千束\\",\\"url\\":\\"https://snowykami.me\\"}]}"]]},"headers":[{"level":3,"title":"轻雪配置项(Nonebot插件配置项也可以写在此,与dotenv格式不同,应为小写)","slug":"轻雪配置项-nonebot插件配置项也可以写在此-与dotenv格式不同-应为小写","link":"#轻雪配置项-nonebot插件配置项也可以写在此-与dotenv格式不同-应为小写","children":[]},{"level":3,"title":"Onebot实现端配置","slug":"onebot实现端配置","link":"#onebot实现端配置","children":[]},{"level":3,"title":"其他通信方式","slug":"其他通信方式","link":"#其他通信方式","children":[]}],"git":{"createdTime":1711589926000,"updatedTime":1711911687000,"contributors":[{"name":"snowy","email":"snowykami@outlook.com","commits":9},{"name":"Snowykami","email":"79104275+snowykami@users.noreply.github.com","commits":2}]},"readingTime":{"minutes":2.12,"words":636},"filePathRelative":"deployment/config.md","localizedDate":"2024年3月28日","autoDesc":true}');export{d as comp,m as data};