mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-25 07:45:06 +08:00
2 lines
2.1 KiB
JavaScript
2 lines
2.1 KiB
JavaScript
|
import{_ as t,c as e,a7 as s,o as a}from"./chunks/framework.jrU0lkHV.js";const c=JSON.parse('{"title":"liteyuki.plugin","description":"","frontmatter":{"title":"liteyuki.plugin","collapsed":true},"headers":[],"relativePath":"en/dev/api/plugin/index.md","filePath":"en/dev/api/plugin/index.md","lastUpdated":null}'),n={name:"en/dev/api/plugin/index.md"};function l(d,i,p,o,r,u){return a(),e("div",null,i[0]||(i[0]=[s('<h1 id="module-liteyuki-plugin" tabindex="-1"><strong>Module</strong> <code>liteyuki.plugin</code> <a class="header-anchor" href="#module-liteyuki-plugin" aria-label="Permalink to "**Module** `liteyuki.plugin`""></a></h1><hr><h3 id="func-get-loaded-plugins-dict-str-plugin" tabindex="-1"><em><strong>func</strong></em> <code>get_loaded_plugins() -> dict[str, Plugin]</code> <a class="header-anchor" href="#func-get-loaded-plugins-dict-str-plugin" aria-label="Permalink to "***func*** `get_loaded_plugins() -> dict[str, Plugin]`""></a></h3><p><strong>Description</strong>: 获取已加载的插件</p><p><strong>Return</strong>: dict[str, Plugin]: 插件字典</p><details><summary><b>Source code</b> or <a href="https://github.com/LiteyukiStudio/LiteyukiBot/tree/main/liteyuki/plugin/__init__.py#L13" target="_blank">View on 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;">def</span><span style="--shiki-light:#6F42C1;--shiki-dark:#B392F0;"> get_loaded_plugins</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">() -> dict[</span><span style="--shiki-light:#005CC5;--shiki-dark:#79B8FF;">str</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;">, Plugin]:</span></span>\n<span class="line"><span style="--shiki-light:#D73A49;--shiki-dark:#F97583;"> return</span><span style="--shiki-light:#24292E;--shiki-dark:#E1E4E8;"> _plugins</span></span></code></pre></div></details>',6)]))}const h=t(n,[["render",l]]);export{c as __pageData,h as default};
|