We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 282b26f commit 454e96aCopy full SHA for 454e96a
README.md
@@ -47,9 +47,9 @@ app.run()
47
编写插件:
48
49
```python
50
-from arclet.entari import Session, MessageCreatedEvent, Plugin
+from arclet.entari import Session, MessageCreatedEvent, metadata
51
52
-Plugin.current().meta(
+metadata(
53
name="Hello, World!",
54
author=["Arclet"],
55
version="0.1.0",
@@ -61,3 +61,16 @@ Plugin.current().meta(
61
async def _(session: Session):
62
await session.send("Hello, World!")
63
```
64
+
65
+加载插件:
66
67
+```python
68
+from arclet.entari import Entari, WS, load_plugin
69
70
+load_plugin("example_plugin")
71
+load_plugin("::echo")
72
+load_plugin("::auto_reload", {"watch_dirs": ["plugins"]})
73
74
+app = Entari(WS(port=5140, path="satori"))
75
+app.run()
76
+```
0 commit comments