app/assets/basic_command.html-Dk40FvWB.js

50 lines
14 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as n,o as s,c as a,b as e}from"./app-CXt4-xcw.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"># 列出所有插件 page为页数num为每页显示数量</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"># 列出所有资源包 page为页数num为每页显示数量</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":"2024年3月28日","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\\"># 添加配置项,若存在则会覆盖,输入值会被执行以转换为正确的类型,\\"10\\"和10是不一样的</span>\\nconfig get <span class=\\"token punctuation\\">[</span>key<span class=\\"token punctuation\\">]</span> <span class=\\"token comment\\"># 查询配置项不带key返回配置项列表推荐私聊使用</span>\\nswitch-image-mode <span class=\\"token comment\\"># 在普通图片和Markdown大图之间切换该功能需要commit:505468b及以后的Lagrange.OneBot</span>\\n\\n<span class=\\"token comment\\"># 所有人可用</span>\\nliteyuki-docs <span class=\\"token comment\\"># 查看轻雪文档</span>\\n</code></pre></div>"}');export{d as comp,m as data};