app/assets/basic_command.html-DsXg7WnS.js

43 lines
16 KiB
JavaScript
Raw Normal View History

import{_ as n,o as s,c as a,b as e}from"./app-MxCMiWAc.js";const t={},p=e(`<h2 id="基础插件命令" tabindex="-1"><a class="header-anchor" href="#基础插件命令"><span>基础插件命令</span></a></h2><h4 id="命令前有-s-的表示仅超级用户可用-o-和-a-分别为群主和群管可用-p-为私聊可用" tabindex="-1"><a class="header-anchor" href="#命令前有-s-的表示仅超级用户可用-o-和-a-分别为群主和群管可用-p-为私聊可用"><span>命令前有[S]的表示仅超级用户可用,[O]和[A]分别为群主和群管可用,[P]为私聊可用</span></a></h4><h3 id="轻雪liteyuki" tabindex="-1"><a class="header-anchor" href="#轻雪liteyuki"><span>轻雪<code>liteyuki</code></span></a></h3><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code><span class="token punctuation">[</span>S<span class="token punctuation">]</span>reload-liteyuki <span class="token comment"># 重载轻雪</span>
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>update-liteyuki <span class="token comment"># </span>
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>liteecho <span class="token comment"># bot</span>
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>config <span class="token builtin class-name">set</span> <span class="token operator">&lt;</span>key<span class="token operator">&gt;</span> value <span class="token comment"># 便&quot;10&quot;10</span>
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>config get <span class="token punctuation">[</span>key<span class="token punctuation">]</span> <span class="token comment"># key使</span>
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>reload-resources <span class="token comment"># </span>
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>switch-image-mode <span class="token comment"># commit:505468bLagrange.OneBotMarkdown</span>
liteyuki-docs <span class="token comment"># 查看轻雪文档</span>
<span class="token comment"># 上述两个命令修改的配置项在数据库中保存但是优先级低于配置文件如果配置文件中存在相同的配置项将会使用配置文件中的配置</span>
------
别名: reload-liteyuki 重启轻雪, update-liteyuki 更新轻雪, reload-resources 重载资源, config 配置, <span class="token builtin class-name">set</span> , get ,
switch-image-mode 切换图片模式, liteyuki-docs 轻雪文档
</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></div><h3 id="-liteyuki-npm" tabindex="-1"><a class="header-anchor" href="#-liteyuki-npm"><span> <code>liteyuki_npm</code></span></a></h3><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code><span class="token punctuation">[</span>S<span class="token punctuation">]</span>nps update <span class="token comment"># </span>
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>nps <span class="token function">install</span> <span class="token operator">&lt;</span>plugin_name<span class="token operator">&gt;</span> <span class="token comment"># </span>
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>nps uninstall <span class="token operator">&lt;</span>plugin_name<span class="token operator">&gt;</span> <span class="token comment"># </span>
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>nps search <span class="token operator">&lt;</span>keywords<span class="token punctuation">..</span>.<span class="token operator">&gt;</span> <span class="token comment"># </span>
------
<span class="token punctuation">[</span>AOSP<span class="token punctuation">]</span>npm <span class="token builtin class-name">enable</span> <span class="token operator">&lt;</span>plugin_name<span class="token operator">&gt;</span> <span class="token comment"># </span>
<span class="token punctuation">[</span>AOSP<span class="token punctuation">]</span>npm disable <span class="token operator">&lt;</span>plugin_name<span class="token operator">&gt;</span> <span class="token comment"># </span>
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>npm enable-global <span class="token operator">&lt;</span>plugin_name<span class="token operator">&gt;</span> <span class="token comment"># </span>
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>npm disable-global <span class="token operator">&lt;</span>plugin_name<span class="token operator">&gt;</span> <span class="token comment"># </span>
list-plugin <span class="token punctuation">[</span>page<span class="token punctuation">]</span> <span class="token punctuation">[</span>num<span class="token punctuation">]</span> <span class="token comment"># pagenum</span>
------
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>rpm list <span class="token punctuation">[</span>page<span class="token punctuation">]</span> <span class="token punctuation">[</span>num<span class="token punctuation">]</span> <span class="token comment"># pagenum</span>
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>rpm load <span class="token operator">&lt;</span>resource_pack_name<span class="token operator">&gt;</span> <span class="token comment"># </span>
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>rpm unload <span class="token operator">&lt;</span>resource_pack_name<span class="token operator">&gt;</span> <span class="token comment"># </span>
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>rpm change <span class="token operator">&lt;</span>resource_pack_name<span class="token operator">&gt;</span> <span class="token comment"># </span>
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>rpm reload <span class="token comment"># </span>
------
别名: nps 插件商店, <span class="token function">npm</span> , update , <span class="token function">install</span> , uninstall , search ,
<span class="token builtin class-name">enable</span> , disable , enable-global , disable-global , list-plugin /,
<span class="token function">rpm</span> , load , unload , change , reload , list /
</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></div><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code>
<span class="token comment"># 受限于Nonebot的钩子函数目前只能阻断消息事件的传入对于主动推送消息的插件无法将其阻止</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></div><h3 id="liteyuki-user" tabindex="-1"><a class="header-anchor" href="#liteyuki-user"><span><code>liteyuki_user</code></span></a></h3><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code>profile <span class="token comment"># </span>
profile <span class="token builtin class-name">set</span> <span class="token operator">&lt;</span>key<span class="token operator">&gt;</span> <span class="token punctuation">[</span>value<span class="token punctuation">]</span> <span class="token comment"># </span>
profile get <span class="token operator">&lt;</span>key<span class="token operator">&gt;</span> <span class="token comment"># </span>
------
别名: profile 个人信息, <span class="token builtin class-name">set</span> , get
</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><p><strong></strong><code>&lt;param&gt;</code><code>[option]</code></p><p><strong></strong>使<code>npm install ~</code>使<code> ~</code></p>`,11),o=[p];function l(i,c){return s(),a("div",null,o)}const r=n(t,[["render",l],["__file","basic_command.html.vue"]]),m=JSON.parse('{"path":"/usage/basic_command.html","title":"","lang":"zh-CN","frontmatter":{"title":"","icon":"comment","order":1,"category":"使","description":" [S][O][A][P] liteyuki liteyuki_npm liteyuki_user <param>[option] 使npm install ~...","head":[["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/usage/basic_command.html"}],["meta",{"property":"og:site_name","content":"LiteyukiBot "}],["meta",{"property":"og:title","content":""}],["meta",{"property":"og:description","content":" [S][O][A][P] liteyuki liteyuki_npm liteyuki_user <param>[option] 使npm install ~..."}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-04-06T16:35:53.000Z"}],["meta",{"property":"article:author","content":""}],["meta",{"property":"article:modified_time","content":"2024-04-06T16:35:53.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-04-06T16:35:53.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"\\",\\"url\\":\\"https://snowykami.me\\"}]}"]]},"headers":[{"level":2,"title":"","slug":"","link":"#","children":[{"level":3,"title":"liteyuki","slug":"liteyuki","link":"#liteyuki","children":[]},{"level":3,"title":" liteyuki_npm","slug":"-liteyuki-npm","link":"#-liteyuki-npm","children":[]},{"level":3,"title":"liteyuki_user","slug":"liteyuki-user","link":"#liteyuki-user","children":[]}]}],"git":{"createdTime":1711598703000,"updatedTime":1712421353000,"contributors":[{"name":"snowy","email":"snowykami@outlook.com","commits":11},{"name":"Snowykami","email":"79104275+snowykami@users.noreply.github.com","commits":1}]},"readingTime":{"minutes":2.36,"words":709},"filePathRelative":"usage/basic_command.md","localizedDate":"2024328","excerpt":"<h2></h2>\\n<h4>[S][O][A][P]</h4>\\n<h3><code>liteyuki</code></h3>\\n<div class=\\"language-bash\\" data-ext=\\"sh\\" data-title=\\"sh\\"><pre class=\\"language-bash\\"><code><span class=\\"token punctuation\\">[</span>S<span class=\\"token punctuation\\">]</span>reload-liteyuki <span class=\\"token comment\\"># </span>\\n<span class=\\"token punctuation\\">[</span>S<span class=\\"token punctuation\\">]</span>update-liteyuki <span class=\\"token comment\\"># </span>\\n<span class=\\"token punctuat