nonebot-plugin-antirecall


Namenonebot-plugin-antirecall JSON
Version 0.1.4 PyPI version JSON
download
home_pagehttps://github.com/Jerry080801/nonebot-plugin-antirecall
SummaryAnti-recall plugin for QQbot in Nonebot2
upload_time2022-12-26 10:52:52
maintainer
docs_urlNone
authorJerry
requires_python>=3.7.3,<4.0.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
  <a href="https://v2.nonebot.dev/store"><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
  <br>
  <p><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
</div>

<div align="center">

# nonebot-plugin-antirecall

_✨ NoneBot 防撤回插件 ✨_


<a href="./LICENSE">
    <img src="https://img.shields.io/github/license/A-kirami/nonebot-plugin-namelist.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-namelist">
    <img src="https://img.shields.io/pypi/v/nonebot-plugin-namelist.svg" alt="pypi">
</a>
<img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="python">

</div>


## 📖 介绍

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

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

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

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

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

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

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

## 💿 安装

<details>
<summary>使用 nb-cli 安装</summary>
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装

    nb plugin install nonebot-plugin-antirecall

</details>

<details>
<summary>使用包管理器安装</summary>
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令

<details>
<summary>pip</summary>

    pip install nonebot-plugin-antirecall
</details>
<details>
<summary>pdm</summary>

    pdm add nonebot-plugin-antirecall
</details>
<details>
<summary>poetry</summary>

    poetry add nonebot-plugin-antirecall
</details>
<details>
<summary>conda</summary>

    conda install nonebot-plugin-antirecall
</details>

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

    nonebot.load_plugin('nonebot_plugin_antirecall')

</details>


