nonebot-plugin-whats-talk-gemini


Namenonebot-plugin-whats-talk-gemini JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/hakunomiko/nonebot-plugin-whats-talk-gemini
Summary分析群聊记录,生成近期讨论话题的总结。
upload_time2025-01-01 07:52:26
maintainerNone
docs_urlNone
authorhakunomiko
requires_python<4.0,>=3.9
licenseNone
keywords nonebot nonebot2 plugin
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-whats-talk-gemini

_✨ 分析群聊记录,生成近期讨论话题的总结。 ✨_


<a href="https://github.com/hakunomiko/nonebot-plugin-whats-talk-gemini/stargazers">
        <img alt="GitHub stars" src="https://img.shields.io/github/stars/hakunomiko/nonebot-plugin-whats-talk-gemini" alt="stars">
</a>
<a href="./LICENSE">
    <img src="https://img.shields.io/github/license/hakunomiko/nonebot-plugin-whats-talk-gemini.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-whats-talk-gemini">
    <img src="https://img.shields.io/pypi/v/nonebot-plugin-whats-talk-gemini.svg" alt="pypi">
</a>
<img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">

</div>

## 📖 介绍

通过指令获取当前群聊近期讨论内容的总结,或者将群聊加入推送列表定时进行话题总结。

## 💿 安装

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

    nb plugin install nonebot-plugin-whats-talk-gemini

</details>

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

<details>
<summary>pip</summary>

    pip install nonebot-plugin-whats-talk-gemini
</details>
<details>
<summary>pdm</summary>

    pdm add nonebot-plugin-whats-talk-gemini
</details>
<details>
<summary>poetry</summary>

    poetry add nonebot-plugin-whats-talk-gemini
</details>
<details>
<summary>conda</summary>

    conda install nonebot-plugin-whats-talk-gemini
</details>

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

    plugins = ["nonebot_plugin_whats_talk_gemini"]

</details>

## ⚙️ 配置

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

