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,例如黄豆表情无法显示、发送火车等表情会显示表情和文字等

[!IMPORTANT] 私聊模式不支持发送撤回的视频消息,因为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"]

🎉 使用

指令表

指令 权限 需要@ 范围 说明
开启/关闭防撤回 主人 群聊 必须先开启才能用
切换私聊/群聊 主人 通用 发送到哪里
添加群/删除群 主人 群聊 指定发送的群聊

效果图

图片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.1.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for nonebot_prevent_withdrawal-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2d256f4fdfe54a1b51caa52f10d1f721d4611a3d4c606d6b9354be11b8981406
MD5 a1dc833e511c5c341c4d177b5b1fd671
BLAKE2b-256 db63ee37d51ea1929ab559a62ea333ad189e7fdfe190d5a1ecaae850341046b3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_prevent_withdrawal-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae5300736f37ff64b696a4e5e3ec4a22a64e955cd7a9ff21ca7e68f8239a5636
MD5 b4da394169f8af10f6f1fe3c24678f89
BLAKE2b-256 008c3b60aed72b7c26d511f4348422ac106a357568af7147f1b717774706a679

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page