Skip to main content

一个基于mirai-api-http的高性能qq机器人框架

Project description

Karas


这是一个基于mirai-api-http的qq机器人框架

Version

Mirai-API-API-Version python-Version

使用

  • 首先你需要安装requirements中的依赖
pip3 install -r requirements.txt
  • 一个群聊复读机实例:
from karas.box import Yurine,MessageChain,Group
yurine = Yurine(
    host="localhost",
    port=8080,
    qq=114514,
    verifyKey="1919810"
)

@yurine.listen("GroupMessage")
async def gm_event(group:Group, message: MessageChain):
    await yurine.sendGroup(group, message)

yurine.run_forever()

Notice

该框架目前处于开发中状态,如果您在使用过程中发现了bug或者您有好的建议,请尽情提出您的issues

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

karas_py-0.0.2.dev0.tar.gz (18.6 kB view hashes)

Uploaded Source

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