1
0
forked from bot/app
LiteyukiBot/assets/basic_command.html-CZGGBSWM.js

50 lines
14 KiB
JavaScript
Raw Normal View History

import{_ as n,o as s,c as a,b as e}from"./app-OOSamQq_.js";const t={},o=e(`<h2 id="基础插件" tabindex="-1"><a class="header-anchor" href="#基础插件"><span>基础插件</span></a></h2><h3 id="轻雪-liteyuki" tabindex="-1"><a class="header-anchor" href="#轻雪-liteyuki"><span><strong>轻雪 <code>liteyuki</code></strong></span></a></h3><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code><span class="token comment"># 仅超级用户</span>
reload-liteyuki <span class="token comment"># 重载轻雪</span>
update-liteyuki <span class="token comment"># 更新轻雪</span>
liteecho <span class="token comment"># 查看当前bot</span>
status <span class="token comment"># 查看统计信息和状态</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>
config get <span class="token punctuation">[</span>key<span class="token punctuation">]</span> <span class="token comment"># key使</span>
switch-image-mode <span class="token comment"># 在普通图片和Markdown大图之间切换该功能需要commit:505468b及以后的Lagrange.OneBot</span>
<span class="token comment"># 所有人可用</span>
liteyuki-docs <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 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><p></p><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code>status ,
reload-liteyuki 重启轻雪,
update-liteyuki 更新轻雪,
reload-resources 重载资源,
config 配置 <span class="token operator">|</span> <span class="token builtin class-name">set</span> <span class="token operator">|</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></div><h3 id="--liteyuki-pacman" tabindex="-1"><a class="header-anchor" href="#--liteyuki-pacman"><span><strong>/ <code>liteyuki_pacman</code></strong></span></a></h3><ul><li></li></ul><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code><span class="token comment"># </span>
<span class="token function">npm</span> update <span class="token comment"># </span>
<span class="token function">npm</span> <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 function">npm</span> uninstall <span class="token operator">&lt;</span>plugin_name<span class="token operator">&gt;</span> <span class="token comment"># </span>
<span class="token function">npm</span> 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 function">npm</span> enable-global <span class="token operator">&lt;</span>plugin_name<span class="token operator">&gt;</span> <span class="token comment"># </span>
<span class="token function">npm</span> disable-global <span class="token operator">&lt;</span>plugin_name<span class="token operator">&gt;</span> <span class="token comment"># </span>
<span class="token comment"># 群聊仅群主管理员超级用户可用私聊所有人可用</span>
<span class="token function">npm</span> <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 function">npm</span> disable <span class="token operator">&lt;</span>plugin_name<span class="token operator">&gt;</span> <span class="token comment"># </span>
<span class="token function">npm</span> 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>
</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><ul><li></li></ul><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code><span class="token comment"># </span>
<span class="token function">rpm</span> 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 function">rpm</span> load <span class="token operator">&lt;</span>pack_name<span class="token operator">&gt;</span> <span class="token comment"># </span>
<span class="token function">rpm</span> unload <span class="token operator">&lt;</span>pack_name<span class="token operator">&gt;</span> <span class="token comment"># </span>
<span class="token function">rpm</span> change <span class="token operator">&lt;</span>pack_name<span class="token operator">&gt;</span> <span class="token comment"># </span>
<span class="token function">rpm</span> reload <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 class="line-number"></div></div></div><p></p><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code><span class="token function">npm</span> <span class="token operator">|</span> update <span class="token operator">|</span> <span class="token function">install</span> <span class="token operator">|</span> uninstall <span class="token operator">|</span> search
<span class="token builtin class-name">enable</span> <span class="token operator">|</span> disable <span class="token operator">|</span> enable-global <span class="token operator">|</span> disable-global
<span class="token function">rpm</span> <span class="token operator">|</span> load <span class="token operator">|</span> unload <span class="token operator">|</span> change <span class="token operator">|</span> reload <span class="token operator">|</span> 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></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><strong><code>liteyuki_user</code></strong></span></a></h3><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code><span class="token comment"># </span>
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>
</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><p></p><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code>profile <span class="token operator">|</span> <span class="token builtin class-name">set</span> <span class="token operator">|</span> get
</code></pre><div class="line-numbers" aria-hidden="true"><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>`,19),l=[o];function i(p,c){return s(),a("div",null,l)}const d=n(t,[["render",i],["__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":" liteyuki / liteyuki_pacman 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":" liteyuki / liteyuki_pacman 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-10T02:01:41.000Z"}],["meta",{"property":"article:author","content":""}],["meta",{"property":"article:modified_time","content":"2024-04-10T02:01:41.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-04-10T02:01:41.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_pacman","slug":"--liteyuki-pacman","link":"#--liteyuki-pacman","children":[]},{"level":3,"title":"liteyuki_user","slug":"liteyuki-user","link":"#liteyuki-user","children":[]}]}],"git":{"createdTime":1711598703000,"updatedTime":1712714501000,"contributors":[{"name":"snowy","email":"snowykami@outlook.com","commits":13},{"name":"Snowykami","email":"79104275+snowykami@users.noreply.github.com","commits":4}]},"readingTime":{"minutes":2.11,"words":632},"filePathRelative":"usage/basic_command.md","localizedDate":"2024328","autoDesc":true,"excerpt":"<h2></h2>\\n<h3><strong> <code>liteyuki</code></strong></h3>\\n<div class=\\"language-bash\\" data-ext=\\"sh\\" data-title=\\"sh\\"><pre class=\\"language-bash\\"><code><span class=\\"token comment\\"># </span>\\nreload-liteyuki <span class=\\"token comment\\"># </span>\\nupdate-liteyuki <span class=\\"token comment\\"># </span>\\nliteecho <span class=\\"token comment\\"># bot</span>\\nstatus <span class=\\"token comment\\"># </span>\\nconfig <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\\"># <EFBFBD><EFBFBD>