OPQBot/IOTQQ/IOTBot的Python开发助手
Project description
botoy
对机器人框架OPQ接口的 Python 封装, 因为功能模块耦合度低, 所以你可以完全使用该框架开发,也可以选取需要的内容到自己的项目中
安装
pip install botoy -i https://pypi.org/simple --upgrade
示例
如果你配置好了 OPQ,并且配置保持默认(bot 连接地址http://127.0.0.1:8888),下面一行代码即可监听消息,并在收到群消息或好友消息内容为 test 时回复 ok
__import__('botoy').Botoy().on_group_msg(lambda ctx: __import__('botoy').Action(ctx.CurrentQQ).sendGroupText(ctx.FromGroupId, 'ok') if ctx.Content == 'test' else None).on_friend_msg(lambda ctx: __import__('botoy').Action(ctx.CurrentQQ).sendFriendText(ctx.FromUin, 'ok') if ctx.Content == 'test' else None).run()
文档
简单例子
感谢
LICENSE
MIT
CHANGE LOG
See releases
0.0.2
- 修复模块导入错误
V0.0.1
初次发布
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
botoy-0.0.22.tar.gz
(28.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
botoy-0.0.22-py3-none-any.whl
(44.3 kB
view details)
File details
Details for the file botoy-0.0.22.tar.gz.
File metadata
- Download URL: botoy-0.0.22.tar.gz
- Upload date:
- Size: 28.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae0f8818d003d92d6aad72ef15ca1ff475c5ecf0dd5e1d67516ad92e7309a08f
|
|
| MD5 |
bc58d0d0b1b639059ac0de49cecb6cb0
|
|
| BLAKE2b-256 |
f60655a78a2317e4455cddb7995c6b577ee6dacb2f03df69e9d6f2370d80d0c1
|
File details
Details for the file botoy-0.0.22-py3-none-any.whl.
File metadata
- Download URL: botoy-0.0.22-py3-none-any.whl
- Upload date:
- Size: 44.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ce96419db1dcf77f570071638862ad13deb21d6ebf1a18c9ee803396b98edfc
|
|
| MD5 |
a00a2e603ef727ddc2e39984114addd3
|
|
| BLAKE2b-256 |
cf697ed463af75116dcbc24a9d46b43c7795f2e286a4ac94771f9763db97d324
|