Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

一个基于mirai-api-http的高性能qq消息处理框架

License

Notifications You must be signed in to change notification settings

ShiroDoMain/Karas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

95 Commits

Repository files navigation

Karas


这是一个基于mirai-api-http的轻量级,高性能qq消息处理与发送框架

Version

Mirai-API-API-Version python-Version karas-Version

使用

  • 使用pip安装本项目
pip3 install karas_py
  • 一个群聊复读机实例:
    (async)
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):
 # async send message
 await yurine.sendGroup(group, message)
yurine.run_forever()

(sync send message)

from karas.box import Yurine,MessageChain,Group, Plain
yurine = Yurine(
 host="localhost",
 port=8080,
 qq=114514,
 verifyKey="1919810"
).start()
yurine.sendFriend(1808107177, [Plain("Hello World")])
yurine.close()

实例

ATRI使用了该框架开发,Bot的qq为1977987864

Notice

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

开源

该框架遵循AGPL-3.0协议开源,

iTXTech Mirai Console Loader
Copyright (C) 2020-2022 iTX Technologies
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

鸣谢

本项目使用了JetBrains的工具PyCharm开发
感谢JetBrains公司为开源项目提供的授权和支持
https://www.jetbrains.com/?from=karas

About

一个基于mirai-api-http的高性能qq消息处理框架

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /