<div align="center">
<a href="https://v2.nonebot.dev/store">
<img src="https://raw.githubusercontent.com/fllesser/nonebot-plugin-template/refs/heads/resource/.docs/NoneBotPlugin.svg" width="310" alt="logo"></a>
## ✨ nonebot-plugin-enviou ✨
<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|3.11|3.12|3.13-blue.svg" alt="python">
<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/astral-sh/uv">
<img src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json" alt="uv">
</a>
</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>conda</summary>
uv add nonebot-plugin-envious
</details>
<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>
打开 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": null,
"name": "nonebot-plugin-envious",
"maintainer": null,
"docs_url": null,
"requires_python": "<3.14,>=3.10",
"maintainer_email": null,
"keywords": "nonebot, nonebot2, envious, koishi, \u7fa1\u6155",
"author": null,
"author_email": "fllesser <fllessive@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/66/b3/37150f0de7c1e899049e7610c125ddcd4a2d5d213f57bec0829a2c7d2bc4/nonebot_plugin_envious-0.1.3.tar.gz",
"platform": null,
"description": "<div align=\"center\">\n <a href=\"https://v2.nonebot.dev/store\">\n <img src=\"https://raw.githubusercontent.com/fllesser/nonebot-plugin-template/refs/heads/resource/.docs/NoneBotPlugin.svg\" width=\"310\" alt=\"logo\"></a>\n\n## \u2728 nonebot-plugin-enviou \u2728\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|3.11|3.12|3.13-blue.svg\" alt=\"python\">\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/astral-sh/uv\">\n <img src=\"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/uv/main/assets/badge/v0.json\" alt=\"uv\">\n</a>\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>conda</summary>\n\n uv add nonebot-plugin-envious\n</details>\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\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",
"bugtrack_url": null,
"license": null,
"summary": "\u7fa1\u6155 koishi",
"version": "0.1.3",
"project_urls": {
"Repository": "https://github.com/fllesser/nonebot-plugin-envious",
"Tracker": "https://github.com/fllesser/nonebot-plugin-envious/issues"
},
"split_keywords": [
"nonebot",
" nonebot2",
" envious",
" koishi",
" \u7fa1\u6155"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "6dfb5e967914acc1aaf6ea3f0a74ba5999272a4d2ac2aad150eab3beb878a9f0",
"md5": "4f8552f2eb34b0c2abd57b8903d2fcb1",
"sha256": "05ce3e3c524f8856808847869d230c50c04a9b13a8035bf43989feedf4df73e6"
},
"downloads": -1,
"filename": "nonebot_plugin_envious-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4f8552f2eb34b0c2abd57b8903d2fcb1",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<3.14,>=3.10",
"size": 6845,
"upload_time": "2025-07-17T14:04:41",
"upload_time_iso_8601": "2025-07-17T14:04:41.258052Z",
"url": "https://files.pythonhosted.org/packages/6d/fb/5e967914acc1aaf6ea3f0a74ba5999272a4d2ac2aad150eab3beb878a9f0/nonebot_plugin_envious-0.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "66b337150f0de7c1e899049e7610c125ddcd4a2d5d213f57bec0829a2c7d2bc4",
"md5": "6bf7cf7ff78d02d93049441e08081b70",
"sha256": "03576ff026c739983d4446fa134522e930439b3a6a8414a4a119ce9515eba947"
},
"downloads": -1,
"filename": "nonebot_plugin_envious-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "6bf7cf7ff78d02d93049441e08081b70",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<3.14,>=3.10",
"size": 7596,
"upload_time": "2025-07-17T14:04:42",
"upload_time_iso_8601": "2025-07-17T14:04:42.407521Z",
"url": "https://files.pythonhosted.org/packages/66/b3/37150f0de7c1e899049e7610c125ddcd4a2d5d213f57bec0829a2c7d2bc4/nonebot_plugin_envious-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-17 14:04:42",
"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"
}