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/>.
鸣谢
Metadata
Release files for karas-py 0.2.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| karas_py-0.2.11.tar.gz | 40.4 kB | Without provenance | Details for karas_py-0.2.11.tar.gz |
Release files / karas_py-0.2.11.tar.gz
| Download URL | karas_py-0.2.11.tar.gz |
|---|---|
| Size | 40.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f43a61bfa43ea9004c868553d8031dd7c505dce5a0b9aa98e535a9ded79499dc
|
|
BLAKE2b-256 checksum How to use checksums |
a6bae04ab18970d15ca301da5de5bc801d11ed96eec2d92a85447af1691ffcc3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Security for karas-py 0.2.11
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.