├── .flake8 ├── .github └── workflows │ └── python-publish.yml ├── .gitignore ├── .orange-ci.yml ├── .pre-commit-config.yaml ├── .pylintrc ├── LICENSE ├── README.md ├── README.rst ├── botpy ├── __init__.py ├── api.py ├── audio.py ├── channel.py ├── client.py ├── connection.py ├── errors.py ├── ext │ ├── __init__.py │ ├── channel_jump │ │ └── __init__.py │ ├── cog_apscheduler │ │ └── __init__.py │ ├── cog_yaml │ │ └── __init__.py │ ├── command_util.py │ └── convert_color │ │ └── __init__.py ├── flags.py ├── forum.py ├── gateway.py ├── guild.py ├── http.py ├── interaction.py ├── logging.py ├── manage.py ├── message.py ├── reaction.py ├── robot.py ├── types │ ├── __init__.py │ ├── announce.py │ ├── audio.py │ ├── channel.py │ ├── emoji.py │ ├── forum.py │ ├── gateway.py │ ├── guild.py │ ├── inline.py │ ├── interaction.py │ ├── message.py │ ├── permission.py │ ├── pins_message.py │ ├── reaction.py │ ├── rich_text.py │ ├── robot.py │ ├── schedule.py │ ├── session.py │ └── user.py └── user.py ├── docs ├── 20211216-QQ频道机器人分享-qqbot-python(open).pdf └── 事件监听.md ├── examples ├── README.md ├── config.example.yaml ├── demo_announce.py ├── demo_api_permission.py ├── demo_at_reply.py ├── demo_at_reply_ark.py ├── demo_at_reply_command.py ├── demo_at_reply_embed.py ├── demo_at_reply_file_data.py ├── demo_at_reply_keyboard.py ├── demo_at_reply_markdown.py ├── demo_at_reply_reference.py ├── demo_audio_or_live_channel_member.py ├── demo_c2c_manage_event.py ├── demo_c2c_reply_file.py ├── demo_c2c_reply_text.py ├── demo_dms_reply.py ├── demo_get_reaction_users.py ├── demo_group_manage_event.py ├── demo_group_reply_file.py ├── demo_group_reply_text.py ├── demo_guild_member_event.py ├── demo_open_forum_event.py ├── demo_pins_message.py ├── demo_recall.py ├── demo_schedule.py └── resource │ └── test.png ├── requirements.txt ├── setup.cfg ├── setup.py └── tests ├── .test(demo).yaml ├── __init__.py ├── test_api.py ├── test_flags.py └── test_token.py /.flake8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/.flake8 -------------------------------------------------------------------------------- /.github/workflows/python-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/.github/workflows/python-publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/.gitignore -------------------------------------------------------------------------------- /.orange-ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/.orange-ci.yml -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.pylintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/.pylintrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/README.md -------------------------------------------------------------------------------- /README.rst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/README.rst -------------------------------------------------------------------------------- /botpy/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/__init__.py -------------------------------------------------------------------------------- /botpy/api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/api.py -------------------------------------------------------------------------------- /botpy/audio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/audio.py -------------------------------------------------------------------------------- /botpy/channel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/channel.py -------------------------------------------------------------------------------- /botpy/client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/client.py -------------------------------------------------------------------------------- /botpy/connection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/connection.py -------------------------------------------------------------------------------- /botpy/errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/errors.py -------------------------------------------------------------------------------- /botpy/ext/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | 这里放一些可用的工具 4 | 方便开发者调用 5 | """ 6 | -------------------------------------------------------------------------------- /botpy/ext/channel_jump/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/ext/channel_jump/__init__.py -------------------------------------------------------------------------------- /botpy/ext/cog_apscheduler/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/ext/cog_apscheduler/__init__.py -------------------------------------------------------------------------------- /botpy/ext/cog_yaml/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/ext/cog_yaml/__init__.py -------------------------------------------------------------------------------- /botpy/ext/command_util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/ext/command_util.py -------------------------------------------------------------------------------- /botpy/ext/convert_color/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/ext/convert_color/__init__.py -------------------------------------------------------------------------------- /botpy/flags.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/flags.py -------------------------------------------------------------------------------- /botpy/forum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/forum.py -------------------------------------------------------------------------------- /botpy/gateway.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/gateway.py -------------------------------------------------------------------------------- /botpy/guild.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/guild.py -------------------------------------------------------------------------------- /botpy/http.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/http.py -------------------------------------------------------------------------------- /botpy/interaction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/interaction.py -------------------------------------------------------------------------------- /botpy/logging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/logging.py -------------------------------------------------------------------------------- /botpy/manage.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/manage.py -------------------------------------------------------------------------------- /botpy/message.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/message.py -------------------------------------------------------------------------------- /botpy/reaction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/reaction.py -------------------------------------------------------------------------------- /botpy/robot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/robot.py -------------------------------------------------------------------------------- /botpy/types/__init__.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | 这里放一些payload或者数据传输类的实体 4 | 主要通过TypedDict来限定字段和类型 5 | """ 6 | -------------------------------------------------------------------------------- /botpy/types/announce.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/types/announce.py -------------------------------------------------------------------------------- /botpy/types/audio.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/types/audio.py -------------------------------------------------------------------------------- /botpy/types/channel.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/types/channel.py -------------------------------------------------------------------------------- /botpy/types/emoji.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/types/emoji.py -------------------------------------------------------------------------------- /botpy/types/forum.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/types/forum.py -------------------------------------------------------------------------------- /botpy/types/gateway.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/types/gateway.py -------------------------------------------------------------------------------- /botpy/types/guild.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/types/guild.py -------------------------------------------------------------------------------- /botpy/types/inline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/types/inline.py -------------------------------------------------------------------------------- /botpy/types/interaction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/types/interaction.py -------------------------------------------------------------------------------- /botpy/types/message.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/types/message.py -------------------------------------------------------------------------------- /botpy/types/permission.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/types/permission.py -------------------------------------------------------------------------------- /botpy/types/pins_message.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/types/pins_message.py -------------------------------------------------------------------------------- /botpy/types/reaction.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/types/reaction.py -------------------------------------------------------------------------------- /botpy/types/rich_text.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/types/rich_text.py -------------------------------------------------------------------------------- /botpy/types/robot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/types/robot.py -------------------------------------------------------------------------------- /botpy/types/schedule.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/types/schedule.py -------------------------------------------------------------------------------- /botpy/types/session.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/types/session.py -------------------------------------------------------------------------------- /botpy/types/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/types/user.py -------------------------------------------------------------------------------- /botpy/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/botpy/user.py -------------------------------------------------------------------------------- /docs/20211216-QQ频道机器人分享-qqbot-python(open).pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/docs/20211216-QQ频道机器人分享-qqbot-python(open).pdf -------------------------------------------------------------------------------- /docs/事件监听.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/docs/事件监听.md -------------------------------------------------------------------------------- /examples/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/README.md -------------------------------------------------------------------------------- /examples/config.example.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/config.example.yaml -------------------------------------------------------------------------------- /examples/demo_announce.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_announce.py -------------------------------------------------------------------------------- /examples/demo_api_permission.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_api_permission.py -------------------------------------------------------------------------------- /examples/demo_at_reply.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_at_reply.py -------------------------------------------------------------------------------- /examples/demo_at_reply_ark.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_at_reply_ark.py -------------------------------------------------------------------------------- /examples/demo_at_reply_command.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_at_reply_command.py -------------------------------------------------------------------------------- /examples/demo_at_reply_embed.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_at_reply_embed.py -------------------------------------------------------------------------------- /examples/demo_at_reply_file_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_at_reply_file_data.py -------------------------------------------------------------------------------- /examples/demo_at_reply_keyboard.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_at_reply_keyboard.py -------------------------------------------------------------------------------- /examples/demo_at_reply_markdown.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_at_reply_markdown.py -------------------------------------------------------------------------------- /examples/demo_at_reply_reference.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_at_reply_reference.py -------------------------------------------------------------------------------- /examples/demo_audio_or_live_channel_member.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_audio_or_live_channel_member.py -------------------------------------------------------------------------------- /examples/demo_c2c_manage_event.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_c2c_manage_event.py -------------------------------------------------------------------------------- /examples/demo_c2c_reply_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_c2c_reply_file.py -------------------------------------------------------------------------------- /examples/demo_c2c_reply_text.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_c2c_reply_text.py -------------------------------------------------------------------------------- /examples/demo_dms_reply.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_dms_reply.py -------------------------------------------------------------------------------- /examples/demo_get_reaction_users.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_get_reaction_users.py -------------------------------------------------------------------------------- /examples/demo_group_manage_event.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_group_manage_event.py -------------------------------------------------------------------------------- /examples/demo_group_reply_file.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_group_reply_file.py -------------------------------------------------------------------------------- /examples/demo_group_reply_text.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_group_reply_text.py -------------------------------------------------------------------------------- /examples/demo_guild_member_event.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_guild_member_event.py -------------------------------------------------------------------------------- /examples/demo_open_forum_event.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_open_forum_event.py -------------------------------------------------------------------------------- /examples/demo_pins_message.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_pins_message.py -------------------------------------------------------------------------------- /examples/demo_recall.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_recall.py -------------------------------------------------------------------------------- /examples/demo_schedule.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/demo_schedule.py -------------------------------------------------------------------------------- /examples/resource/test.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/examples/resource/test.png -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | pre-commit 2 | PyYAML 3 | aiohttp>=3.7.4,<4 4 | APScheduler -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/setup.cfg -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/setup.py -------------------------------------------------------------------------------- /tests/.test(demo).yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/tests/.test(demo).yaml -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/tests/__init__.py -------------------------------------------------------------------------------- /tests/test_api.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/tests/test_api.py -------------------------------------------------------------------------------- /tests/test_flags.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/tests/test_flags.py -------------------------------------------------------------------------------- /tests/test_token.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tencent-connect/botpy/HEAD/tests/test_token.py --------------------------------------------------------------------------------