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.1

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.1.tar.gz (49.5 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.1-py3-none-any.whl (78.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: botoy-7.1.tar.gz
  • Upload date:
  • Size: 49.5 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.2 CPython/3.7.12

File hashes

Hashes for botoy-7.1.tar.gz
Algorithm Hash digest
SHA256 dcda71f93b160fd018b99e2d43de04009e2a66ef787071e8dd1e2953d9f264e2
MD5 467060d7b7c63bd28647484a9e6d0058
BLAKE2b-256 bd63e8b20b8c0dbba84855c9d7860bbfcc12a4ae25f7084e12e9ea0c8cb55748

See more details on using hashes here.

File details

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

File metadata

  • Download URL: botoy-7.1-py3-none-any.whl
  • Upload date:
  • Size: 78.7 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.2 CPython/3.7.12

File hashes

Hashes for botoy-7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e9bf70f593295d1f569b023e5ccc69f8768d116c99447e0de6d2ddf7b6c2a544
MD5 ec3cb90eed503fafc4db9b0d8bb7d7ae
BLAKE2b-256 f66a3131b7a7b40f65178e33be1736dcd90c4420b984f53a9830fdcd95261216

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