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
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.10.tar.gz
(25.2 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.10-py3-none-any.whl
(40.6 kB
view details)
File details
Details for the file botoy-0.0.10.tar.gz.
File metadata
- Download URL: botoy-0.0.10.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
691841a84498412395ce3bc30264dd3cf736d52bc129b554dba9988c34561fb6
|
|
| MD5 |
9a580dd377faa06fc5797fa459ac8129
|
|
| BLAKE2b-256 |
3126eb1c5cae7b9d6934b8696c917c6dd552d4616847c98437a0f7d0459d16f4
|
File details
Details for the file botoy-0.0.10-py3-none-any.whl.
File metadata
- Download URL: botoy-0.0.10-py3-none-any.whl
- Upload date:
- Size: 40.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.0 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b0921424bcf47a289d49e7b52a6bdf276299b2721cf7e3272aa24f3e8343d1b1
|
|
| MD5 |
3305c64a1385074d532de9dd65f2ba47
|
|
| BLAKE2b-256 |
bdc060f9fcfc94d91ee9adea70aab2aea05927ca657ecdc9b6e59a17d4717869
|