A small package
Project description
Aryan
简介
简单介绍一下本项目有何有点以及为何值得使用
- 本项目
写的很烂源码通俗易懂 方便阅读与使用 - 作者(也就是我)单纯 善良 可爱 迷人 友善...(省略一万字)
安装
pip install aryan
或使用包管理工具poetry
poetry add aryan
部署
配置mirai-api-http(mah)
本项目要求使用mah v2.0 并开启http与websocket(别问 问就是我懒
配置你的python文件
import asyncio
from aryan import Mirai, MiraiSession, BotConfiguration, Bot
from aryan import GroupMessage, GlobalEventChannel
app = Mirai(
MiraiSession(
verify_key="verifyKey",
host="localhost:8080",
),
loop=asyncio.get_event_loop(),
bots=[
Bot(BotConfiguration(account=...)),
Bot(BotConfiguration(account=...))
]
)
async def main(event: GroupMessage):
print("received event:", type(event))
GlobalEventChannel.INSTANCE.subscribeAlways(GroupMessage, main)
app.launch_blocking()
查看更多用法可以参考这里
如果在使用本项目中遇到任何问题,请不要生气,不要砸电脑,可以友好的提个issue或者加入qq交流群喷项目交流
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
aryan-0.0.3.post2.tar.gz
(33.8 kB
view hashes)
Built Distribution
Close
Hashes for aryan-0.0.3.post2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fba9219d9b0d24f0ed3d8cf15be021edafb845052b2551ed68c094afb9fd696d |
|
MD5 | 538cfa2c3af67cf335eaf6e2a5d77995 |
|
BLAKE2b-256 | 9a237fb479ef427a05bb835917908c3a9123ddf92c3e84fc3ddc69c3ea1d4a92 |