Skip to main content

botoy

QQ Group

pypi python Lines of code GitHub code size in bytes LICENSE

对机器人框架OPQ接口的 Python 封装, 因为功能模块耦合度低, 所以你可以完全使用该框架开发,也可以选取需要的内容到自己的项目中


安装

pip install botoy -i https://pypi.org/simple --upgrade

示例

如果你配置好了 OPQ,并且配置保持默认(bot 连接地址http://127.0.0.1:8086), 下面示例可实现在收到群消息内容为 test 时回复 ok

新建文件 bot.py

from botoy import bot, ctx, S

@bot
async def test():
    if ctx.g and ctx.g.text == 'test':
        await S.text('ok')

bot.print_receivers()
bot.run()

运行 python bot.py

+------+--------+-------+----------------+
| Name | Author | Usage |      Meta      |
+------+--------+-------+----------------+
| test |        |       | test.py line 4 |
+------+--------+-------+----------------+
ℹ️ 04-15 19:21:58 INFO 连接中[ws://localhost:8086/ws]...
✔️ 04-15 19:21:58 SUCCESS 连接成功!

文档

感谢

yuban10703 milkice

LICENSE

MIT

CHANGE LOG

See releases

0.0.2

  • 修复模块导入错误

V0.0.1

初次发布

Metadata

Release files for botoy 9.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for botoy 9.11
File Size Uploaded Provenance
botoy-9.11.tar.gz 41.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for botoy 9.11
File Interpreter ABI Platform
botoy-9.11-py3-none-any.whl Python 3 none any Details

Total release size: 90.9 kB

Release files / botoy-9.11.tar.gz

Download URL botoy-9.11.tar.gz
Size 41.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7f39d0c61eab66134ec7627d744aead2a4b29c6cdf39d7c5cedd03e940a37f05
BLAKE2b-256 checksum
How to use checksums
8fc6bd338bf02c9b1e87d4ecd7e456919a2808a342b5ed969dd213e37717ad02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.17

Release files / botoy-9.11-py3-none-any.whl

Download URL botoy-9.11-py3-none-any.whl
Size 49.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6dd77cfb2458e18c7319ac147feab074b7141c8a8c9fb0ab4d6080d521fcfb3f
BLAKE2b-256 checksum
How to use checksums
b4d5b9b1e8115fe00eb812a309a7d3f589b00175f0a6edf106de07cef6d7c807
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.17

Security for botoy 9.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.

Release history Release notifications | RSS feed

This release

9.11 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page