Skip to main content

A Python wrapper for the QQ Channel API

Project description

QQ.py

用 Python 编写的用于 QQ频道机器人 现代化、易于使用、功能丰富(? 且异步的 API sdk。

主要特点

  • 使用 asyncawait 的现代 Pythonic API。

安装

需要 Python 3.8或以上的版本

要安装库,你只需运行以下命令:

pip3 install -U qq.py

快速示例

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():
        print(guilds.name)
        for channels in guilds.channels:
            print(channels)

if __name__ == '__main__':
    asyncio.run(main())

输出Bot当前加入的所有频道的名字,以及所有的频道

链接

Project details


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.5.tar.gz (31.8 kB view hashes)

Uploaded Source

Built Distribution

qq.py-0.0.5-py3-none-any.whl (39.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page