app/assets/config.html-BNYMOJRz.js

21 lines
9.7 KiB
JavaScript
Raw Normal View History

import{_ as s,r as t,o,c,b as n,d as e,a as l,e as p}from"./app-p0sajvZ1.js";const i={},r=p(`<p>首次运行后生成<code>config.yml</code>,你可以修改配置项后重启轻雪,绝大多数情况下,你只需要修改<code>superusers</code>和<code>nickname</code>字段即可</p><h2 id="基础配置项" tabindex="-1"><a class="header-anchor" href="#基础配置项"><span><strong>基础配置项</strong></span></a></h2><div class="language-yaml line-numbers-mode" data-ext="yml" data-title="yml"><pre class="language-yaml"><code><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_start保证alconna解析正常</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>
</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></div><h2 id="" tabindex="-1"><a class="header-anchor" href="#"><span><strong></strong></span></a></h2><p></p><div class="language-yaml line-numbers-mode" data-ext="yml" data-title="yml"><pre class="language-yaml"><code><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"># </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"># 开发者选项</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">auto_update</span><span class="token punctuation">:</span> <span class="token boolean important">true</span> <span class="token comment"># 4</span>
<span class="token key atrule">debug</span><span class="token punctuation">:</span> <span class="token boolean important">false</span> <span class="token comment"># </span>
<span class="token key atrule">safe_mode</span><span class="token punctuation">:</span> <span class="token boolean important">false</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></div><div class="hint-container tip"><p class="hint-container-title"></p><p>使dotenv<code>.env.{ENVIRONMENT}</code><code>config.yml</code><code>environment:{ENVIRONMENT}</code></p></div><h2 id="onebot" tabindex="-1"><a class="header-anchor" href="#onebot"><span><strong>OneBot</strong></span></a></h2><p>WebSocket </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://127.0.0.1:20216/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><h2 id="" tabindex="-1"><a class="header-anchor" href="#"><span><strong></strong></span></a></h2>`,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 a=t("ExternalLinkIcon");return o(),c("div",null,[r,n("ul",null,[n("li",null,[e("使访"),n("a",u,[e("OneBot Adapter"),l(a)]),e("")]),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.ymlsuperusersnickname 使dotenv.env.{ENVIRONMENT}config.ymlenvironment:{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.ymlsuperusersnickname 使dotenv.env.{ENVIRONMENT}config.ymlenvironment:{ENVIRON..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-05-09T08:36:45.000Z"}],["meta",{"property":"article:author","content":""}],["meta",{"property":"article:tag","content":""}],["meta",{"property":"article:tag","content":""}],["meta",{"property":"article:modified_time","content":"2024-05-09T08:36:45.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-05-09T08:36:45.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"