<!-- 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 & 自定义戳戳群聊事件✨_
<a href="https://github.com/Agnes4m/nonebot_plugin_poke/stargazers">
<img alt="GitHub stars" src="https://img.shields.io/github/stars/Agnes4m/nonebot_plugin_poke" alt="stars">
</a>
<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>
<a href="https://jq.qq.com/?_wv=1027&k=HdjoCcAe">
<img src="https://img.shields.io/badge/QQ%E7%BE%A4-399365126-orange?style=flat-square" alt="QQ Chat Group">
</a>
<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>
<img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">
<img src="https://img.shields.io/badge/nonebot-2.0.0-red.svg" alt="NoneBot">
</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
- 当语音,与图或文都为True的时候,则随机发送一种,防止刷屏刷到风控
## 参考
- [智障回复](https://github.com/Special-Week/nonebot_plugin_smart_reply)
Raw data
{
"_id": null,
"home_page": "https://github.com/Agnes4m/nonebot_plugin_poke",
"name": "nonebot-plugin-poke",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": "nonebot2, plugin, event",
"author": "Agnes_Digital",
"author_email": "Z735803792@163.com",
"download_url": "https://files.pythonhosted.org/packages/3b/9e/bc42c5974cc2e239debd8b1162c80c83f067101f8d300fa8d0d5f41696bd/nonebot_plugin_poke-0.1.3.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\u6301onebotv11\uff09\n\n_\u2728Nonebot & \u81ea\u5b9a\u4e49\u6233\u6233\u7fa4\u804a\u4e8b\u4ef6\u2728_\n\n<a href=\"https://github.com/Agnes4m/nonebot_plugin_poke/stargazers\">\n <img alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/Agnes4m/nonebot_plugin_poke\" alt=\"stars\">\n</a>\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<a href=\"https://jq.qq.com/?_wv=1027&k=HdjoCcAe\">\n <img src=\"https://img.shields.io/badge/QQ%E7%BE%A4-399365126-orange?style=flat-square\" alt=\"QQ Chat Group\">\n</a>\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 <img src=\"https://img.shields.io/badge/python-3.9+-blue.svg\" alt=\"python\">\n <img src=\"https://img.shields.io/badge/nonebot-2.0.0-red.svg\" alt=\"NoneBot\">\n\n</div>\n\n## \u6ce8\u610f\u4e8b\u9879\n\n**\u5982\u679c\u4f7f\u7528napcat\uff0c\u8bf7\u5c06\u7248\u672c\u66f4\u65b0\u52301.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```bash\nnb plugin install nonebot_plugin_poke\n```\n\n\u65b9\u6cd5\u4e8c\uff1a\n```bash\npoetry add nonebot_plugin_poke\npdm add nonebot_plugin_poke\n```\n\n\u65b9\u6cd5\u4e09\uff1a\n```bash\npip install nonebot_plugin_poke\n```\n\u518d\u624b\u52a8\u6dfb\u52a0`nonebot_plugin_poke`\u5230bot\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\u51fbbot\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\u88c5ffmpeg\n- \u5f53\u8bed\u97f3\uff0c\u4e0e\u56fe\u6216\u6587\u90fd\u4e3aTrue\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\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "\u81ea\u5b9a\u4e49\u7fa4\u804a\u6233\u6233\u4e8b\u4ef6 plugin for NoneBot2",
"version": "0.1.3",
"project_urls": {
"Homepage": "https://github.com/Agnes4m/nonebot_plugin_poke",
"Repository": "https://github.com/Agnes4m/nonebot_plugin_poke"
},
"split_keywords": [
"nonebot2",
" plugin",
" event"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ba94071a04e5abfe8504d8b775ba972b7b80552e433890b5ba4d2efb116b5106",
"md5": "b4ddf4c9c7729754636e9511b8a1541f",
"sha256": "d9d8ee6b8530625205b13af564b059bfa18acbda0d85f056772ba67d48bb2de8"
},
"downloads": -1,
"filename": "nonebot_plugin_poke-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b4ddf4c9c7729754636e9511b8a1541f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 10295,
"upload_time": "2024-08-12T09:13:35",
"upload_time_iso_8601": "2024-08-12T09:13:35.092272Z",
"url": "https://files.pythonhosted.org/packages/ba/94/071a04e5abfe8504d8b775ba972b7b80552e433890b5ba4d2efb116b5106/nonebot_plugin_poke-0.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3b9ebc42c5974cc2e239debd8b1162c80c83f067101f8d300fa8d0d5f41696bd",
"md5": "43a0fcc42bc65ab322a738f8351a54ae",
"sha256": "f6f722a1e1bfdc18d048e06a217c547e65a74f907fe3c495e492fdc2af4210fd"
},
"downloads": -1,
"filename": "nonebot_plugin_poke-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "43a0fcc42bc65ab322a738f8351a54ae",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 6692,
"upload_time": "2024-08-12T09:13:37",
"upload_time_iso_8601": "2024-08-12T09:13:37.507458Z",
"url": "https://files.pythonhosted.org/packages/3b/9e/bc42c5974cc2e239debd8b1162c80c83f067101f8d300fa8d0d5f41696bd/nonebot_plugin_poke-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-12 09:13:37",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Agnes4m",
"github_project": "nonebot_plugin_poke",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "nonebot-plugin-poke"
}