nonebot-plugin-blacklist


Namenonebot-plugin-blacklist JSON
Version 1.4.3 PyPI version JSON
download
home_pagehttps://github.com/tkgs0/nonebot-plugin-blacklist
SummaryBlacklist in NoneBot2
upload_time2024-08-24 07:35:14
maintainerNone
docs_urlNone
author月ヶ瀬
requires_python<4.0,>=3.9
licenseMIT
keywords nonebot blacklist
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://raw.githubusercontent.com/tkgs0/nbpt/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
  <br>
  <p><img src="https://raw.githubusercontent.com/tkgs0/nbpt/resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
</div>

<div align="center">

# nonebot-plugin-blacklist

_✨ NoneBot 黑名单插件 ✨_


<a href="./LICENSE">
    <img src="https://img.shields.io/github/license/tkgs0/nonebot-plugin-blacklist.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-blacklist">
    <img src="https://img.shields.io/pypi/v/nonebot-plugin-blacklist.svg" alt="pypi">
</a>
<a href="https://www.python.org">
    <img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
</a>
<a href="https://nonebot.dev">
    <img src="https://img.shields.io/badge/nonebot-2.3.1+-red.svg" alt="nonebot">
</a>
<a href="https://onebot.adapters.nonebot.dev">
    <img src="https://img.shields.io/badge/OneBot-11-black?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAMAAADxPgR5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAxQTFRF////29vbr6+vAAAAk1hCcwAAAAR0Uk5T////AEAqqfQAAAKcSURBVHja7NrbctswDATQXfD//zlpO7FlmwAWIOnOtNaTM5JwDMa8E+PNFz7g3waJ24fviyDPgfhz8fHP39cBcBL9KoJbQUxjA2iYqHL3FAnvzhL4GtVNUcoSZe6eSHizBcK5LL7dBr2AUZlev1ARRHCljzRALIEog6H3U6bCIyqIZdAT0eBuJYaGiJaHSjmkYIZd+qSGWAQnIaz2OArVnX6vrItQvbhZJtVGB5qX9wKqCMkb9W7aexfCO/rwQRBzsDIsYx4AOz0nhAtWu7bqkEQBO0Pr+Ftjt5fFCUEbm0Sbgdu8WSgJ5NgH2iu46R/o1UcBXJsFusWF/QUaz3RwJMEgngfaGGdSxJkE/Yg4lOBryBiMwvAhZrVMUUvwqU7F05b5WLaUIN4M4hRocQQRnEedgsn7TZB3UCpRrIJwQfqvGwsg18EnI2uSVNC8t+0QmMXogvbPg/xk+Mnw/6kW/rraUlvqgmFreAA09xW5t0AFlHrQZ3CsgvZm0FbHNKyBmheBKIF2cCA8A600aHPmFtRB1XvMsJAiza7LpPog0UJwccKdzw8rdf8MyN2ePYF896LC5hTzdZqxb6VNXInaupARLDNBWgI8spq4T0Qb5H4vWfPmHo8OyB1ito+AysNNz0oglj1U955sjUN9d41LnrX2D/u7eRwxyOaOpfyevCWbTgDEoilsOnu7zsKhjRCsnD/QzhdkYLBLXjiK4f3UWmcx2M7PO21CKVTH84638NTplt6JIQH0ZwCNuiWAfvuLhdrcOYPVO9eW3A67l7hZtgaY9GZo9AFc6cryjoeFBIWeU+npnk/nLE0OxCHL1eQsc1IciehjpJv5mqCsjeopaH6r15/MrxNnVhu7tmcslay2gO2Z1QfcfX0JMACG41/u0RrI9QAAAABJRU5ErkJggg==" alt="onebot">
</a>

</div>

  
## 📖 介绍
  
