Skip to main content

Anti-recall plugin for QQbot in Nonebot2

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-antirecall

✨ NoneBot 防撤回插件 ✨

license pypi python

📖 介绍

经过多次修改稍微复杂点的防撤回插件

-> 更新后可能要删掉bot目录下\data\enablelist 文件夹内的配置文件,并重新设置

开启后群内撤回消息会被bot发送

群主可以开关本群的防撤回

不建议使用私聊功能,容易风控(建议收购企鹅🐧)

超级用户可以开启一个群,每次有撤回消息会在群内通知,这样不用多次私聊转发,群内消息减小企鹅风控

超级用户可以查看全局防撤回和列表。

💿 安装

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

打开 nonebot2 项目的 bot.py 文件, 在其中写入

nonebot.load_plugin('nonebot_plugin_antirecall')

🎉 使用

指令表

指令 说明
开启/添加防撤回, enable + 群号1 群号2 ... 开启群的防撤回
关闭/删除防撤回, disable + 群号1 群号2 ... 关闭群的防撤回
查看防撤回群聊 查看防撤回群聊
开启/关闭绕过管理层 管理员/群主不会被防撤回,仅限群内
防撤回菜单 打开本插件菜单
开启/关闭防撤回私聊gid uid 超级管理员私聊使用,gid群号的群撤回消息会私聊给uid的用户,如果群没开启防撤回就不生效
查看防撤回私聊 查看私聊列表,私聊使用,会返回json数据.
开启防撤回私聊 gid 设置防撤回触发后监听的群,一个参数群号(ps.仅限一个群[建议是一个私人小群专门用来干这事]重新设置会覆盖)
关闭防撤回私聊 无参数,删除这个监听群,不监听
查看防撤回监听 查看监听的群和发送的群,一个json
添加/删除防撤回监听 gid 添加防撤回被监听的群,一次一个[不建议太多,会风控]

Tips防撤回的英文指令 : enable/disable, enable/disable here, bypass/no bypass here, clear list, antirecall menu, enable/disable private msg, enable/disable/add/remove/view listener, list private msg

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_antirecall-0.1.4.tar.gz (7.6 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_antirecall-0.1.4-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_antirecall-0.1.4.tar.gz.

File metadata

  • Download URL: nonebot_plugin_antirecall-0.1.4.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Darwin/22.3.0

File hashes

Hashes for nonebot_plugin_antirecall-0.1.4.tar.gz
Algorithm Hash digest
SHA256 6bf1c4741cfca82b38ac1029db22dd0e299fbeb37f95d4be564df36b4b1dcf56
MD5 e74f1a49fed8b4203b49cd6f061c5a71
BLAKE2b-256 f0ea36fc5e34a315084b0c8bb8df35617e630d4a8cba606e028db3913989811c

See more details on using hashes here.

File details

Details for the file nonebot_plugin_antirecall-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_antirecall-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f85b8d122a60d89cbcc7b5a6c095cd28b2eca5bab6e2286f0f286462bdd9023c
MD5 d7a545e7ca364a8889ad835bda00973c
BLAKE2b-256 6ee57bcb0470e8d991d0db1139d4025140534038e3fc227df1332eaf684a445e

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