nonebot-plugin-poke


Namenonebot-plugin-poke JSON
Version 0.1.2 PyPI version JSON
download
home_pagehttps://github.com/Agnes4m/nonebot_plugin_poke
Summary自定义群聊戳戳事件 plugin for NoneBot2
upload_time2023-08-02 08:32:29
maintainer
docs_urlNone
authorAgnes_Digital
requires_python>=3.8,<4.0
licenseMIT
keywords nonebot2 plugin event
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

_✨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>

## 安装

方法一:

        nb plugin install nonebot_plugin_poke

方法二:

        pip install nonebot_plugin_poke
        poetry add nonebot-plugin-pjsk

再手动添加`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": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "nonebot2,plugin,event",
    "author": "Agnes_Digital",
    "author_email": "Z735803792@163.com",
    "download_url": "https://files.pythonhosted.org/packages/b8/6f/3316e8b12cccfc45c2028f62ebe887627302a6263cc158e984d5ff9ded07/nonebot_plugin_poke-0.1.2.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\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## \u5b89\u88c5\n\n\u65b9\u6cd5\u4e00\uff1a\n\n        nb plugin install nonebot_plugin_poke\n\n\u65b9\u6cd5\u4e8c\uff1a\n\n        pip install nonebot_plugin_poke\n        poetry add nonebot-plugin-pjsk\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.2",
    "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": "f377d84ab1e37c00805d2122c00afdf7097b5feea5d69f0be9710d8cd626a7a8",
                "md5": "2fc218031f2b8ee98d3ef08840e795ef",
                "sha256": "52e5d0ca4ed28af2b2fa65690ecdf4758071a03c228962db5a9264544be07192"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_poke-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "2fc218031f2b8ee98d3ef08840e795ef",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 10080,
            "upload_time": "2023-08-02T08:32:28",
            "upload_time_iso_8601": "2023-08-02T08:32:28.462790Z",
            "url": "https://files.pythonhosted.org/packages/f3/77/d84ab1e37c00805d2122c00afdf7097b5feea5d69f0be9710d8cd626a7a8/nonebot_plugin_poke-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b86f3316e8b12cccfc45c2028f62ebe887627302a6263cc158e984d5ff9ded07",
                "md5": "0f97c6c788c1d27a8ff818d53e500cd6",
                "sha256": "5acf37e2e9cc250cbdabdf61503a3133d2a93da8153a5a2ba6e5c4550e2a9d74"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_poke-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "0f97c6c788c1d27a8ff818d53e500cd6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 6561,
            "upload_time": "2023-08-02T08:32:29",
            "upload_time_iso_8601": "2023-08-02T08:32:29.593544Z",
            "url": "https://files.pythonhosted.org/packages/b8/6f/3316e8b12cccfc45c2028f62ebe887627302a6263cc158e984d5ff9ded07/nonebot_plugin_poke-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-02 08:32:29",
    "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"
}
        
Elapsed time: 0.09797s