Skip to main content

偷看群友撤回的消息

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-prevent-withdrawal

✨ 防撤回插件 ✨

Static Badge Static Badge

Static Badge GitHub repo size GitHub Tag PyPI - License PyPI - Version GitHub commit activity

📖 介绍

  • 本插件支持多个消息段撤回监听,但是仅支持群聊,目前只支持Lagrange.OneBot,因为根据群友的消息llonebot和NapCat似乎视频消息不返回网络URL,此项目有些奇怪的BUG,例如黄豆表情无法显示(Lagrange已修复)、超级表情会显示表情和文字等

  • 装了此插件后debug级别的日志下会疯狂输出Running PreProcessors...,这个作者也没办法,是NoneBot的预处理钩子干的,修不了,其实只要开INFO级别的日志就行了,而一般用户默认是INFO级别的日志

使用方法请参考这里

[!WARNING] 私聊模式不支持发送撤回的视频消息,因为Lagrange.OneBot的私聊消息有BUG

[!WARNING] 本插件不支持监听撤回的文件,而且由于某些BUG似乎无法发送提示文本

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-prevent-withdrawal
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-prevent-withdrawal
pdm
pdm add nonebot-prevent-withdrawal
poetry
poetry add nonebot-prevent-withdrawal
conda
conda install nonebot-prevent-withdrawal

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot-prevent-withdrawal"]

🎉 使用

指令表

指令 权限 需要@ 范围 说明
开启/关闭防撤回 主人 群聊 必须先开启才能用
切换私聊/群聊 主人 通用 发送到哪里
添加群/删除群 主人 群聊 指定发送的群聊
加白/删白 [@/输入QQ号] 主人 通用 排除某人的撤回消息
排除管理 主人 通用 排除管理和群主的消息
取消排除 主人 通用 取消排除管理和群主的消息

效果图

点击展开

图片1 图片2 图片3 图片4

❤️感谢以下项目提供支持

NoneBot

Lagrange

疑似小南梁的群友

GITHUB

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_prevent_withdrawal-0.2.0.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

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

nonebot_prevent_withdrawal-0.2.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_prevent_withdrawal-0.2.0.tar.gz.

File metadata

File hashes

Hashes for nonebot_prevent_withdrawal-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e56891008e50e3c4f11b5a7b8ae7fb6e940770bfd350bbefc554b80a8de95e83
MD5 97b7247c04c8c3d8118c860a7d8d1097
BLAKE2b-256 253304b777e93ae1ac727db3dbffe3a4e75ae90d5883f54d4924adc5ad9d4c33

See more details on using hashes here.

File details

Details for the file nonebot_prevent_withdrawal-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_prevent_withdrawal-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01cb3fd8c8a5c8ac155c37b232200027b848cf804f97f26d26271c9260e39644
MD5 b2cf306ab44d5746025d52bd97e0ede4
BLAKE2b-256 8f079db447d5100300bad2739c22608cbebe08427e89ce27dd26f1e829f5cae5

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