2024-04-05 09:16:31 +08:00
|
|
|
|
import{_ as n}from"./plugin-vue_export-helper-DlAUqK2U.js";import{o as a,c as s,b as e}from"./app-Cbuq0-Vn.js";const t={},o=e(`<h2 id="基础插件命令" tabindex="-1"><a class="header-anchor" href="#基础插件命令"><span>基础插件命令</span></a></h2><h4 id="命令前有-s-的表示仅超级用户可用-o-和-a-分别为群主和群管可用" tabindex="-1"><a class="header-anchor" href="#命令前有-s-的表示仅超级用户可用-o-和-a-分别为群主和群管可用"><span>命令前有[S]的表示仅超级用户可用,[O]和[A]分别为群主和群管可用</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>
|
2024-03-29 15:13:19 +08:00
|
|
|
|
<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>liteyuki <span class="token comment"># 查看轻雪信息</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"><</span>key<span class="token operator">></span> value <span class="token comment"># 添加配置项,若存在则会覆盖,输入值会被执行,以便于转换为正确的值,"10"和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>
|
2024-04-03 15:00:36 +08:00
|
|
|
|
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>switch-image-mode <span class="token comment"># 切换图片模式,该功能需要commit:505468b及以后的Lagrange.OneBot,在普通图片和Markdown图片之间切换,后者更大但有失败的可能</span>
|
2024-03-29 15:13:19 +08:00
|
|
|
|
<span class="token comment"># 上述两个命令修改的配置项在数据库中保存,但是优先级低于配置文件,如果配置文件中存在相同的配置项,将会使用配置文件中的配置</span>
|
|
|
|
|
------
|
|
|
|
|
别名: reload-liteyuki 重启轻雪, update-liteyuki 更新轻雪, config 配置, <span class="token builtin class-name">set</span> 设置, get 查询
|
2024-04-01 12:31:40 +08:00
|
|
|
|
</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></div><h3 id="轻雪nonebot插件管理-liteyuki-npm" tabindex="-1"><a class="header-anchor" href="#轻雪nonebot插件管理-liteyuki-npm"><span>轻雪Nonebot插件管理 <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>npm update <span class="token comment"># 更新插件索引</span>
|
2024-03-29 15:13:19 +08:00
|
|
|
|
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>npm <span class="token function">install</span> <span class="token operator"><</span>plugin_name<span class="token operator">></span> <span class="token comment"># 安装插件</span>
|
|
|
|
|
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>npm uninstall <span class="token operator"><</span>plugin_name<span class="token operator">></span> <span class="token comment"># 卸载插件</span>
|
|
|
|
|
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>npm search <span class="token operator"><</span>keywords<span class="token punctuation">..</span>.<span class="token operator">></span> <span class="token comment"># 通过关键词搜索插件</span>
|
|
|
|
|
------
|
|
|
|
|
别名: <span class="token function">npm</span> 插件, update 更新, <span class="token function">install</span> 安装, uninstall 卸载, search 搜索
|
|
|
|
|
</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><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code><span class="token punctuation">[</span>SOA<span class="token punctuation">]</span>enable <span class="token operator"><</span>plugin_name<span class="token operator">></span> <span class="token comment"># 启用插件</span>
|
|
|
|
|
<span class="token punctuation">[</span>SOA<span class="token punctuation">]</span>disable <span class="token operator"><</span>plugin_name<span class="token operator">></span> <span class="token comment"># 禁用插件</span>
|
|
|
|
|
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>enable-global <span class="token operator"><</span>plugin_name<span class="token operator">></span> <span class="token comment"># 全局启用插件</span>
|
|
|
|
|
<span class="token punctuation">[</span>S<span class="token punctuation">]</span>disable-global <span class="token operator"><</span>plugin_name<span class="token operator">></span> <span class="token comment"># 全局禁用插件</span>
|
2024-04-03 01:04:31 +08:00
|
|
|
|
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"># 列出所有插件 page为页数,num为每页显示数量</span>
|
2024-03-29 15:13:19 +08:00
|
|
|
|
<span class="token comment"># 受限于Nonebot的钩子函数,目前只能阻断消息事件的传入,对于主动推送消息的插件,无法将其阻止</span>
|
|
|
|
|
------
|
|
|
|
|
别名: <span class="token builtin class-name">enable</span> 启用, disable 停用, enable-global 全局启用, disable-global 全局停用, list-plugin 列出插件/插件列表
|
|
|
|
|
</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></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"><</span>key<span class="token operator">></span> <span class="token punctuation">[</span>value<span class="token punctuation">]</span> <span class="token comment"># 设置用户信息或打开属性设置菜单</span>
|
|
|
|
|
profile get <span class="token operator"><</span>key<span class="token operator">></span> <span class="token comment"># 获取用户信息</span>
|
|
|
|
|
------
|
|
|
|
|
别名: profile 个人信息, <span class="token builtin class-name">set</span> 设置, get 查询
|
2024-04-03 15:00:36 +08:00
|
|
|
|
</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><param></code>为必填参数,<code>[option]</code>为可选参数。</p><p><strong>命令别名</strong>:配置了命令别名的命令可以使用别名代替原命令,例如<code>npm install ~</code>可以使用<code>插件 安装 ~</code>代替。</p>`,11),i=[o];function l(p,c){return a(),s("div",null,i)}const d=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]分别为群主和群管可用 轻雪liteyuki 轻雪Nonebot插件管理 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]分别为群主和群管可用 轻雪liteyuki 轻雪Nonebot插件管理 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-03T06:59:40.000Z"}],["meta",{"property":"article:author","content":"远野千束"}],["meta",{"property":"article:modified_time","content":"2024-04-03T06:59:40.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"基础命令\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-04-03T06:59:40.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":"轻雪Nonebot插件管理 liteyuki_npm","slug":"轻雪nonebot插件管理-liteyuki-npm","link":"#轻雪nonebot插件管理-liteyuki-npm","children":[]},{"level":3,"title":"轻雪用户管理liteyuki_user","slug":"轻雪用户管理liteyuki-user","link":"#轻雪用户管理liteyuki-user","children":[]}]}],"git":{"createdTime":1711598703000,"updatedTime":1712127580000,"contributors":[{"name":"snowy","email":"snowykami@outlook.com","commits":8},{"name":"Snowykami","email":"79104275+snowykami@users.noreply.github.com","commits":1}]},"readingTime":{"minutes":1.9,"words":569},"filePathRelative":"usage/basic_command.md","localizedDate":"2024年3月28日","autoDesc":true}');export{d as comp,m as data};
|