作用
让 onebot v11 协议中 bot 的消息作为正常事件进行处理
使用
plugin-alconna记得添加ALCONNA_RESPONSE_SELF=True配置原因: https://github.com/nonebot/plugin-alconna/releases/tag/v0.53.0
注意事项
安装方式
依赖管理
pip install nonebot-plugin-mmmpoetry add nonebot-plugin-mmmpdm add nonebot-plugin-mmm
在
bot.py中添加nonebot.load_plugin("nonebot_plugin_mmm")
nb-cli
nb plugin install nonebot-plugin-mmm
配置项
非必要配置项
mmm_block: 是否blockmessage_sent后续matcher, 默认为Truemmm_priority: onmessage_sent的优先级, 默认为0mmm_private: 是否处理私聊消息, 默认为Truemmm_group: 是否处理群聊消息, 默认为Truemmm_self: 是否处理自己发给自己的消息, 默认为Falsemmm_only_text: 是否只处理文本消息, 默认为Falsemmm_text_check: 是否只处理符合指定开头的消息, 默认为Falsemmm_use_nb_start是否使用nonebot2的COMMAND_START, 默认为Falsemmm_text_start: 检查的消息开头, 默认为{"",}即任何消息都通过mmm_lstrip: 是否去除消息前缀, 默认为Falsemmm_lstrip_num: 去除消息前缀的数量, 默认为1
mmm_block = True
mmm_priority = 0
mmm_private = True
mmm_group = True
mmm_self = False
mmm_only_text = False # 只处理文本消息
mmm_text_check = False # 只处理符合指定开头的消息
mmm_use_nb_start = False # 使用 nonebot2 的 COMMAND_START
mmm_text_start = [".", "/"] # 检查的消息开头 默认为 ["",] 即任何消息都通过
mmm_lstrip = False # 去除消息前缀
mmm_lstrip_num = 1 # 去除消息前缀的数量
依赖项
python = "^3.9"
nonebot2 = "^2.3.0"
nonebot-adapter-onebot = "^2.1.0"
Metadata
Release files for nonebot-plugin-mmm 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_mmm-0.2.3.tar.gz | 4.4 kB | Without provenance | Details for nonebot_plugin_mmm-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_mmm-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_mmm-0.2.3-py3-none-any.whl |
Total release size: 9.3 kB
Release files / nonebot_plugin_mmm-0.2.3.tar.gz
| Download URL | nonebot_plugin_mmm-0.2.3.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cf8ff010f3d38c293c709744d44db426fd93fe97b4331b3afcc57bf2c82af2c2
|
|
BLAKE2b-256 checksum How to use checksums |
522a0ab0a45a242db6dbc6c91073ee5adcd895db44c7b0f7eb15b8f34b48b097
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.12.3 Linux/6.8.0-1017-azure
|
Release files / nonebot_plugin_mmm-0.2.3-py3-none-any.whl
| Download URL | nonebot_plugin_mmm-0.2.3-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed6ed009a431408464f5185fb6a7a627024255b18f18bb68d4221cc5f1e40f07
|
|
BLAKE2b-256 checksum How to use checksums |
0e6875eeff4f4f3c1ec5f9bb09d0e73de0c2a152bddf561cb0f167b709a8bc35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.12.3 Linux/6.8.0-1017-azure
|
Security for nonebot-plugin-mmm 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.