app/assets/config.html-DGYDi2SG.js

30 lines
17 KiB
JavaScript
Raw Normal View History

import{_ as n,o as s,c as a,b as t}from"./app-BADSzEaM.js";const e={},o=t(`<h3 id="轻雪配置项-nonebot插件配置项也可以写在此-与dotenv格式不同-应为小写" tabindex="-1"><a class="header-anchor" href="#轻雪配置项-nonebot插件配置项也可以写在此-与dotenv格式不同-应为小写"><span>轻雪配置项(Nonebot插件配置项也可以写在此与dotenv格式不同应为小写)</span></a></h3><p>配置文件会在首次启动后生成,你可以在<code>config.yml</code>中修改配置项后重启轻雪,绝大多数情况下,你只需要修改<code>superusers</code>和<code>nickname</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"># &quot;&quot;alconna_use_command_startalconna</span>
<span class="token key atrule">host</span><span class="token punctuation">:</span> 127.0.0.1 <span class="token comment"># 0.0.0.0IP</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 key atrule">fake_device_info</span><span class="token punctuation">:</span> <span class="token comment"># </span>
<span class="token key atrule">cpu</span><span class="token punctuation">:</span>
<span class="token key atrule">brand</span><span class="token punctuation">:</span> AMD
<span class="token key atrule">cores</span><span class="token punctuation">:</span> <span class="token number">16</span> <span class="token comment"># </span>
<span class="token key atrule">logical_cores</span><span class="token punctuation">:</span> <span class="token number">32</span> <span class="token comment"># </span>
<span class="token key atrule">frequency</span><span class="token punctuation">:</span> <span class="token number">3600</span> <span class="token comment"># CPUMHz</span>
<span class="token key atrule">mem</span><span class="token punctuation">:</span>
<span class="token key atrule">total</span><span class="token punctuation">:</span> <span class="token number">32768000000</span> <span class="token comment"># </span>
<span class="token key atrule">alconna_use_command_start</span><span class="token punctuation">:</span> <span class="token boolean important">false</span> <span class="token comment"># alconna使false</span>
<span class="token key atrule">alconna_auto_completion</span><span class="token punctuation">:</span> <span class="token boolean important">false</span> <span class="token comment"># alconnafalse</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 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/ws</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),p=[o];function c(l,u){return s(),a("div",null,p)}const k=n(e,[["render",c],["__file","config.html.vue"]]),r=JSON.parse('{"path":"/deployment/config.html","title":"","lang":"zh-CN","frontmatter":{"title":"","icon":"cog","order":2,"category":"使","tag":["",""],"description":"(Nonebotdotenv) config.ymlsuperusersnickname 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.ymlsuperusersnickname Onebot ..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-04-05T12:07:33.000Z"}],["meta",{"property":"article:author","content":""}],["meta",{"property":"article:tag","content":""}],["meta",{"property":"article:tag","content":""}],["meta",{"property