├── .github └── workflows │ ├── black.yml │ ├── python-publish.yml │ └── stylua.yml ├── .gitignore ├── .readthedocs.yml ├── CHANGELOG.md ├── LICENSE ├── MANIFEST.in ├── Makefile ├── README.md ├── botoy.json ├── botoy ├── __init__.py ├── __main__.py ├── __version__.py └── _internal │ ├── __init__.py │ ├── _old_files │ ├── cli │ │ ├── __init__.py │ │ └── plugin.py │ ├── collection.py │ ├── deco │ │ └── __init__.py │ ├── parser │ │ ├── __init__.py │ │ ├── event.py │ │ ├── friend.py │ │ └── group.py │ ├── plugin │ │ ├── __init__.py │ │ ├── lua.py │ │ ├── lua │ │ │ ├── _init_packages.lua │ │ │ └── opq │ │ │ │ ├── inspect.lua │ │ │ │ ├── json.lua │ │ │ │ ├── log.lua │ │ │ │ ├── parser.lua │ │ │ │ ├── sdk.lua │ │ │ │ └── utils.lua │ │ └── manager.py │ └── session │ │ ├── __init__.py │ │ ├── base.py │ │ ├── globals.py │ │ ├── handler.py │ │ └── prompt.py │ ├── action.py │ ├── cli.py │ ├── client.py │ ├── config │ ├── __init__.py │ ├── config.py │ ├── constants.py │ └── util.py │ ├── context.py │ ├── contrib.py │ ├── keys.py │ ├── log.py │ ├── mahiro.py │ ├── models │ ├── __init__.py │ ├── friend_msg.py │ ├── group_msg.py │ ├── readme.md │ └── schemas │ │ ├── friend_msg.json │ │ ├── generate.py │ │ └── group_msg.json │ ├── pool.py │ ├── receiver.py │ ├── runner.py │ ├── schedule.py │ ├── sugar.py │ └── utils.py ├── docs ├── CNAME ├── action.md ├── cli.md ├── client.md ├── config.md ├── context.md ├── contrib.md ├── index.md ├── install.md ├── lua.md ├── mahiro.md ├── plugin.md ├── requirements.txt ├── schedule.md ├── session.md └── sugar.md ├── docs_src ├── conn │ ├── fastapi_.py │ ├── fastapi_socketio_.py │ ├── flask_.py │ └── flask_socketio_.py ├── decorators_example.py ├── decorators_outline.py ├── jconfig.py ├── parser.py ├── ratelimit.py ├── refine_example.py └── session_search.py ├── format.bat ├── format.sh ├── mkdocs.yml ├── publish.sh ├── pyproject.toml ├── requirements.txt ├── setup.py ├── stylua.toml └── tests ├── README.md ├── bot.py └── plugins ├── bot_choose_key.py └── bot_plugin_receiver.py /.github/workflows/black.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/.github/workflows/black.yml -------------------------------------------------------------------------------- /.github/workflows/python-publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/.github/workflows/python-publish.yml -------------------------------------------------------------------------------- /.github/workflows/stylua.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/.github/workflows/stylua.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/.gitignore -------------------------------------------------------------------------------- /.readthedocs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/.readthedocs.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | recursive-include ./botoy/plugin/lua *.lua 2 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/README.md -------------------------------------------------------------------------------- /botoy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy.json -------------------------------------------------------------------------------- /botoy/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/__init__.py -------------------------------------------------------------------------------- /botoy/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/__main__.py -------------------------------------------------------------------------------- /botoy/__version__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/__version__.py -------------------------------------------------------------------------------- /botoy/_internal/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /botoy/_internal/_old_files/cli/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/cli/__init__.py -------------------------------------------------------------------------------- /botoy/_internal/_old_files/cli/plugin.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/cli/plugin.py -------------------------------------------------------------------------------- /botoy/_internal/_old_files/collection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/collection.py -------------------------------------------------------------------------------- /botoy/_internal/_old_files/deco/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /botoy/_internal/_old_files/parser/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /botoy/_internal/_old_files/parser/event.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/parser/event.py -------------------------------------------------------------------------------- /botoy/_internal/_old_files/parser/friend.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/parser/friend.py -------------------------------------------------------------------------------- /botoy/_internal/_old_files/parser/group.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/parser/group.py -------------------------------------------------------------------------------- /botoy/_internal/_old_files/plugin/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/plugin/__init__.py -------------------------------------------------------------------------------- /botoy/_internal/_old_files/plugin/lua.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/plugin/lua.py -------------------------------------------------------------------------------- /botoy/_internal/_old_files/plugin/lua/_init_packages.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/plugin/lua/_init_packages.lua -------------------------------------------------------------------------------- /botoy/_internal/_old_files/plugin/lua/opq/inspect.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/plugin/lua/opq/inspect.lua -------------------------------------------------------------------------------- /botoy/_internal/_old_files/plugin/lua/opq/json.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/plugin/lua/opq/json.lua -------------------------------------------------------------------------------- /botoy/_internal/_old_files/plugin/lua/opq/log.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/plugin/lua/opq/log.lua -------------------------------------------------------------------------------- /botoy/_internal/_old_files/plugin/lua/opq/parser.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/plugin/lua/opq/parser.lua -------------------------------------------------------------------------------- /botoy/_internal/_old_files/plugin/lua/opq/sdk.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/plugin/lua/opq/sdk.lua -------------------------------------------------------------------------------- /botoy/_internal/_old_files/plugin/lua/opq/utils.lua: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/plugin/lua/opq/utils.lua -------------------------------------------------------------------------------- /botoy/_internal/_old_files/plugin/manager.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/plugin/manager.py -------------------------------------------------------------------------------- /botoy/_internal/_old_files/session/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/session/__init__.py -------------------------------------------------------------------------------- /botoy/_internal/_old_files/session/base.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/session/base.py -------------------------------------------------------------------------------- /botoy/_internal/_old_files/session/globals.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/session/globals.py -------------------------------------------------------------------------------- /botoy/_internal/_old_files/session/handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/session/handler.py -------------------------------------------------------------------------------- /botoy/_internal/_old_files/session/prompt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/_old_files/session/prompt.py -------------------------------------------------------------------------------- /botoy/_internal/action.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/action.py -------------------------------------------------------------------------------- /botoy/_internal/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/cli.py -------------------------------------------------------------------------------- /botoy/_internal/client.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/client.py -------------------------------------------------------------------------------- /botoy/_internal/config/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/config/__init__.py -------------------------------------------------------------------------------- /botoy/_internal/config/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/config/config.py -------------------------------------------------------------------------------- /botoy/_internal/config/constants.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/config/constants.py -------------------------------------------------------------------------------- /botoy/_internal/config/util.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/config/util.py -------------------------------------------------------------------------------- /botoy/_internal/context.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/context.py -------------------------------------------------------------------------------- /botoy/_internal/contrib.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/contrib.py -------------------------------------------------------------------------------- /botoy/_internal/keys.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/keys.py -------------------------------------------------------------------------------- /botoy/_internal/log.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/log.py -------------------------------------------------------------------------------- /botoy/_internal/mahiro.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/mahiro.py -------------------------------------------------------------------------------- /botoy/_internal/models/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/models/__init__.py -------------------------------------------------------------------------------- /botoy/_internal/models/friend_msg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/models/friend_msg.py -------------------------------------------------------------------------------- /botoy/_internal/models/group_msg.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/models/group_msg.py -------------------------------------------------------------------------------- /botoy/_internal/models/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/models/readme.md -------------------------------------------------------------------------------- /botoy/_internal/models/schemas/friend_msg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/models/schemas/friend_msg.json -------------------------------------------------------------------------------- /botoy/_internal/models/schemas/generate.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/models/schemas/generate.py -------------------------------------------------------------------------------- /botoy/_internal/models/schemas/group_msg.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/models/schemas/group_msg.json -------------------------------------------------------------------------------- /botoy/_internal/pool.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/pool.py -------------------------------------------------------------------------------- /botoy/_internal/receiver.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/receiver.py -------------------------------------------------------------------------------- /botoy/_internal/runner.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/runner.py -------------------------------------------------------------------------------- /botoy/_internal/schedule.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/schedule.py -------------------------------------------------------------------------------- /botoy/_internal/sugar.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/sugar.py -------------------------------------------------------------------------------- /botoy/_internal/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/botoy/_internal/utils.py -------------------------------------------------------------------------------- /docs/CNAME: -------------------------------------------------------------------------------- 1 | botoy.readthedocs.io 2 | -------------------------------------------------------------------------------- /docs/action.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs/action.md -------------------------------------------------------------------------------- /docs/cli.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs/cli.md -------------------------------------------------------------------------------- /docs/client.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs/client.md -------------------------------------------------------------------------------- /docs/config.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs/config.md -------------------------------------------------------------------------------- /docs/context.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs/context.md -------------------------------------------------------------------------------- /docs/contrib.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs/contrib.md -------------------------------------------------------------------------------- /docs/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs/index.md -------------------------------------------------------------------------------- /docs/install.md: -------------------------------------------------------------------------------- 1 | # 安装 2 | 3 | ```shell 4 | pip install botoy -i https://pypi.org/simple --upgrade 5 | ``` 6 | -------------------------------------------------------------------------------- /docs/lua.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs/lua.md -------------------------------------------------------------------------------- /docs/mahiro.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs/mahiro.md -------------------------------------------------------------------------------- /docs/plugin.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs/plugin.md -------------------------------------------------------------------------------- /docs/requirements.txt: -------------------------------------------------------------------------------- 1 | mkdocs-material 2 | markdown-include 3 | -------------------------------------------------------------------------------- /docs/schedule.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs/schedule.md -------------------------------------------------------------------------------- /docs/session.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs/session.md -------------------------------------------------------------------------------- /docs/sugar.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs/sugar.md -------------------------------------------------------------------------------- /docs_src/conn/fastapi_.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs_src/conn/fastapi_.py -------------------------------------------------------------------------------- /docs_src/conn/fastapi_socketio_.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs_src/conn/fastapi_socketio_.py -------------------------------------------------------------------------------- /docs_src/conn/flask_.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs_src/conn/flask_.py -------------------------------------------------------------------------------- /docs_src/conn/flask_socketio_.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs_src/conn/flask_socketio_.py -------------------------------------------------------------------------------- /docs_src/decorators_example.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs_src/decorators_example.py -------------------------------------------------------------------------------- /docs_src/decorators_outline.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs_src/decorators_outline.py -------------------------------------------------------------------------------- /docs_src/jconfig.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs_src/jconfig.py -------------------------------------------------------------------------------- /docs_src/parser.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs_src/parser.py -------------------------------------------------------------------------------- /docs_src/ratelimit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs_src/ratelimit.py -------------------------------------------------------------------------------- /docs_src/refine_example.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docs_src/session_search.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/docs_src/session_search.py -------------------------------------------------------------------------------- /format.bat: -------------------------------------------------------------------------------- 1 | black . && isort . 2 | -------------------------------------------------------------------------------- /format.sh: -------------------------------------------------------------------------------- 1 | black . && isort . 2 | -------------------------------------------------------------------------------- /mkdocs.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/mkdocs.yml -------------------------------------------------------------------------------- /publish.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/publish.sh -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/pyproject.toml -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/requirements.txt -------------------------------------------------------------------------------- /setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/setup.py -------------------------------------------------------------------------------- /stylua.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/stylua.toml -------------------------------------------------------------------------------- /tests/README.md: -------------------------------------------------------------------------------- 1 | `python bot.py` 2 | -------------------------------------------------------------------------------- /tests/bot.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/tests/bot.py -------------------------------------------------------------------------------- /tests/plugins/bot_choose_key.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/tests/plugins/bot_choose_key.py -------------------------------------------------------------------------------- /tests/plugins/bot_plugin_receiver.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/opq-osc/botoy/HEAD/tests/plugins/bot_plugin_receiver.py --------------------------------------------------------------------------------