| 配置项 | 必填 | 默认值 | 说明 |
|:-----:|:----:|:----:|:----:|
| wt_ai_keys | 是 | 无 | [Gemini API Key](https://aistudio.google.com/app/apikey?), 可填入多个key, 格式为`["xxx","xxx"]` |
| wt_model | 否 | "gemini-2.0-flash-exp" | 总结使用的AI模型 |
| wt_proxy | 否 | 无 | 访问Gemini使用的代理,格式为`"http://<ip>:<port>"` |
| wt_history_lens | 否 | 1000 | 总结使用的群聊条数 |
| wt_push_cron | 否 | "0 14,22 * * *" | 定时推送的时间,只支持Cron表达式 |
| wt_group_list | 否 | 无 | 定时推送的群列表 |

## 🕹️ 使用
### 指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|:-----:|:----:|:----:|:----:|:----:|
| 他们在聊什么/群友在聊什么 | 群员 | 否 | 群聊 | 获取当前群聊的讨论总结 |

## 🎉 鸣谢
感谢[大橘](https://github.com/zhiyu1998)提供的prompt以及[插件灵感](https://github.com/zhiyu1998/rconsole-plugin-complementary-set/blob/master/whats-talk-gemini.js)。

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/hakunomiko/nonebot-plugin-whats-talk-gemini",
    "name": "nonebot-plugin-whats-talk-gemini",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.9",
    "maintainer_email": null,
    "keywords": "nonebot, nonebot2, plugin",
    "author": "hakunomiko",
    "author_email": "48401273+hakunomiko@users.noreply.github.com",
    "download_url": "https://files.pythonhosted.org/packages/12/69/37a3f307e659ecb3bb10eb3912668720375dc8955af7461d0d19e697c845/nonebot_plugin_whats_talk_gemini-0.0.3.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-whats-talk-gemini\n\n_\u2728 \u5206\u6790\u7fa4\u804a\u8bb0\u5f55\uff0c\u751f\u6210\u8fd1\u671f\u8ba8\u8bba\u8bdd\u9898\u7684\u603b\u7ed3\u3002 \u2728_\n\n\n<a href=\"https://github.com/hakunomiko/nonebot-plugin-whats-talk-gemini/stargazers\">\n        <img alt=\"GitHub stars\" src=\"https://img.shields.io/github/stars/hakunomiko/nonebot-plugin-whats-talk-gemini\" alt=\"stars\">\n</a>\n<a href=\"./LICENSE\">\n    <img src=\"https://img.shields.io/github/license/hakunomiko/nonebot-plugin-whats-talk-gemini.svg\" alt=\"license\">\n</a>\n<a href=\"https://pypi.python.org/pypi/nonebot-plugin-whats-talk-gemini\">\n    <img src=\"https://img.shields.io/pypi/v/nonebot-plugin-whats-talk-gemini.svg\" alt=\"pypi\">\n</a>\n<img src=\"https://img.shields.io/badge/python-3.9+-blue.svg\" alt=\"python\">\n\n</div>\n\n## \ud83d\udcd6 \u4ecb\u7ecd\n\n\u901a\u8fc7\u6307\u4ee4\u83b7\u53d6\u5f53\u524d\u7fa4\u804a\u8fd1\u671f\u8ba8\u8bba\u5185\u5bb9\u7684\u603b\u7ed3\uff0c\u6216\u8005\u5c06\u7fa4\u804a\u52a0\u5165\u63a8\u9001\u5217\u8868\u5b9a\u65f6\u8fdb\u884c\u8bdd\u9898\u603b\u7ed3\u3002\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-whats-talk-gemini\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-whats-talk-gemini\n</details>\n<details>\n<summary>pdm</summary>\n\n    pdm add nonebot-plugin-whats-talk-gemini\n</details>\n<details>\n<summary>poetry</summary>\n\n    poetry add nonebot-plugin-whats-talk-gemini\n</details>\n<details>\n<summary>conda</summary>\n\n    conda install nonebot-plugin-whats-talk-gemini\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_whats_talk_gemini\"]\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| wt_ai_keys | \u662f | \u65e0 | [Gemini API Key](https://aistudio.google.com/app/apikey?), \u53ef\u586b\u5165\u591a\u4e2akey, \u683c\u5f0f\u4e3a`[\"xxx\",\"xxx\"]` |\n| wt_model | \u5426 | \"gemini-2.0-flash-exp\" | \u603b\u7ed3\u4f7f\u7528\u7684AI\u6a21\u578b |\n| wt_proxy | \u5426 | \u65e0 | \u8bbf\u95eeGemini\u4f7f\u7528\u7684\u4ee3\u7406\uff0c\u683c\u5f0f\u4e3a`\"http://<ip>:<port>\"` |\n| wt_history_lens | \u5426 | 1000 | \u603b\u7ed3\u4f7f\u7528\u7684\u7fa4\u804a\u6761\u6570 |\n| wt_push_cron | \u5426 | \"0 14,22 * * *\" | \u5b9a\u65f6\u63a8\u9001\u7684\u65f6\u95f4\uff0c\u53ea\u652f\u6301Cron\u8868\u8fbe\u5f0f |\n| wt_group_list | \u5426 | \u65e0 | \u5b9a\u65f6\u63a8\u9001\u7684\u7fa4\u5217\u8868 |\n\n## \ud83d\udd79\ufe0f \u4f7f\u7528\n### \u6307\u4ee4\u8868\n| \u6307\u4ee4 | \u6743\u9650 | \u9700\u8981@ | \u8303\u56f4 | \u8bf4\u660e |\n|:-----:|:----:|:----:|:----:|:----:|\n| \u4ed6\u4eec\u5728\u804a\u4ec0\u4e48/\u7fa4\u53cb\u5728\u804a\u4ec0\u4e48 | \u7fa4\u5458 | \u5426 | \u7fa4\u804a | \u83b7\u53d6\u5f53\u524d\u7fa4\u804a\u7684\u8ba8\u8bba\u603b\u7ed3 |\n\n## \ud83c\udf89 \u9e23\u8c22\n\u611f\u8c22[\u5927\u6a58](https://github.com/zhiyu1998)\u63d0\u4f9b\u7684prompt\u4ee5\u53ca[\u63d2\u4ef6\u7075\u611f](https://github.com/zhiyu1998/rconsole-plugin-complementary-set/blob/master/whats-talk-gemini.js)\u3002\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "\u5206\u6790\u7fa4\u804a\u8bb0\u5f55\uff0c\u751f\u6210\u8fd1\u671f\u8ba8\u8bba\u8bdd\u9898\u7684\u603b\u7ed3\u3002",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/hakunomiko/nonebot-plugin-whats-talk-gemini",
        "Repository": "https://github.com/hakunomiko/nonebot-plugin-whats-talk-gemini"
    },
    "split_keywords": [
        "nonebot",
        " nonebot2",
        " plugin"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "982ab0a2357032d129b525e9ee98bb7c2229275dc1b1c13a114267127d8a867f",
                "md5": "c690ff9809a1b13898868205d70ea5d1",
                "sha256": "24855706ac5221157060f31d51d99aac6cfed806497c8c25ec854e7c146ed6f3"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_whats_talk_gemini-0.0.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "c690ff9809a1b13898868205d70ea5d1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.9",
            "size": 8637,
            "upload_time": "2025-01-01T07:52:23",
            "upload_time_iso_8601": "2025-01-01T07:52:23.536682Z",
            "url": "https://files.pythonhosted.org/packages/98/2a/b0a2357032d129b525e9ee98bb7c2229275dc1b1c13a114267127d8a867f/nonebot_plugin_whats_talk_gemini-0.0.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "126937a3f307e659ecb3bb10eb3912668720375dc8955af7461d0d19e697c845",
                "md5": "90bf3cd3c24e713bac2f4e1e595ca957",
                "sha256": "694c86d54116d88fbadd7b717e876b7667e2603e812d810370d0aaa6748c7ca4"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_whats_talk_gemini-0.0.3.tar.gz",
            "has_sig": false,
            "md5_digest": "90bf3cd3c24e713bac2f4e1e595ca957",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.9",
            "size": 7641,
            "upload_time": "2025-01-01T07:52:26",
            "upload_time_iso_8601": "2025-01-01T07:52:26.253752Z",
            "url": "https://files.pythonhosted.org/packages/12/69/37a3f307e659ecb3bb10eb3912668720375dc8955af7461d0d19e697c845/nonebot_plugin_whats_talk_gemini-0.0.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-01-01 07:52:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "hakunomiko",
    "github_project": "nonebot-plugin-whats-talk-gemini",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nonebot-plugin-whats-talk-gemini"
}
        
Elapsed time: 0.41787s