Name | nonebot_plugin_poke JSON |
Version |
0.2.0
JSON |
| download |
home_page | None |
Summary | 自定义群聊戳戳事件 plugin for NoneBot2 |
upload_time | 2025-07-19 10:28:09 |
maintainer | None |
docs_url | None |
author | None |
requires_python | <4.0,>=3.9 |
license | MIT |
keywords |
nonebot2
plugin
poke
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
<!-- markdownlint-disable MD026 MD031 MD033 MD036 MD041 MD046 -->
<div align="center">
<img src="https://raw.githubusercontent.com/Agnes4m/nonebot_plugin_l4d2_server/main/image/logo.png" width="180" height="180" alt="AgnesDigitalLogo">
<br>
<p><img src="https://s2.loli.net/2022/06/16/xsVUGRrkbn1ljTD.png" width="240" alt="NoneBotPluginText"></p>
</div>
<div align="center">
# nonebot_plugin_poke(仅支持 onebotv11)
_✨Nonebot & 自定义戳戳群聊事件 ✨_
<img src="https://img.shields.io/badge/python-3.9+-blue?logo=python&logoColor=edb641" alt="python">
<a href ="LICENSE">
<img src="https://img.shields.io/github/license/Agnes4m/nonebot_plugin_poke" alt="pokelogo">
<img src="https://img.shields.io/badge/nonebot-2.1.0+-red.svg" alt="NoneBot">
<a href="https://pypi.python.org/pypi/nonebot_plugin_l4d2_server">
<a href="https://pypi.python.org/pypi/nonebot_plugin_poke">
<img src="https://img.shields.io/pypi/v/nonebot_plugin_poke.svg" alt="pypi">
</a>
</br>
<a href="https://github.com/astral-sh/ruff">
<img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json" alt="ruff">
</a>
<a href="https://github.com/psf/black">
<img src="https://img.shields.io/badge/code%20style-black-000000.svg?logo=python&logoColor=edb641" alt="black">
</a>
<img src="https://img.shields.io/badge/alconna-0.58.3+-red.svg" alt="NoneBot">
<a href="https://github.com/Agnes4m/nonebot_plugin_poke/issues">
<img alt="GitHub issues" src="https://img.shields.io/github/issues/Agnes4m/nonebot_plugin_poke" alt="issues">
</a>
</div>
## 注意事项
**如果使用 napcat,请将版本更新到 1.6.6 或者以上,否则这个功能用不了**
## 安装
方法一 (推荐):
```bash
nb plugin install nonebot_plugin_poke
```
方法二:
```bash
poetry add nonebot_plugin_poke
pdm add nonebot_plugin_poke
```
方法三:
```bash
pip install nonebot_plugin_poke
```
再手动添加`nonebot_plugin_poke`到 bot 文件下`pyproject.toml`文件中
## env 配置项:
# 在完全不写的情况下,效果是戳戳后反戳戳
# 机器人名称
bot_nickname: str = '宁宁'
# 是否回复图片
poke_send_pic: bool = False
# 是否回复戳戳
poke_send_poke: bool = True
# 是否回复文字
poke_send_text: bool = False
# 是否回复音频
poke_send_acc: bool = False
如果不知道以下配置,默认就可以,只修改上面部分
# poke文件夹位置
poke_path:Path = Path('data/poke')
# 是否开启黑名单模式(否则是白名单)
poke_black: bool = True
# 黑名单屏蔽群组
poke_ban_group:List[str] = []
# 白名单允许群组
poke_allow_group:List[str] = []
# 戳戳优先级
poke_priority:int = 1
# 是否阻断其他指令
poke_block:bool = True
## 指令
群里双击 bot 头像,会依次按照配置文件,逐步检查回复
## 数据结构
```txt
举例:
└── data
└── poke
├── poke.txt # 回复文字
├── pic # 回复图片
├── 1.png
├── 2.jpg
├── 3.jpeg
└── ...
└── acc # 回复音频
├── 1.acc
├── 2.mp3
└── ...
...
```
## 其他
- 如果发不出语音,请手动安装 ffmpeg, deb 类系统请使用`sudo apt install ffmpeg`,rpm 类系统请使用`sudo yum install ffmpeg`
- 当语音,与图或文都为 True 的时候,则随机发送一种,防止刷屏刷到风控
## 参考
- [智障回复](https://github.com/Special-Week/nonebot_plugin_smart_reply)
Raw data
{
"_id": null,
"home_page": null,
"name": "nonebot_plugin_poke",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.9",
"maintainer_email": null,
"keywords": "nonebot2, plugin, poke",
"author": null,
"author_email": "Agnes_Digital <Z735803792@163.com>",
"download_url": "https://files.pythonhosted.org/packages/06/aa/9282efcaad735a9b2a0ca0f0d1a01c963ca5f76c1544e9cca3d26624b44f/nonebot_plugin_poke-0.2.0.tar.gz",
"platform": null,
"description": "<!-- markdownlint-disable MD026 MD031 MD033 MD036 MD041 MD046 -->\n<div align=\"center\">\n <img src=\"https://raw.githubusercontent.com/Agnes4m/nonebot_plugin_l4d2_server/main/image/logo.png\" width=\"180\" height=\"180\" alt=\"AgnesDigitalLogo\">\n <br>\n <p><img src=\"https://s2.loli.net/2022/06/16/xsVUGRrkbn1ljTD.png\" width=\"240\" alt=\"NoneBotPluginText\"></p>\n</div>\n\n<div align=\"center\">\n\n# nonebot_plugin_poke\uff08\u4ec5\u652f\u6301 onebotv11\uff09\n\n_\u2728Nonebot & \u81ea\u5b9a\u4e49\u6233\u6233\u7fa4\u804a\u4e8b\u4ef6 \u2728_\n\n<img src=\"https://img.shields.io/badge/python-3.9+-blue?logo=python&logoColor=edb641\" alt=\"python\">\n<a href =\"LICENSE\">\n<img src=\"https://img.shields.io/github/license/Agnes4m/nonebot_plugin_poke\" alt=\"pokelogo\">\n<img src=\"https://img.shields.io/badge/nonebot-2.1.0+-red.svg\" alt=\"NoneBot\">\n<a href=\"https://pypi.python.org/pypi/nonebot_plugin_l4d2_server\">\n\n<a href=\"https://pypi.python.org/pypi/nonebot_plugin_poke\">\n <img src=\"https://img.shields.io/pypi/v/nonebot_plugin_poke.svg\" alt=\"pypi\">\n</a>\n</br>\n<a href=\"https://github.com/astral-sh/ruff\">\n<img src=\"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/charliermarsh/ruff/main/assets/badge/v2.json\" alt=\"ruff\">\n</a>\n<a href=\"https://github.com/psf/black\">\n<img src=\"https://img.shields.io/badge/code%20style-black-000000.svg?logo=python&logoColor=edb641\" alt=\"black\">\n</a>\n<img src=\"https://img.shields.io/badge/alconna-0.58.3+-red.svg\" alt=\"NoneBot\">\n\n<a href=\"https://github.com/Agnes4m/nonebot_plugin_poke/issues\">\n <img alt=\"GitHub issues\" src=\"https://img.shields.io/github/issues/Agnes4m/nonebot_plugin_poke\" alt=\"issues\">\n</a>\n</div>\n\n## \u6ce8\u610f\u4e8b\u9879\n\n**\u5982\u679c\u4f7f\u7528 napcat\uff0c\u8bf7\u5c06\u7248\u672c\u66f4\u65b0\u5230 1.6.6 \u6216\u8005\u4ee5\u4e0a\uff0c\u5426\u5219\u8fd9\u4e2a\u529f\u80fd\u7528\u4e0d\u4e86**\n\n## \u5b89\u88c5\n\n\u65b9\u6cd5\u4e00 \uff08\u63a8\u8350\uff09\uff1a\n\n```bash\nnb plugin install nonebot_plugin_poke\n```\n\n\u65b9\u6cd5\u4e8c\uff1a\n\n```bash\npoetry add nonebot_plugin_poke\npdm add nonebot_plugin_poke\n```\n\n\u65b9\u6cd5\u4e09\uff1a\n\n```bash\npip install nonebot_plugin_poke\n```\n\n\u518d\u624b\u52a8\u6dfb\u52a0`nonebot_plugin_poke`\u5230 bot \u6587\u4ef6\u4e0b`pyproject.toml`\u6587\u4ef6\u4e2d\n\n## env \u914d\u7f6e\u9879:\n\n # \u5728\u5b8c\u5168\u4e0d\u5199\u7684\u60c5\u51b5\u4e0b\uff0c\u6548\u679c\u662f\u6233\u6233\u540e\u53cd\u6233\u6233\n # \u673a\u5668\u4eba\u540d\u79f0\n bot_nickname: str = '\u5b81\u5b81'\n # \u662f\u5426\u56de\u590d\u56fe\u7247\n poke_send_pic: bool = False\n # \u662f\u5426\u56de\u590d\u6233\u6233\n poke_send_poke: bool = True\n # \u662f\u5426\u56de\u590d\u6587\u5b57\n poke_send_text: bool = False\n # \u662f\u5426\u56de\u590d\u97f3\u9891\n poke_send_acc: bool = False\n\n\u5982\u679c\u4e0d\u77e5\u9053\u4ee5\u4e0b\u914d\u7f6e\uff0c\u9ed8\u8ba4\u5c31\u53ef\u4ee5\uff0c\u53ea\u4fee\u6539\u4e0a\u9762\u90e8\u5206\n\n # poke\u6587\u4ef6\u5939\u4f4d\u7f6e\n poke_path:Path = Path('data/poke')\n # \u662f\u5426\u5f00\u542f\u9ed1\u540d\u5355\u6a21\u5f0f\uff08\u5426\u5219\u662f\u767d\u540d\u5355\uff09\n poke_black: bool = True\n # \u9ed1\u540d\u5355\u5c4f\u853d\u7fa4\u7ec4\n poke_ban_group:List[str] = []\n # \u767d\u540d\u5355\u5141\u8bb8\u7fa4\u7ec4\n poke_allow_group:List[str] = []\n # \u6233\u6233\u4f18\u5148\u7ea7\n poke_priority:int = 1\n # \u662f\u5426\u963b\u65ad\u5176\u4ed6\u6307\u4ee4\n poke_block:bool = True\n\n## \u6307\u4ee4\n\n\u7fa4\u91cc\u53cc\u51fb bot \u5934\u50cf\uff0c\u4f1a\u4f9d\u6b21\u6309\u7167\u914d\u7f6e\u6587\u4ef6\uff0c\u9010\u6b65\u68c0\u67e5\u56de\u590d\n\n## \u6570\u636e\u7ed3\u6784\n\n```txt\n\u4e3e\u4f8b\uff1a\n\u2514\u2500\u2500 data\n \u2514\u2500\u2500 poke\n \u251c\u2500\u2500 poke.txt # \u56de\u590d\u6587\u5b57\n \u251c\u2500\u2500 pic # \u56de\u590d\u56fe\u7247\n \u251c\u2500\u2500 1.png\n \u251c\u2500\u2500 2.jpg\n \u251c\u2500\u2500 3.jpeg\n \u2514\u2500\u2500 ...\n \u2514\u2500\u2500 acc # \u56de\u590d\u97f3\u9891\n \u251c\u2500\u2500 1.acc\n \u251c\u2500\u2500 2.mp3\n \u2514\u2500\u2500 ...\n...\n```\n\n## \u5176\u4ed6\n\n- \u5982\u679c\u53d1\u4e0d\u51fa\u8bed\u97f3\uff0c\u8bf7\u624b\u52a8\u5b89\u88c5 ffmpeg, deb \u7c7b\u7cfb\u7edf\u8bf7\u4f7f\u7528`sudo apt install ffmpeg`\uff0crpm \u7c7b\u7cfb\u7edf\u8bf7\u4f7f\u7528`sudo yum install ffmpeg`\n\n- \u5f53\u8bed\u97f3\uff0c\u4e0e\u56fe\u6216\u6587\u90fd\u4e3a True \u7684\u65f6\u5019\uff0c\u5219\u968f\u673a\u53d1\u9001\u4e00\u79cd\uff0c\u9632\u6b62\u5237\u5c4f\u5237\u5230\u98ce\u63a7\n\n## \u53c2\u8003\n\n- [\u667a\u969c\u56de\u590d](https://github.com/Special-Week/nonebot_plugin_smart_reply)\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "\u81ea\u5b9a\u4e49\u7fa4\u804a\u6233\u6233\u4e8b\u4ef6 plugin for NoneBot2",
"version": "0.2.0",
"project_urls": null,
"split_keywords": [
"nonebot2",
" plugin",
" poke"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7af78960451d1fa0cd81e7ad9b423f3bcc4a27e0fcbe3e4218bb80ef460abc1f",
"md5": "86650a5215ddea638518959d40728327",
"sha256": "9c68b79f3066ff00eee789c662d4040ee08473cbb01153557a1f877002241752"
},
"downloads": -1,
"filename": "nonebot_plugin_poke-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "86650a5215ddea638518959d40728327",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.9",
"size": 8733,
"upload_time": "2025-07-19T10:28:08",
"upload_time_iso_8601": "2025-07-19T10:28:08.369843Z",
"url": "https://files.pythonhosted.org/packages/7a/f7/8960451d1fa0cd81e7ad9b423f3bcc4a27e0fcbe3e4218bb80ef460abc1f/nonebot_plugin_poke-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "06aa9282efcaad735a9b2a0ca0f0d1a01c963ca5f76c1544e9cca3d26624b44f",
"md5": "ccd22feb5e0a75add3dc4e3b0fbec096",
"sha256": "aef80240b41414f7ed39e5f74f7653a8f4ad31801df38a47941f9bbff7528851"
},
"downloads": -1,
"filename": "nonebot_plugin_poke-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "ccd22feb5e0a75add3dc4e3b0fbec096",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.9",
"size": 7195,
"upload_time": "2025-07-19T10:28:09",
"upload_time_iso_8601": "2025-07-19T10:28:09.382876Z",
"url": "https://files.pythonhosted.org/packages/06/aa/9282efcaad735a9b2a0ca0f0d1a01c963ca5f76c1544e9cca3d26624b44f/nonebot_plugin_poke-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-19 10:28:09",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "nonebot_plugin_poke"
}