Skip to main content

OPQBot/IOTQQ/IOTBot的Python开发助手

Project description

botoy

pypi python-version

对机器人框架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()

文档

简单例子

感谢

yuban10703 milkice

LICENSE

MIT

CHANGE LOG

See releases

0.0.2

  • 修复模块导入错误

V0.0.1

初次发布

Project details


Release history Release notifications | RSS feed

This version

7.6

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

botoy-7.6.tar.gz (50.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

botoy-7.6-py3-none-any.whl (80.3 kB view details)

Uploaded Python 3

File details

Details for the file botoy-7.6.tar.gz.

File metadata

  • Download URL: botoy-7.6.tar.gz
  • Upload date:
  • Size: 50.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for botoy-7.6.tar.gz
Algorithm Hash digest
SHA256 672c0c5b1644ef20af3bbd81293b0bb1dddb1ea4011b59a87e7783a4fa111a4f
MD5 856cb0676a6780adff735c7e9c593f2d
BLAKE2b-256 be7db10fd46138519d147d02d5da69fef18ca46ddb56d9b5cec005e8401f5d3c

See more details on using hashes here.

File details

Details for the file botoy-7.6-py3-none-any.whl.

File metadata

  • Download URL: botoy-7.6-py3-none-any.whl
  • Upload date:
  • Size: 80.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.12

File hashes

Hashes for botoy-7.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f65d181e1c6e99f35ee8b86f2a234e4fed72f4a3106119aea6eb9bec12869bd6
MD5 68e95d32b23e9d241ef9674f1a020113
BLAKE2b-256 92e39f880bfd7c58ac7647bd61d87efee5c586107b881f8e578cc091607b7f31

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page