mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-02-07 18:36:09 +08:00
2 lines
5.4 KiB
JavaScript
2 lines
5.4 KiB
JavaScript
|
import{_ as i,c as a,ae as t,o as n}from"./chunks/framework.BzDBnRMZ.js";const g=JSON.parse('{"title":"index","description":"","frontmatter":{"title":"index","order":100,"collapsed":true},"headers":[],"relativePath":"dev/api/tools/marshoai_meogirl/index.md","filePath":"zh/dev/api/tools/marshoai_meogirl/index.md","lastUpdated":1734175019000}'),e={name:"dev/api/tools/marshoai_meogirl/index.md"};function h(r,s,l,o,p,d){return n(),a("div",null,s[0]||(s[0]=[t('<h1 id="模块-nonebot-plugin-marshoai-tools-marshoai-meogirl" tabindex="-1"><strong>模块</strong> <code>nonebot_plugin_marshoai.tools.marshoai_meogirl</code> <a class="header-anchor" href="#模块-nonebot-plugin-marshoai-tools-marshoai-meogirl" aria-label="Permalink to "**模块** `nonebot_plugin_marshoai.tools.marshoai_meogirl`""></a></h1><hr><h3 id="async-func-meogirl" tabindex="-1"><em><strong>async func</strong></em> <code>meogirl()</code> <a class="header-anchor" href="#async-func-meogirl" aria-label="Permalink to "***async func*** `meogirl()`""></a></h3><details><summary><b>源代码</b> 或 <a href="https://github.com/LiteyukiStudio/nonebot-plugin-marshoai/tree/main/nonebot_plugin_marshoai/tools/marshoai_meogirl/__init__.py#L5" target="_blank">在GitHub上查看</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">async</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> def</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> meogirl</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">():</span></span>\n<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> mg_info.meogirl()</span></span></code></pre></div></details><hr><h3 id="async-func-search-msg-str-num-int-3" tabindex="-1"><em><strong>async func</strong></em> <code>search(msg: str, num: int = 3)</code> <a class="header-anchor" href="#async-func-search-msg-str-num-int-3" aria-label="Permalink to "***async func*** `search(msg: str, num: int = 3)`""></a></h3><details><summary><b>源代码</b> 或 <a href="https://github.com/LiteyukiStudio/nonebot-plugin-marshoai/tree/main/nonebot_plugin_marshoai/tools/marshoai_meogirl/__init__.py#L10" target="_blank">在GitHub上查看</a></summary><div class="language-python vp-adaptive-theme"><button title="Copy Code" class="copy"></button><span class="lang">python</span><pre class="shiki shiki-themes github-light github-dark vp-code" tabindex="0"><code><span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">async</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> def</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> search</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(msg: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">str</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, num: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">int</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">3</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">):</span></span>\n<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;"> str</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">await</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> mg_search.search(msg, num))</span></span></code></pre></div></details><hr><h3 id="async-func-introduce-msg-str" tabindex="-1"><em><strong>async func</strong></em> <code>introduce(msg: str)</code> <a class="header-anchor" href="#async-func-introduce-msg-s
|