1
0
forked from bot/app
LiteyukiBot/assets/extra_command.html-KdQL5R21.js

19 lines
6.9 KiB
JavaScript
Raw Normal View History

import{_ as e,o as a,c as s,e as t}from"./app-DDqkuufB.js";const n={},i=t(`<h2 id="功能插件命令" tabindex="-1"><a class="header-anchor" href="#功能插件命令"><span>功能插件命令</span></a></h2><h3 id="轻雪天气liteyuki-weather" tabindex="-1"><a class="header-anchor" href="#轻雪天气liteyuki-weather"><span><strong>轻雪天气<code>liteyuki_weather</code></strong></span></a></h3><p>查询实时天气,支持绑定城市,支持中英文城市名,支持多个关键词查询。</p><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">weather_key</span><span class="token punctuation">:</span> <span class="token string">&quot;&quot;</span> <span class="token comment"># 和风天气的天气key会自动判断key版本</span>
</code></pre><div class="line-numbers" aria-hidden="true"><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>weather <span class="token operator">&lt;</span>keywords<span class="token punctuation">..</span>.<span class="token operator">&gt;</span> <span class="token comment"># &quot; &quot;, &quot;weather Tokyo Shinjuku&quot;</span>
bind-city <span class="token operator">&lt;</span>keywords<span class="token punctuation">..</span>.<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></div><p></p><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code>weather<span class="token operator">|</span>
bind-city<span class="token operator">|</span>
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div><div class="line-number"></div></div></div><hr><h3 id="liteyuki-statistics" tabindex="-1"><a class="header-anchor" href="#liteyuki-statistics"><span><strong><code>liteyuki_statistics</code></strong></span></a></h3><p> </p><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code>statistic message <span class="token parameter variable">--duration</span> <span class="token operator">&lt;</span>duration<span class="token operator">&gt;</span> <span class="token parameter variable">--period</span> <span class="token operator">&lt;</span>period<span class="token operator">&gt;</span> <span class="token parameter variable">--group</span> <span class="token punctuation">[</span>current<span class="token operator">|</span>group_id<span class="token punctuation">]</span> <span class="token parameter variable">--bot</span> <span class="token punctuation">[</span>current<span class="token operator">|</span>bot_id<span class="token punctuation">]</span> <span class="token comment"># Bot</span>
<span class="token comment"># duration: 统计时长支持格式例如1d2h3m4s</span>
<span class="token comment"># period: 统计周期支持格式同上</span>
<span class="token comment"># group: 统计群组支持current(当前群聊)和group_id</span>
<span class="token comment"># bot: 统计Bot支持current(当前bot)和bot_id</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><p></p><div class="language-bash line-numbers-mode" data-ext="sh" data-title="sh"><pre class="language-bash"><code>statistic<span class="token operator">|</span><span class="token function">stat</span>
message<span class="token operator">|</span>m
--duration<span class="token operator">|</span>-d
--period<span class="token operator">|</span>-p
--group<span class="token operator">|</span>-g
--bot<span class="token operator">|</span>-b
current<span class="token operator">|</span>c
</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>`,15),o=[i];function r(l,p){return a(),s("div",null,o)}const d=e(n,[["render",r],["__file","extra_command.html.vue"]]),u=JSON.parse('{"path":"/usage/extra_command.html","title":"","lang":"zh-CN","frontmatter":{"title":"","icon":"comment","order":2,"category":"使","description":" liteyuki_weather liteyuki_statistics ","head":[["meta",{"property":"og:url","content":"https://vuepress-theme-hope-docs-demo.netlify.app/usage/extra_command.html"}],["meta",{"property":"og:site_name","content":"LiteyukiBot "}],["meta",{"property":"og:title","content":""}],["meta",{"property":"og:description","content":" liteyuki_weather liteyuki_statistics "}],["meta",{"property":"og:type","content":"article"}],["meta",{"property":"og:locale","content":"zh-CN"}],["meta",{"property":"og:updated_time","content":"2024-05-13T11:37:10.000Z"}],["meta",{"property":"article:author","content":""}],["meta",{"property":"article:modified_time","content":"2024-05-13T11:37:10.000Z"}],["script",{"type":"application/ld+json"},"{\\"@context\\":\\"https://schema.org\\",\\"@type\\":\\"Article\\",\\"headline\\":\\"\\",\\"image\\":[\\"\\"],\\"dateModified\\":\\"2024-05-13T11:37:10.000Z\\",\\"author\\":[{\\"@type\\":\\"Person\\",\\"name\\":\\"\\",\\"url\\":\\"https://snowykami.me\\"}]}"]]},"headers":[{"level":2,"title":"","slug":"","link":"#","children":[{"level":3,"title":"liteyuki_weather","slug":"liteyuki-weather","link":"#liteyuki-weather","children":[]},{"level":3,"title":"liteyuki_statistics","slug":"liteyuki-statistics","link":"#liteyuki-statistics","children":[]}]}],"git":{"createdTime":1711598703000,"updatedTime":1715600230000,"contributors":[{"name":"snowy","email":"snowykami@outlook.com","commits":8}]},"readingTime":{"minutes":0.77,"words":230},"filePathRelative":"usage/extra_command.md","localizedDate":"2024328","autoDesc":true}');export{d as comp,u as data};