## 🎉 使用
### 指令表
| 指令 | 说明 |
|:-----:|:----:|
| 开启/添加防撤回, 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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Jerry080801/nonebot-plugin-antirecall",
    "name": "nonebot-plugin-antirecall",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7.3,<4.0.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Jerry",
    "author_email": "jerry080801@icloud.com",
    "download_url": "https://files.pythonhosted.org/packages/f0/ea/36fc5e34a315084b0c8bb8df35617e630d4a8cba606e028db3913989811c/nonebot_plugin_antirecall-0.1.4.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n  <a href=\"https://v2.nonebot.dev/store\"><img src=\"https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png\" width=\"180\" height=\"180\" alt=\"NoneBotPluginLogo\"></a>\n  <br>\n  <p><img src=\"https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg\" width=\"240\" alt=\"NoneBotPluginText\"></p>\n</div>\n\n<div align=\"center\">\n\n# nonebot-plugin-antirecall\n\n_\u2728 NoneBot \u9632\u64a4\u56de\u63d2\u4ef6 \u2728_\n\n\n<a href=\"./LICENSE\">\n    <img src=\"https://img.shields.io/github/license/A-kirami/nonebot-plugin-namelist.svg\" alt=\"license\">\n</a>\n<a href=\"https://pypi.python.org/pypi/nonebot-plugin-namelist\">\n    <img src=\"https://img.shields.io/pypi/v/nonebot-plugin-namelist.svg\" alt=\"pypi\">\n</a>\n<img src=\"https://img.shields.io/badge/python-3.8+-blue.svg\" alt=\"python\">\n\n</div>\n\n\n## \ud83d\udcd6 \u4ecb\u7ecd\n\n\u7ecf\u8fc7\u591a\u6b21\u4fee\u6539\u7a0d\u5fae\u590d\u6742\u70b9\u7684\u9632\u64a4\u56de\u63d2\u4ef6\n\n-> \u66f4\u65b0\u540e\u53ef\u80fd\u8981\u5220\u6389bot\u76ee\u5f55\u4e0b\\data\\enablelist \u6587\u4ef6\u5939\u5185\u7684\u914d\u7f6e\u6587\u4ef6,\u5e76\u91cd\u65b0\u8bbe\u7f6e\n\n\u5f00\u542f\u540e\u7fa4\u5185\u64a4\u56de\u6d88\u606f\u4f1a\u88abbot\u53d1\u9001\n\n\u7fa4\u4e3b\u53ef\u4ee5\u5f00\u5173\u672c\u7fa4\u7684\u9632\u64a4\u56de\n\n\u4e0d\u5efa\u8bae\u4f7f\u7528\u79c1\u804a\u529f\u80fd,\u5bb9\u6613\u98ce\u63a7(\u5efa\u8bae\u6536\u8d2d\u4f01\u9e45\ud83d\udc27)\n\n\u8d85\u7ea7\u7528\u6237\u53ef\u4ee5\u5f00\u542f\u4e00\u4e2a\u7fa4,\u6bcf\u6b21\u6709\u64a4\u56de\u6d88\u606f\u4f1a\u5728\u7fa4\u5185\u901a\u77e5,\u8fd9\u6837\u4e0d\u7528\u591a\u6b21\u79c1\u804a\u8f6c\u53d1,\u7fa4\u5185\u6d88\u606f\u51cf\u5c0f\u4f01\u9e45\u98ce\u63a7\n\n\u8d85\u7ea7\u7528\u6237\u53ef\u4ee5\u67e5\u770b\u5168\u5c40\u9632\u64a4\u56de\u548c\u5217\u8868\u3002\n\n## \ud83d\udcbf \u5b89\u88c5\n\n<details>\n<summary>\u4f7f\u7528 nb-cli \u5b89\u88c5</summary>\n\u5728 nonebot2 \u9879\u76ee\u7684\u6839\u76ee\u5f55\u4e0b\u6253\u5f00\u547d\u4ee4\u884c, \u8f93\u5165\u4ee5\u4e0b\u6307\u4ee4\u5373\u53ef\u5b89\u88c5\n\n    nb plugin install nonebot-plugin-antirecall\n\n</details>\n\n<details>\n<summary>\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5</summary>\n\u5728 nonebot2 \u9879\u76ee\u7684\u63d2\u4ef6\u76ee\u5f55\u4e0b, \u6253\u5f00\u547d\u4ee4\u884c, \u6839\u636e\u4f60\u4f7f\u7528\u7684\u5305\u7ba1\u7406\u5668, \u8f93\u5165\u76f8\u5e94\u7684\u5b89\u88c5\u547d\u4ee4\n\n<details>\n<summary>pip</summary>\n\n    pip install nonebot-plugin-antirecall\n</details>\n<details>\n<summary>pdm</summary>\n\n    pdm add nonebot-plugin-antirecall\n</details>\n<details>\n<summary>poetry</summary>\n\n    poetry add nonebot-plugin-antirecall\n</details>\n<details>\n<summary>conda</summary>\n\n    conda install nonebot-plugin-antirecall\n</details>\n\n\u6253\u5f00 nonebot2 \u9879\u76ee\u7684 `bot.py` \u6587\u4ef6, \u5728\u5176\u4e2d\u5199\u5165\n\n    nonebot.load_plugin('nonebot_plugin_antirecall')\n\n</details>\n\n\n## \ud83c\udf89 \u4f7f\u7528\n### \u6307\u4ee4\u8868\n| \u6307\u4ee4 | \u8bf4\u660e |\n|:-----:|:----:|\n| \u5f00\u542f/\u6dfb\u52a0\u9632\u64a4\u56de, enable + \u7fa4\u53f71 \u7fa4\u53f72 ...|\u5f00\u542f\u7fa4\u7684\u9632\u64a4\u56de |\n| \u5173\u95ed/\u5220\u9664\u9632\u64a4\u56de, disable + \u7fa4\u53f71 \u7fa4\u53f72 ...|\u5173\u95ed\u7fa4\u7684\u9632\u64a4\u56de |\n| \u67e5\u770b\u9632\u64a4\u56de\u7fa4\u804a |\u67e5\u770b\u9632\u64a4\u56de\u7fa4\u804a |\n| \u5f00\u542f/\u5173\u95ed\u7ed5\u8fc7\u7ba1\u7406\u5c42 |\u7ba1\u7406\u5458/\u7fa4\u4e3b\u4e0d\u4f1a\u88ab\u9632\u64a4\u56de,\u4ec5\u9650\u7fa4\u5185 |\n| \u9632\u64a4\u56de\u83dc\u5355 |\u6253\u5f00\u672c\u63d2\u4ef6\u83dc\u5355 |\n| \u5f00\u542f/\u5173\u95ed\u9632\u64a4\u56de\u79c1\u804agid uid |\u8d85\u7ea7\u7ba1\u7406\u5458\u79c1\u804a\u4f7f\u7528,gid\u7fa4\u53f7\u7684\u7fa4\u64a4\u56de\u6d88\u606f\u4f1a\u79c1\u804a\u7ed9uid\u7684\u7528\u6237,\u5982\u679c\u7fa4\u6ca1\u5f00\u542f\u9632\u64a4\u56de\u5c31\u4e0d\u751f\u6548 |\n| \u67e5\u770b\u9632\u64a4\u56de\u79c1\u804a |\u67e5\u770b\u79c1\u804a\u5217\u8868,\u79c1\u804a\u4f7f\u7528,\u4f1a\u8fd4\u56dejson\u6570\u636e.|\n| \u5f00\u542f\u9632\u64a4\u56de\u79c1\u804a gid |\u8bbe\u7f6e\u9632\u64a4\u56de\u89e6\u53d1\u540e\u76d1\u542c\u7684\u7fa4,\u4e00\u4e2a\u53c2\u6570\u7fa4\u53f7(ps.\u4ec5\u9650\u4e00\u4e2a\u7fa4[\u5efa\u8bae\u662f\u4e00\u4e2a\u79c1\u4eba\u5c0f\u7fa4\u4e13\u95e8\u7528\u6765\u5e72\u8fd9\u4e8b]\u91cd\u65b0\u8bbe\u7f6e\u4f1a\u8986\u76d6)|\n| \u5173\u95ed\u9632\u64a4\u56de\u79c1\u804a |\u65e0\u53c2\u6570,\u5220\u9664\u8fd9\u4e2a\u76d1\u542c\u7fa4,\u4e0d\u76d1\u542c |\n| \u67e5\u770b\u9632\u64a4\u56de\u76d1\u542c |\u67e5\u770b\u76d1\u542c\u7684\u7fa4\u548c\u53d1\u9001\u7684\u7fa4,\u4e00\u4e2ajson |\n| \u6dfb\u52a0/\u5220\u9664\u9632\u64a4\u56de\u76d1\u542c gid|\u6dfb\u52a0\u9632\u64a4\u56de\u88ab\u76d1\u542c\u7684\u7fa4,\u4e00\u6b21\u4e00\u4e2a[\u4e0d\u5efa\u8bae\u592a\u591a,\u4f1a\u98ce\u63a7]|\n\nTips\u9632\u64a4\u56de\u7684\u82f1\u6587\u6307\u4ee4 : 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\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Anti-recall plugin for QQbot in Nonebot2",
    "version": "0.1.4",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "d7a545e7ca364a8889ad835bda00973c",
                "sha256": "f85b8d122a60d89cbcc7b5a6c095cd28b2eca5bab6e2286f0f286462bdd9023c"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_antirecall-0.1.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d7a545e7ca364a8889ad835bda00973c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7.3,<4.0.0",
            "size": 8723,
            "upload_time": "2022-12-26T10:52:50",
            "upload_time_iso_8601": "2022-12-26T10:52:50.612059Z",
            "url": "https://files.pythonhosted.org/packages/6e/e5/7bcb0470e8d991d0db1139d4025140534038e3fc227df1332eaf684a445e/nonebot_plugin_antirecall-0.1.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "e74f1a49fed8b4203b49cd6f061c5a71",
                "sha256": "6bf1c4741cfca82b38ac1029db22dd0e299fbeb37f95d4be564df36b4b1dcf56"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_antirecall-0.1.4.tar.gz",
            "has_sig": false,
            "md5_digest": "e74f1a49fed8b4203b49cd6f061c5a71",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7.3,<4.0.0",
            "size": 7583,
            "upload_time": "2022-12-26T10:52:52",
            "upload_time_iso_8601": "2022-12-26T10:52:52.502011Z",
            "url": "https://files.pythonhosted.org/packages/f0/ea/36fc5e34a315084b0c8bb8df35617e630d4a8cba606e028db3913989811c/nonebot_plugin_antirecall-0.1.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-12-26 10:52:52",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "Jerry080801",
    "github_project": "nonebot-plugin-antirecall",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "nonebot-plugin-antirecall"
}
        
Elapsed time: 0.02535s