We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f99ad61 commit d14a105Copy full SHA for d14a105
docs/cdps/more/index.mdx
@@ -16,4 +16,4 @@ sidebar_position: 7
16
- [依賴關係](./dependencies.mdx)
17
- [PyPI 依賴](./pip.mdx)
18
- [日誌紀錄](./log.mdx)
19
-- [導入 依賴擴充 的 函數](./plugin.mdx)
+- [導入 擴充 的 函數](./plugin.mdx)
docs/cdps/more/plugin.mdx
@@ -2,5 +2,13 @@
2
sidebar_position: 11
3
---
4
5
-# 導入 依賴擴充 的 函數
6
-- 導入 所需依賴 中的 函數
+# 導入 擴充 的 函數
+- 導入 特定擴充 中的 函數
7
+:::tip
8
+- 使用絕對路徑,從 `./plugins` 開始計算。
9
+:::
10
+```py
11
+# main.py (report plugin)
12
+from plugins.report.src.events import onReport # 導入自己的 函數
13
+from plugins.discord_webhook import send_webhook # 導入 其他擴充 的 函數
14
+```
0 commit comments