diff --git a/README.md b/README.md index fcc0d7f..85fc14b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,21 @@ -# arclet-alconna-avilla +# Alconna-Avilla Support Alconna for Avilla + +## 示例 + +```python +from creart import it +from arclet.alconna import Alconna +from arclet.alconna.avilla import Alc +from graia.broadcast import Broadcast +from avilla.core import MessageReceived, Relationship, Avilla + +bcc = it(Broadcast) +avilla = Avilla(...) + + +@bcc.receiver(MessageReceived, dispatchers=[Alc(Alconna(...))]) +async def _(rs: Relationship, event: MessageReceived): + ... +``` \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index 6c5a6d5..809d142 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,3 +23,5 @@ build-backend = "pdm.pep517.api" [tool] [tool.pdm] +[tool.pdm.build] +includes = ["arclet/alconna/avilla"] \ No newline at end of file