nonebot-plugin-miao


Namenonebot-plugin-miao JSON
Version 1.0.0 PyPI version JSON
download
home_pagehttps://github.com/CMHopeSunshine/nonebot-plugin-miao
SummaryNonebot2 plugin to make your bot talk weird.
upload_time2023-03-26 14:04:06
maintainer
docs_urlNone
authorCMHopeSunshine
requires_python>=3.8,<4.0
licenseAGPL
keywords nonebot2
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-miao

_✨ 让Bot的发言添加一些奇怪的口癖! ✨_

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

</div>

## 📖 介绍

通过on_calling_api钩子,给你的Bot的纯文本发言添加一些奇怪的口癖(。

## 💿 安装

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

```shell
nb plugin install nonebot-plugin-miao
```

## ✨ 例子
以内置的echo插件(作用是复读你的话)为例
```
- /echo 诶嘿
- 诶嘿喵

- /echo 诶呦你干嘛
- 诶呦你干嘛旺
```

## 🔧 配置项

在你的bot的配置文件(.env.*)中添加以下配置项(不区分大小写)

|       配置项        |    默认值     |                     说明                      |
|:----------------:|:----------:|:-------------------------------------------:|
|    miao_texts    | ["喵", "旺"] |                    口癖词列表                    |
| miao_probability |    0.5     |                   添加口癖的概率                   |
|  miao_position   |    end     | 添加口癖的位置,可选start(开头)、end(结尾)、random(句子中随机位置) |
|    miao_count    |     1      |                  最多添加的词数量                   |

## 💝 鸣谢

- [Nonebot](https://github.com/nonebot/nonebot2): 本项目的基础,非常好用的聊天机器人框架。

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/CMHopeSunshine/nonebot-plugin-miao",
    "name": "nonebot-plugin-miao",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "nonebot2",
    "author": "CMHopeSunshine",
    "author_email": "277073121@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/dc/43/3353330892ffad08bd36120187f5e58e0671d5ee89cfb421500280f9fcfb/nonebot_plugin_miao-1.0.0.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-miao\n\n_\u2728 \u8ba9Bot\u7684\u53d1\u8a00\u6dfb\u52a0\u4e00\u4e9b\u5947\u602a\u7684\u53e3\u7656! \u2728_\n\n<a href=\"./LICENSE\">\n    <img src=\"https://img.shields.io/github/license/CMHopeSunshine/nonebot-plugin-miao.svg\" alt=\"license\">\n</a>\n<a href=\"https://pypi.python.org/pypi/nonebot-plugin-miao\">\n    <img src=\"https://img.shields.io/pypi/v/nonebot-plugin-miao.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## \ud83d\udcd6 \u4ecb\u7ecd\n\n\u901a\u8fc7on_calling_api\u94a9\u5b50\uff0c\u7ed9\u4f60\u7684Bot\u7684\u7eaf\u6587\u672c\u53d1\u8a00\u6dfb\u52a0\u4e00\u4e9b\u5947\u602a\u7684\u53e3\u7656(\u3002\n\n## \ud83d\udcbf \u5b89\u88c5\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```shell\nnb plugin install nonebot-plugin-miao\n```\n\n## \u2728 \u4f8b\u5b50\n\u4ee5\u5185\u7f6e\u7684echo\u63d2\u4ef6(\u4f5c\u7528\u662f\u590d\u8bfb\u4f60\u7684\u8bdd)\u4e3a\u4f8b\n```\n- /echo \u8bf6\u563f\n- \u8bf6\u563f\u55b5\n\n- /echo \u8bf6\u5466\u4f60\u5e72\u561b\n- \u8bf6\u5466\u4f60\u5e72\u561b\u65fa\n```\n\n## \ud83d\udd27 \u914d\u7f6e\u9879\n\n\u5728\u4f60\u7684bot\u7684\u914d\u7f6e\u6587\u4ef6(.env.*)\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u914d\u7f6e\u9879(\u4e0d\u533a\u5206\u5927\u5c0f\u5199)\n\n|       \u914d\u7f6e\u9879        |    \u9ed8\u8ba4\u503c     |                     \u8bf4\u660e                      |\n|:----------------:|:----------:|:-------------------------------------------:|\n|    miao_texts    | [\"\u55b5\", \"\u65fa\"] |                    \u53e3\u7656\u8bcd\u5217\u8868                    |\n| miao_probability |    0.5     |                   \u6dfb\u52a0\u53e3\u7656\u7684\u6982\u7387                   |\n|  miao_position   |    end     | \u6dfb\u52a0\u53e3\u7656\u7684\u4f4d\u7f6e\uff0c\u53ef\u9009start(\u5f00\u5934)\u3001end(\u7ed3\u5c3e)\u3001random(\u53e5\u5b50\u4e2d\u968f\u673a\u4f4d\u7f6e) |\n|    miao_count    |     1      |                  \u6700\u591a\u6dfb\u52a0\u7684\u8bcd\u6570\u91cf                   |\n\n## \ud83d\udc9d \u9e23\u8c22\n\n- [Nonebot](https://github.com/nonebot/nonebot2): \u672c\u9879\u76ee\u7684\u57fa\u7840\uff0c\u975e\u5e38\u597d\u7528\u7684\u804a\u5929\u673a\u5668\u4eba\u6846\u67b6\u3002\n",
    "bugtrack_url": null,
    "license": "AGPL",
    "summary": "Nonebot2 plugin to make your bot talk weird.",
    "version": "1.0.0",
    "split_keywords": [
        "nonebot2"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7719a24648fddc883223ac9958838f7eb3e227cbece0e15cd75a37295155eb4a",
                "md5": "780c73fe7ec9ae806b908529802caf9e",
                "sha256": "3e8fe02c50a43a40e849faa2e74a43c4d8c08637fdd57231052f960fd97b96d4"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_miao-1.0.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "780c73fe7ec9ae806b908529802caf9e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 15046,
            "upload_time": "2023-03-26T14:04:04",
            "upload_time_iso_8601": "2023-03-26T14:04:04.600411Z",
            "url": "https://files.pythonhosted.org/packages/77/19/a24648fddc883223ac9958838f7eb3e227cbece0e15cd75a37295155eb4a/nonebot_plugin_miao-1.0.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dc433353330892ffad08bd36120187f5e58e0671d5ee89cfb421500280f9fcfb",
                "md5": "501b0eeeb0cd39a1b933782815a19800",
                "sha256": "ac55ce7abe4d239b801f1b9c547e8984f3c72d88cf94370e80bb6c513489c3df"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_miao-1.0.0.tar.gz",
            "has_sig": false,
            "md5_digest": "501b0eeeb0cd39a1b933782815a19800",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 14518,
            "upload_time": "2023-03-26T14:04:06",
            "upload_time_iso_8601": "2023-03-26T14:04:06.343613Z",
            "url": "https://files.pythonhosted.org/packages/dc/43/3353330892ffad08bd36120187f5e58e0671d5ee89cfb421500280f9fcfb/nonebot_plugin_miao-1.0.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-26 14:04:06",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "CMHopeSunshine",
    "github_project": "nonebot-plugin-miao",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nonebot-plugin-miao"
}
        
Elapsed time: 1.20886s