Skip to content

Commit

Permalink
🔧 README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Sep 3, 2022
1 parent f9afbe8 commit 07774c2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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):
...
```
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ build-backend = "pdm.pep517.api"

[tool]
[tool.pdm]
[tool.pdm.build]
includes = ["arclet/alconna/avilla"]

0 comments on commit 07774c2

Please sign in to comment.