app/assets/config.html-CCL1SBe_.js

20 lines
8.8 KiB
JavaScript
Raw Normal View History

import{_ as n}from"./plugin-vue_export-helper-DlAUqK2U.js";import{o as t,c as e,b as s}from"./app-CDypOuYQ.js";const a={},o=s(`<h3 id="轻雪配置项-nonebot插件配置项也可以写在此-与dotenv格式不同-应为小写" tabindex="-1"><a class="header-anchor" href="#轻雪配置项-nonebot插件配置项也可以写在此-与dotenv格式不同-应为小写"><span>轻雪配置项(Nonebot插件配置项也可以写在此与dotenv格式不同应为小写)</span></a></h3><p>配置文件会在首次启动后生成,你可以在<code>config.yaml</code>中修改配置项后重启轻雪 如果不确定字段的含义,请不要修改(部分在自动生成配置文件中未列出,需手动添加)</p><div class="language-yaml line-numbers-mode" data-ext="yml" data-title="yml"><pre class="language-yaml"><code><span class="token comment"># 生成文件的配置项</span>
<span class="token key atrule">command_start</span><span class="token punctuation">:</span> <span class="token punctuation">[</span> <span class="token string">&quot;/&quot;</span><span class="token punctuation">,</span> <span class="token string">&quot; &quot;</span> <span class="token punctuation">]</span> <span class="token comment"># </span>
<span class="token key atrule">host</span><span class="token punctuation">:</span> 127.0.0.1 <span class="token comment"># 0.0.0.0</span>
<span class="token key atrule">port</span><span class="token punctuation">:</span> <span class="token number">20216</span> <span class="token comment"># </span>
<span class="token key atrule">nickname</span><span class="token punctuation">:</span> <span class="token punctuation">[</span> <span class="token string">&quot;liteyuki&quot;</span> <span class="token punctuation">]</span> <span class="token comment"># </span>
<span class="token key atrule">superusers</span><span class="token punctuation">:</span> <span class="token punctuation">[</span> <span class="token string">&quot;1919810&quot;</span> <span class="token punctuation">]</span> <span class="token comment"># </span>
<span class="token comment"># 未列出的配置项如要自定义请手动修改</span>
<span class="token key atrule">onebot_access_token</span><span class="token punctuation">:</span> <span class="token string">&quot;&quot;</span> <span class="token comment"># 访</span>
<span class="token key atrule">default_language</span><span class="token punctuation">:</span> <span class="token string">&quot;zh-CN&quot;</span> <span class="token comment"># i18n</span>
<span class="token key atrule">log_level</span><span class="token punctuation">:</span> <span class="token string">&quot;INFO&quot;</span> <span class="token comment"># </span>
<span class="token key atrule">log_icon</span><span class="token punctuation">:</span> <span class="token boolean important">true</span> <span class="token comment"># </span>
<span class="token key atrule">auto_report</span><span class="token punctuation">:</span> <span class="token boolean important">true</span> <span class="token comment"># </span>
<span class="token comment"># 其他Nonebot插件的配置项</span>
<span class="token key atrule">custom_config_1</span><span class="token punctuation">:</span> <span class="token string">&quot;custom_value1&quot;</span>
<span class="token key atrule">custom_config_2</span><span class="token punctuation">:</span> <span class="token string">&quot;custom_value2&quot;</span>
<span class="token punctuation">...</span>
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div><div class="line-number"></div></div></div><h3 id="onebot" tabindex="-1"><a class="header-anchor" href="#onebot"><span>Onebot</span></a></h3><p></p><table><thead><tr><th></th><th></th><th></th></tr></thead><tbody><tr><td></td><td>WebSocket</td><td>使ws</td></tr><tr><td></td><td>ws://<code>address</code>/onebot/v11</td><td><code>127.0.0.1:20216</code></td></tr><tr><td>AccessToken</td><td><code>&quot;&quot;</code></td><td><code>AccessToken</code></td></tr></tbody></table><h3 id="" tabindex="-1"><a class="header-anchor" href="#"><span></span></a></h3><ul><li>WebSocket使WebSocket</li><li>WebSocket</li><li>使WebSocket使WebSocket</li></ul>`,8),c=[o];function p(l,i){return t(),e("div",null,c)}const u=n(a,[["render",p],["__file","config.html.vue"]]),m=JSON.parse('{"path":"/deployment/config.html","title":"","lang":"zh-CN","frontmatter":{"title":"","icon":"object-group","order":2,"category":"使","tag":["",""],"description":"(Nonebotdotenv) config.yaml 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":"(Nonebotdotenv) config.yaml Onebot ..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-03-28T04:05:03.000Z"}],["meta",{"property":"article:author","content":""}],["meta",{"property":"article:tag","content":""}],["meta",{"property":"article:tag","content":""}],["meta",{"property":"article:modified_time","content":"2024-03-28T04:05:03.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-03-28T04:0