nonebot-plugin-marshoai/assets/dev_api_plugins_twisuki_petcat_index.md.DrBGExmf.js

2 lines
20 KiB
JavaScript
Raw Normal View History

import{_ as i,c as a,o as t,ae as n}from"./chunks/framework.AELpvxz7.js";const d=JSON.parse('{"title":"index","description":"","frontmatter":{"title":"index","order":100,"collapsed":true},"headers":[],"relativePath":"dev/api/plugins/twisuki_petcat/index.md","filePath":"zh/dev/api/plugins/twisuki_petcat/index.md","lastUpdated":null}'),e={name:"dev/api/plugins/twisuki_petcat/index.md"};function h(l,s,p,k,r,o){return t(),a("div",null,s[0]||(s[0]=[n('<h1 id="模块-nonebot-plugin-marshoai-plugins-twisuki-petcat" tabindex="-1"><strong>模块</strong> <code>nonebot_plugin_marshoai.plugins.twisuki_petcat</code> <a class="header-anchor" href="#-nonebot-plugin-marshoai-plugins-twisuki-petcat" aria-label="Permalink to &quot;**** `nonebot_plugin_marshoai.plugins.twisuki_petcat`&quot;"></a></h1><hr><p><code>@on_function_call(description=&#39;, &#39;).params(type=String(description=&#39;, &quot;1&quot;, &#39;))</code></p><h3 id="async-func-cat-new-type-str-str" tabindex="-1"><em><strong>async func</strong></em> <code>cat_new(type: str) -&gt; str</code> <a class="header-anchor" href="#async-func-cat-new-type-str-str" aria-label="Permalink to &quot;***async func*** `cat_new(type: str) -&gt; str`&quot;"></a></h3><p><strong></strong>: </p><details><summary><b></b> <a href="https://github.com/LiteyukiStudio/nonebot-plugin-marshoai/tree/main/nonebot_plugin_marshoai/plugins/twisuki_petcat/__init__.py#L22" 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:#6F42C1;--shiki-dark:#B392F0;">@on_function_call</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(</span><span style="--shiki-light:#E36209;--shiki-dark:#FFAB70;">description</span><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;">=</span><span style="--shiki-light:#032F62;--shiki-dark:#9ECBFF;">&#39;, &#39;</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span><span style="--shiki-light:#B31D28;--shiki-light-font-style:italic;--shiki-dark:#FDAEB7;--shiki-dark-font-style:italic;">.params(type=String(description=&#39;, &quot;1&quot;, &#39;))</span></span>\n<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;"> cat_new</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">(type: </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">str</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">) -&gt; </span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">str</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;"> pc_cat.cat_new(</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">type</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">)</span></span></code></pre></div></details><hr><p><code>@on_function_call(description=&#39;token(20b64), , , &#39;).params(token=String(description=&#39;token(20b64)&#39;), name=String(description=&#39;&#39;), skill=String(description=&#39;&#39;))</code></p><h3 id="async-func-cat-init-token-str-name-str-skill-str-str" tabindex="-1"><em><strong>async func</strong></em> <code>cat_init(token: str, name: str, skill: str) -&gt; str</code> <a class="header-anchor" href="#async-func-cat-init-token-str-name-str-skill-str-str" aria-label="Permalink to &quot;***async func*** `cat_init(token: str, name