Another elegant Python QQ Bot framework for mirai and mirai-api-http v2.
Project description
本项目适用于 mirai-api-http 2.0 以上版本.
Ariadne 是 Graia Project 继承了 Application 并进行了许多改进后产生的作品,
相信它可以给你带来良好的 Python QQ Bot 开发体验.
注意, 本框架需要 mirai-api-http v2.
安装
pdm add graia-ariadne
或
poetry add graia-ariadne
或
pip install graia-ariadne
开始使用
from graia.ariadne.app import Ariadne
from graia.ariadne.connection.config import config
from graia.ariadne.model import Friend
app = Ariadne(config(verify_key="ServiceVerifyKey", account=123456789))
@app.broadcast.receiver("FriendMessage")
async def friend_message_listener(app: Ariadne, friend: Friend):
await app.send_message(friend, "Hello, World!")
Ariadne.launch_blocking()
讨论
QQ 交流群: 邀请链接
QQ 群不定时清除不活跃成员, 请自行重新申请入群.
文档
如果认为本项目有帮助, 欢迎点一个 Star.
协议
本项目以 GNU AGPL-3.0 作为开源协议, 这意味着你需要遵守相应的规则.
持续集成 (CI) 状态
参与开发
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file graia_ariadne-0.11.7.tar.gz.
File metadata
- Download URL: graia_ariadne-0.11.7.tar.gz
- Upload date:
- Size: 105.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fa2e964e7e0178299da9890350c14e5932212fc9083c8a78195d4738a3c9f2ed
|
|
| MD5 |
cf0f1598b06f3c85f72ddf548f1a3c67
|
|
| BLAKE2b-256 |
d80544865a1ea93c7502685b467c3c0a20565342f68f8c1e31c3112f09764c88
|
File details
Details for the file graia_ariadne-0.11.7-py3-none-any.whl.
File metadata
- Download URL: graia_ariadne-0.11.7-py3-none-any.whl
- Upload date:
- Size: 125.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
151840a25348d092108c03363e93e915c17bab15a15772af097b38740cce55fa
|
|
| MD5 |
7b2830093d026b6865b7148944ca5530
|
|
| BLAKE2b-256 |
8956fa49d564df405c94fa40c75bc273aff94a1ea446cb27e2509a7069a07fb9
|