nonebot-plugin-envious


Namenonebot-plugin-envious JSON
Version 0.0.5 PyPI version JSON
download
home_pagehttps://github.com/fllesser/nonebot-plugin-envious
Summary羡慕 koishi
upload_time2025-01-05 09:12:38
maintainerNone
docs_urlNone
authorfllesser
requires_python<4.0,>=3.10
licenseNone
keywords nonebot nonebot2 envious koishi 羡慕
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="./.docs/NoneBotPlugin.svg" width="300" alt="logo"></a>
</div>

<div align="center">

# nonebot-plugin-envious

_✨ 羡慕 Koishi ✨_


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

</div>

</details>


## 📖 介绍

羡慕 koishi (`3´)

1. 群聊概率(默认0.7)复读羡慕
2. 触发羡慕会收纳关键词,可配置关键词的最大字数(默认10),超过该值时,取其中的英文数字组合(超过最大字数忽略)
3. 为了防止刷屏,不会连续羡慕同一关键词

## 💿 安装

<details open>
<summary>使用 nb-cli 安装</summary>
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装

    nb plugin install nonebot-plugin-envious --upgrade
    
使用 pypi 源安装/更新

    nb plugin install nonebot-plugin-envious --upgrade -i https://pypi.org/simple
    
</details>

<details>
<summary>使用包管理器安装</summary>
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令

<details>
<summary>pip</summary>

    pip install nonebot-plugin-envious
</details>
<details>
<summary>pdm</summary>

    pdm add nonebot-plugin-envious
</details>
<details>
<summary>poetry</summary>

    poetry add nonebot-plugin-envious
</details>
<details>
<summary>conda</summary>

    conda install nonebot-plugin-envious
</details>

打开 nonebot2 项目根目录下的 `pyproject.toml` 文件, 在 `[tool.nonebot]` 部分追加写入

    plugins = ["nonebot_plugin_envious"]

</details>

## ⚙️ 配置

在 nonebot2 项目的`.env`文件中添加下表中的必填配置

| 配置项 | 必填 | 默认值 | 说明 |
|:-----:|:----:|:----:|:----:|
| envious_max_len | 否 | 10 | 收纳羡慕关键词的最大字符串长度 |
| envious_probability | 否 | 0.7 | 羡慕概率,只可填 0 ~ 1.0 之间的值|
| envious_list | 否 | ["koishi"] | 默认羡慕列表 |

## 🎉 使用
### 指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|:-----:|:----:|:----:|:----:|:----:|
| 羡慕 | 群员 | 否 | 群聊 | 顾名思义 |
| 当前羡慕 | 群员 | 否 | 群聊 | 顾名思义 |
| 清空羡慕 | 群员 | 否 | 群聊 | 顾名思义 |


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/fllesser/nonebot-plugin-envious",
    "name": "nonebot-plugin-envious",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": "nonebot, nonebot2, envious, koishi, \u7fa1\u6155",
    "author": "fllesser",
    "author_email": "fllessive@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/7c/7e/a3d0eb6faa8ae80d44017afa5397cc807b2c6689dd1bd0cfb610db8a82ec/nonebot_plugin_envious-0.0.5.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n    <a href=\"https://v2.nonebot.dev/store\">\n    <img src=\"./.docs/NoneBotPlugin.svg\" width=\"300\" alt=\"logo\"></a>\n</div>\n\n<div align=\"center\">\n\n# nonebot-plugin-envious\n\n_\u2728 \u7fa1\u6155 Koishi \u2728_\n\n\n<a href=\"./LICENSE\">\n    <img src=\"https://img.shields.io/github/license/fllesser/nonebot-plugin-envious.svg\" alt=\"license\">\n</a>\n<a href=\"https://pypi.python.org/pypi/nonebot-plugin-envious\">\n    <img src=\"https://img.shields.io/pypi/v/nonebot-plugin-envious.svg\" alt=\"pypi\">\n</a>\n<img src=\"https://img.shields.io/badge/python-3.10+-blue.svg\" alt=\"python\">\n\n</div>\n\n</details>\n\n\n## \ud83d\udcd6 \u4ecb\u7ecd\n\n\u7fa1\u6155 koishi (`3\u00b4)\n\n1. \u7fa4\u804a\u6982\u7387(\u9ed8\u8ba40.7)\u590d\u8bfb\u7fa1\u6155\n2. \u89e6\u53d1\u7fa1\u6155\u4f1a\u6536\u7eb3\u5173\u952e\u8bcd\uff0c\u53ef\u914d\u7f6e\u5173\u952e\u8bcd\u7684\u6700\u5927\u5b57\u6570(\u9ed8\u8ba410)\uff0c\u8d85\u8fc7\u8be5\u503c\u65f6\uff0c\u53d6\u5176\u4e2d\u7684\u82f1\u6587\u6570\u5b57\u7ec4\u5408(\u8d85\u8fc7\u6700\u5927\u5b57\u6570\u5ffd\u7565)\n3. \u4e3a\u4e86\u9632\u6b62\u5237\u5c4f\uff0c\u4e0d\u4f1a\u8fde\u7eed\u7fa1\u6155\u540c\u4e00\u5173\u952e\u8bcd\n\n## \ud83d\udcbf \u5b89\u88c5\n\n<details open>\n<summary>\u4f7f\u7528 nb-cli \u5b89\u88c5</summary>\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-envious --upgrade\n    \n\u4f7f\u7528 pypi \u6e90\u5b89\u88c5/\u66f4\u65b0\n\n    nb plugin install nonebot-plugin-envious --upgrade -i https://pypi.org/simple\n    \n</details>\n\n<details>\n<summary>\u4f7f\u7528\u5305\u7ba1\u7406\u5668\u5b89\u88c5</summary>\n\u5728 nonebot2 \u9879\u76ee\u7684\u63d2\u4ef6\u76ee\u5f55\u4e0b, \u6253\u5f00\u547d\u4ee4\u884c, \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-envious\n</details>\n<details>\n<summary>pdm</summary>\n\n    pdm add nonebot-plugin-envious\n</details>\n<details>\n<summary>poetry</summary>\n\n    poetry add nonebot-plugin-envious\n</details>\n<details>\n<summary>conda</summary>\n\n    conda install nonebot-plugin-envious\n</details>\n\n\u6253\u5f00 nonebot2 \u9879\u76ee\u6839\u76ee\u5f55\u4e0b\u7684 `pyproject.toml` \u6587\u4ef6, \u5728 `[tool.nonebot]` \u90e8\u5206\u8ffd\u52a0\u5199\u5165\n\n    plugins = [\"nonebot_plugin_envious\"]\n\n</details>\n\n## \u2699\ufe0f \u914d\u7f6e\n\n\u5728 nonebot2 \u9879\u76ee\u7684`.env`\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4e0b\u8868\u4e2d\u7684\u5fc5\u586b\u914d\u7f6e\n\n| \u914d\u7f6e\u9879 | \u5fc5\u586b | \u9ed8\u8ba4\u503c | \u8bf4\u660e |\n|:-----:|:----:|:----:|:----:|\n| envious_max_len | \u5426 | 10 | \u6536\u7eb3\u7fa1\u6155\u5173\u952e\u8bcd\u7684\u6700\u5927\u5b57\u7b26\u4e32\u957f\u5ea6 |\n| envious_probability | \u5426 | 0.7 | \u7fa1\u6155\u6982\u7387\uff0c\u53ea\u53ef\u586b 0 ~ 1.0 \u4e4b\u95f4\u7684\u503c|\n| envious_list | \u5426 | [\"koishi\"] | \u9ed8\u8ba4\u7fa1\u6155\u5217\u8868 |\n\n## \ud83c\udf89 \u4f7f\u7528\n### \u6307\u4ee4\u8868\n| \u6307\u4ee4 | \u6743\u9650 | \u9700\u8981@ | \u8303\u56f4 | \u8bf4\u660e |\n|:-----:|:----:|:----:|:----:|:----:|\n| \u7fa1\u6155 | \u7fa4\u5458 | \u5426 | \u7fa4\u804a | \u987e\u540d\u601d\u4e49 |\n| \u5f53\u524d\u7fa1\u6155 | \u7fa4\u5458 | \u5426 | \u7fa4\u804a | \u987e\u540d\u601d\u4e49 |\n| \u6e05\u7a7a\u7fa1\u6155 | \u7fa4\u5458 | \u5426 | \u7fa4\u804a | \u987e\u540d\u601d\u4e49 |\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "\u7fa1\u6155 koishi",
    "version": "0.0.5",
    "project_urls": {
        "Homepage": "https://github.com/fllesser/nonebot-plugin-envious",
        "Repository": "https://github.com/fllesser/nonebot-plugin-envious"
    },
    "split_keywords": [
        "nonebot",
        " nonebot2",
        " envious",
        " koishi",
        " \u7fa1\u6155"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "26d5b2418fc0ffd9bd2a4ea8410a07add1f4e8739be910882a1ed7d7a6fb3940",
                "md5": "85b3e86b875be8f9deeda524d0cc09f1",
                "sha256": "e6e8dc7cddc665afd7f091f9e812e9ca7a3e797933132978266cae49f032180b"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_envious-0.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "85b3e86b875be8f9deeda524d0cc09f1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 5785,
            "upload_time": "2025-01-05T09:12:37",
            "upload_time_iso_8601": "2025-01-05T09:12:37.211189Z",
            "url": "https://files.pythonhosted.org/packages/26/d5/b2418fc0ffd9bd2a4ea8410a07add1f4e8739be910882a1ed7d7a6fb3940/nonebot_plugin_envious-0.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7c7ea3d0eb6faa8ae80d44017afa5397cc807b2c6689dd1bd0cfb610db8a82ec",
                "md5": "a417218da7c6899269768e885b0b57dc",
                "sha256": "e4a847efa4eca1d65e3209fbb12b5d2db990e556c92797f546a72bdf5641da44"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_envious-0.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "a417218da7c6899269768e885b0b57dc",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 4510,
            "upload_time": "2025-01-05T09:12:38",
            "upload_time_iso_8601": "2025-01-05T09:12:38.201253Z",
            "url": "https://files.pythonhosted.org/packages/7c/7e/a3d0eb6faa8ae80d44017afa5397cc807b2c6689dd1bd0cfb610db8a82ec/nonebot_plugin_envious-0.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-05 09:12:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fllesser",
    "github_project": "nonebot-plugin-envious",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nonebot-plugin-envious"
}
        
Elapsed time: 4.80742s