A Python wrapper for the QQ Channel API
Project description
QQ.py
用 Python 编写的用于 QQ频道机器人 现代化、易于使用、功能丰富(? 且异步的 API sdk。
主要特点
- 使用
async
和await
的现代 Pythonic API。
快速示例
import asyncio
from qq import *
async def main():
client = Client('BotAppID', 'Bot Token')
await client.http.static_login(client.token)
async for guilds in await client.get_guilds():
guilds = await client.get_guild(guilds.id)
print(guilds.name)
if __name__ == '__main__':
asyncio.run(main())
输出Bot当前加入的所有频道的名字
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
qq.py-0.0.3.tar.gz
(12.2 kB
view hashes)
Built Distribution
qq.py-0.0.3-py3-none-any.whl
(14.6 kB
view hashes)