Skip to main content

简洁高效的 Python 异步渐进式机器人框架,支持 KOOK、QQ频道、MiraiHttp 以及 CQHttp

Project description

Amiya-Bot

PyPI

简洁高效的 Python 异步渐进式机器人框架,支持 KOOK、QQ频道、MiraiHttp 以及 CQHttp

官方文档:www.amiyabot.com

Install

pip install amiyabot

Get started

import asyncio

from amiyabot import AmiyaBot, Message, Chain

bot = AmiyaBot(appid='******', token='******')


@bot.on_message(keywords='hello')
async def _(data: Message):
    return Chain(data).text(f'hello, {data.nickname}')


asyncio.run(bot.start())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

amiyabot-1.7.3-py3-none-any.whl (11.4 MB 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