基于 [A-kirami](https://github.com/A-kirami) 大佬的 [黑白名单](https://github.com/A-kirami/nonebot-plugin-namelist) 插件 魔改(?)的仅黑名单插件  
  
超级用户不受黑名单影响  
  
## 💿 安装

**nb-cli安装, 包管理器安装  二选一**

<details>
<summary>使用 nb-cli 安装</summary>

在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装

    nb plugin install nonebot-plugin-blacklist

</details>

<details>
<summary>使用包管理器安装</summary>

在 nonebot2 项目的插件目录下, 打开命令行,

**根据你使用的包管理器, 输入相应的安装命令**

<details>
<summary>pip</summary>

    pip install nonebot-plugin-blacklist

</details>
<details>
<summary>pdm</summary>

    pdm add nonebot-plugin-blacklist

</details>
<details>
<summary>poetry</summary>

    poetry add nonebot-plugin-blacklist

</details>
<details>
<summary>conda</summary>

    conda install nonebot-plugin-blacklist

</details>

打开 bot项目下的 `pyproject.toml` 文件,

在其 `plugins` 里加入 `nonebot_plugin_blacklist`

    plugins = ["nonebot_plugin_blacklist"]

</details>
</details>

## 🎉 使用

**总开关**
```
群聊静默/静默群聊

群聊响应/响应群聊

私聊静默/静默私聊

私聊响应/响应私聊
```

**拉黑**
```
拉黑用户 qq qq1 qq2
拉黑群 qq qq1 qq2
拉黑私聊 qq qq1 qq2
拉黑所有群
拉黑所有好友
```

**解禁**
```
解禁用户 qq qq1 qq2
解禁群 qq qq1 qq2
解禁私聊 qq qq1 qq2
解禁所有群
解禁所有好友
```

**查看黑名单**
```
查看用户黑名单 bot
查看群聊黑名单 bot
查看私聊黑名单 bot

重置黑名单 bot bot1 bot2 ...
重置所有黑名单

## 不指定bot则为当前bot
```

**被禁言自动屏蔽该群**
```
自觉静默开
自觉静默关
```

群内发送 `/静默` `/响应` 可快捷拉黑/解禁当前群聊  
  
`拉黑所有` 只对已添加的群/好友生效
  
## ⚠️ 注意事项

**本插件目前仅支持 nonebot2 + onebot.v11 的使用方式, 一切非此二者结合的使用方式造成的问题请自行探索解决, 或者使用其他插件**


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/tkgs0/nonebot-plugin-blacklist",
    "name": "nonebot-plugin-blacklist",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "nonebot, blacklist",
    "author": "\u6708\u30f6\u702c",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/b3/83/312e890f5628d9a25750fee5a79867a0b9bcdc792c533026f6ff953d23ef/nonebot_plugin_blacklist-1.4.3.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n  <a href=\"https://v2.nonebot.dev/store\"><img src=\"https://raw.githubusercontent.com/tkgs0/nbpt/resources/nbp_logo.png\" width=\"180\" height=\"180\" alt=\"NoneBotPluginLogo\"></a>\n  <br>\n  <p><img src=\"https://raw.githubusercontent.com/tkgs0/nbpt/resources/NoneBotPlugin.svg\" width=\"240\" alt=\"NoneBotPluginText\"></p>\n</div>\n\n<div align=\"center\">\n\n# nonebot-plugin-blacklist\n\n_\u2728 NoneBot \u9ed1\u540d\u5355\u63d2\u4ef6 \u2728_\n\n\n<a href=\"./LICENSE\">\n    <img src=\"https://img.shields.io/github/license/tkgs0/nonebot-plugin-blacklist.svg\" alt=\"license\">\n</a>\n<a href=\"https://pypi.python.org/pypi/nonebot-plugin-blacklist\">\n    <img src=\"https://img.shields.io/pypi/v/nonebot-plugin-blacklist.svg\" alt=\"pypi\">\n</a>\n<a href=\"https://www.python.org\">\n    <img src=\"https://img.shields.io/badge/python-3.9+-blue.svg\" alt=\"python\">\n</a>\n<a href=\"https://nonebot.dev\">\n    <img src=\"https://img.shields.io/badge/nonebot-2.3.1+-red.svg\" alt=\"nonebot\">\n</a>\n<a href=\"https://onebot.adapters.nonebot.dev\">\n    <img src=\"https://img.shields.io/badge/OneBot-11-black?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABwCAMAAADxPgR5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAxQTFRF////29vbr6+vAAAAk1hCcwAAAAR0Uk5T////AEAqqfQAAAKcSURBVHja7NrbctswDATQXfD//zlpO7FlmwAWIOnOtNaTM5JwDMa8E+PNFz7g3waJ24fviyDPgfhz8fHP39cBcBL9KoJbQUxjA2iYqHL3FAnvzhL4GtVNUcoSZe6eSHizBcK5LL7dBr2AUZlev1ARRHCljzRALIEog6H3U6bCIyqIZdAT0eBuJYaGiJaHSjmkYIZd+qSGWAQnIaz2OArVnX6vrItQvbhZJtVGB5qX9wKqCMkb9W7aexfCO/rwQRBzsDIsYx4AOz0nhAtWu7bqkEQBO0Pr+Ftjt5fFCUEbm0Sbgdu8WSgJ5NgH2iu46R/o1UcBXJsFusWF/QUaz3RwJMEgngfaGGdSxJkE/Yg4lOBryBiMwvAhZrVMUUvwqU7F05b5WLaUIN4M4hRocQQRnEedgsn7TZB3UCpRrIJwQfqvGwsg18EnI2uSVNC8t+0QmMXogvbPg/xk+Mnw/6kW/rraUlvqgmFreAA09xW5t0AFlHrQZ3CsgvZm0FbHNKyBmheBKIF2cCA8A600aHPmFtRB1XvMsJAiza7LpPog0UJwccKdzw8rdf8MyN2ePYF896LC5hTzdZqxb6VNXInaupARLDNBWgI8spq4T0Qb5H4vWfPmHo8OyB1ito+AysNNz0oglj1U955sjUN9d41LnrX2D/u7eRwxyOaOpfyevCWbTgDEoilsOnu7zsKhjRCsnD/QzhdkYLBLXjiK4f3UWmcx2M7PO21CKVTH84638NTplt6JIQH0ZwCNuiWAfvuLhdrcOYPVO9eW3A67l7hZtgaY9GZo9AFc6cryjoeFBIWeU+npnk/nLE0OxCHL1eQsc1IciehjpJv5mqCsjeopaH6r15/MrxNnVhu7tmcslay2gO2Z1QfcfX0JMACG41/u0RrI9QAAAABJRU5ErkJggg==\" alt=\"onebot\">\n</a>\n\n</div>\n\n  \n## \ud83d\udcd6 \u4ecb\u7ecd\n  \n\u57fa\u4e8e [A-kirami](https://github.com/A-kirami) \u5927\u4f6c\u7684 [\u9ed1\u767d\u540d\u5355](https://github.com/A-kirami/nonebot-plugin-namelist) \u63d2\u4ef6 \u9b54\u6539(?)\u7684\u4ec5\u9ed1\u540d\u5355\u63d2\u4ef6  \n  \n\u8d85\u7ea7\u7528\u6237\u4e0d\u53d7\u9ed1\u540d\u5355\u5f71\u54cd  \n  \n## \ud83d\udcbf \u5b89\u88c5\n\n**nb-cli\u5b89\u88c5, \u5305\u7ba1\u7406\u5668\u5b89\u88c5  \u4e8c\u9009\u4e00**\n\n<details>\n<summary>\u4f7f\u7528 nb-cli \u5b89\u88c5</summary>\n\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-blacklist\n\n</details>\n\n<details>\n<summary>\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5</summary>\n\n\u5728 nonebot2 \u9879\u76ee\u7684\u63d2\u4ef6\u76ee\u5f55\u4e0b, \u6253\u5f00\u547d\u4ee4\u884c,\n\n**\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-blacklist\n\n</details>\n<details>\n<summary>pdm</summary>\n\n    pdm add nonebot-plugin-blacklist\n\n</details>\n<details>\n<summary>poetry</summary>\n\n    poetry add nonebot-plugin-blacklist\n\n</details>\n<details>\n<summary>conda</summary>\n\n    conda install nonebot-plugin-blacklist\n\n</details>\n\n\u6253\u5f00 bot\u9879\u76ee\u4e0b\u7684 `pyproject.toml` \u6587\u4ef6,\n\n\u5728\u5176 `plugins` \u91cc\u52a0\u5165 `nonebot_plugin_blacklist`\n\n    plugins = [\"nonebot_plugin_blacklist\"]\n\n</details>\n</details>\n\n## \ud83c\udf89 \u4f7f\u7528\n\n**\u603b\u5f00\u5173**\n```\n\u7fa4\u804a\u9759\u9ed8/\u9759\u9ed8\u7fa4\u804a\n\n\u7fa4\u804a\u54cd\u5e94/\u54cd\u5e94\u7fa4\u804a\n\n\u79c1\u804a\u9759\u9ed8/\u9759\u9ed8\u79c1\u804a\n\n\u79c1\u804a\u54cd\u5e94/\u54cd\u5e94\u79c1\u804a\n```\n\n**\u62c9\u9ed1**\n```\n\u62c9\u9ed1\u7528\u6237 qq qq1 qq2\n\u62c9\u9ed1\u7fa4 qq qq1 qq2\n\u62c9\u9ed1\u79c1\u804a qq qq1 qq2\n\u62c9\u9ed1\u6240\u6709\u7fa4\n\u62c9\u9ed1\u6240\u6709\u597d\u53cb\n```\n\n**\u89e3\u7981**\n```\n\u89e3\u7981\u7528\u6237 qq qq1 qq2\n\u89e3\u7981\u7fa4 qq qq1 qq2\n\u89e3\u7981\u79c1\u804a qq qq1 qq2\n\u89e3\u7981\u6240\u6709\u7fa4\n\u89e3\u7981\u6240\u6709\u597d\u53cb\n```\n\n**\u67e5\u770b\u9ed1\u540d\u5355**\n```\n\u67e5\u770b\u7528\u6237\u9ed1\u540d\u5355 bot\n\u67e5\u770b\u7fa4\u804a\u9ed1\u540d\u5355 bot\n\u67e5\u770b\u79c1\u804a\u9ed1\u540d\u5355 bot\n\n\u91cd\u7f6e\u9ed1\u540d\u5355 bot bot1 bot2 ...\n\u91cd\u7f6e\u6240\u6709\u9ed1\u540d\u5355\n\n## \u4e0d\u6307\u5b9abot\u5219\u4e3a\u5f53\u524dbot\n```\n\n**\u88ab\u7981\u8a00\u81ea\u52a8\u5c4f\u853d\u8be5\u7fa4**\n```\n\u81ea\u89c9\u9759\u9ed8\u5f00\n\u81ea\u89c9\u9759\u9ed8\u5173\n```\n\n\u7fa4\u5185\u53d1\u9001 `/\u9759\u9ed8` `/\u54cd\u5e94` \u53ef\u5feb\u6377\u62c9\u9ed1/\u89e3\u7981\u5f53\u524d\u7fa4\u804a  \n  \n`\u62c9\u9ed1\u6240\u6709` \u53ea\u5bf9\u5df2\u6dfb\u52a0\u7684\u7fa4/\u597d\u53cb\u751f\u6548\n  \n## \u26a0\ufe0f \u6ce8\u610f\u4e8b\u9879\n\n**\u672c\u63d2\u4ef6\u76ee\u524d\u4ec5\u652f\u6301 nonebot2 + onebot.v11 \u7684\u4f7f\u7528\u65b9\u5f0f, \u4e00\u5207\u975e\u6b64\u4e8c\u8005\u7ed3\u5408\u7684\u4f7f\u7528\u65b9\u5f0f\u9020\u6210\u7684\u95ee\u9898\u8bf7\u81ea\u884c\u63a2\u7d22\u89e3\u51b3, \u6216\u8005\u4f7f\u7528\u5176\u4ed6\u63d2\u4ef6**\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Blacklist in NoneBot2",
    "version": "1.4.3",
    "project_urls": {
        "Homepage": "https://github.com/tkgs0/nonebot-plugin-blacklist",
        "Repository": "https://github.com/tkgs0/nonebot-plugin-blacklist"
    },
    "split_keywords": [
        "nonebot",
        " blacklist"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4748b37966553f67d452e500a72e2fbcedd1a85347334e19cab8ea06eb837f16",
                "md5": "fdc33416e5706a739723dc0036d8049c",
                "sha256": "3f4b1762637c46709a0558d1243411fe765695eb7d29b44657b62dc55a65dc5a"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_blacklist-1.4.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "fdc33416e5706a739723dc0036d8049c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 7953,
            "upload_time": "2024-08-24T07:35:13",
            "upload_time_iso_8601": "2024-08-24T07:35:13.241963Z",
            "url": "https://files.pythonhosted.org/packages/47/48/b37966553f67d452e500a72e2fbcedd1a85347334e19cab8ea06eb837f16/nonebot_plugin_blacklist-1.4.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b383312e890f5628d9a25750fee5a79867a0b9bcdc792c533026f6ff953d23ef",
                "md5": "51d2876c60935d0136c8a9c55eff2617",
                "sha256": "8c63f647a36acd727d11460f2fe0f5db0ff40a5494a7819c0b315cceb91d5301"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_blacklist-1.4.3.tar.gz",
            "has_sig": false,
            "md5_digest": "51d2876c60935d0136c8a9c55eff2617",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 7360,
            "upload_time": "2024-08-24T07:35:14",
            "upload_time_iso_8601": "2024-08-24T07:35:14.462905Z",
            "url": "https://files.pythonhosted.org/packages/b3/83/312e890f5628d9a25750fee5a79867a0b9bcdc792c533026f6ff953d23ef/nonebot_plugin_blacklist-1.4.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-24 07:35:14",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "tkgs0",
    "github_project": "nonebot-plugin-blacklist",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nonebot-plugin-blacklist"
}
        
Elapsed time: 0.31573s