Skip to main content

Bot的消息也是消息!

Project description

nonebot

NoneBot Plugin MMM

License Python NoneBot

:eya46

作用

onebot v11 协议中 bot 的消息作为正常事件进行处理

小心死循环!

使用 plugin-alconna 记得添加 ALCONNA_RESPONSE_SELF=True 配置

原因: https://github.com/nonebot/plugin-alconna/releases/tag/v0.53.0

安装方式

依赖管理

  • pip install nonebot-plugin-mmm
  • poetry add nonebot-plugin-mmm
  • pdm add nonebot-plugin-mmm

bot.py 中添加 nonebot.load_plugin("nonebot_plugin_mmm")

nb-cli

  • nb plugin install nonebot-plugin-mmm

配置项

非必要配置项

  • mmm_block: 是否block message_sent 后续matcher
  • mmm_priority: on message_sent 的优先级
  • mmm_private: 是否处理私聊消息, 默认为 True
  • mmm_group: 是否处理群聊消息, 默认为 True
  • mmm_self: 是否处理自己发给自己的消息, 默认为 False
mmm_block=True
mmm_priority=0
mmm_private=True
mmm_group=True
mmm_self=False

依赖项

python = "^3.9"
nonebot2 = "^2.3.0"
nonebot-adapter-onebot = "^2.1.0"

Project details


Download files

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

Source Distribution

nonebot_plugin_mmm-0.1.7.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

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

nonebot_plugin_mmm-0.1.7-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_mmm-0.1.7.tar.gz.

File metadata

  • Download URL: nonebot_plugin_mmm-0.1.7.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for nonebot_plugin_mmm-0.1.7.tar.gz
Algorithm Hash digest
SHA256 e09823570200288248f0a8fa0c75c0555b64bb40d3fba34314ceba091f2d00c6
MD5 3a861be367a4f67a09bdd66fb6ffc4c5
BLAKE2b-256 d5ee2eb47d2dedd2ca6638e19ff60ac0aa5e049a160cf58b0ed914ee52a5085b

See more details on using hashes here.

File details

Details for the file nonebot_plugin_mmm-0.1.7-py3-none-any.whl.

File metadata

  • Download URL: nonebot_plugin_mmm-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.10.12 Linux/6.5.0-1025-azure

File hashes

Hashes for nonebot_plugin_mmm-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 78d499957024959f2c3b26e1fea61cd9879e536afc4d1892dc24b2958322c69e
MD5 ded99b5a2ede716663e874ad1c8b3450
BLAKE2b-256 4cfdc48cff18189b3c68304215140f89830b7cfa7c31896b6e3ad3c64eb4c4ba

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