📖 介绍
通过指令获取当前群聊近期讨论内容的总结,或者将群聊加入推送列表定时进行话题总结。
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-whats-talk-gemini
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-whats-talk-gemini
pdm
pdm add nonebot-plugin-whats-talk-gemini
poetry
poetry add nonebot-plugin-whats-talk-gemini
conda
conda install nonebot-plugin-whats-talk-gemini
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_whats_talk_gemini"]
⚙️ 配置
在 nonebot2 项目的.env文件中添加下表中的必填配置
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| wt_ai_keys | 是 | 无 | Gemini API Key, 可填入多个key, 格式为["xxx","xxx"] |
| wt_base_url | 否 | "https://generativelanguage.googleapis.com/v1beta" | API地址,兼容OpenAI格式, 可填入多个key, 格式为["xxx","xxx"] |
| wt_model | 否 | "gemini-flash-latest" | 总结使用的AI模型 |
| wt_thinking | 否 | None | 是否开启思考模式,None=不传递,True=开启,False=显式关闭 |
| wt_proxy | 否 | 无 | 访问Gemini使用的代理,格式为"http://<ip>:<port>" |
| wt_history_lens | 否 | 1000 | 总结使用的群聊条数 |
| wt_max_tokens | 否 | 2000 | 总结输出的最大字数 |
| wt_push_cron | 否 | "0 14,22 * * *" | 定时推送的时间,只支持Cron表达式 |
| wt_group_list | 否 | 无 | 定时推送的群列表 |
🕹️ 使用
指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
| 他们在聊什么/群友在聊什么 | 群员 | 否 | 群聊 | 获取当前群聊的讨论总结 |
🎉 鸣谢
同时感谢以下开发者对本插件作出的贡献:
Release files for nonebot-plugin-whats-talk-gemini 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nonebot_plugin_whats_talk_gemini-0.0.7.tar.gz | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_plugin_whats_talk_gemini-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.6 kB
Release files / nonebot_plugin_whats_talk_gemini-0.0.7.tar.gz
| Download URL | nonebot_plugin_whats_talk_gemini-0.0.7.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6fe204cc9393998e1be2d57284f64dc68e01d46b3773590fb7a7128e4ced66d9
|
|
BLAKE2b-256 checksum How to use checksums |
0371bf019027585587aef7f045eca9040db818886aa2c47f2ddc7962f5010a09
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency logRelease files / nonebot_plugin_whats_talk_gemini-0.0.7-py3-none-any.whl
| Download URL | nonebot_plugin_whats_talk_gemini-0.0.7-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1fb99a7504891c51e557c9490869836841dbd6d444d5f79eb2737684c23d3976
|
|
BLAKE2b-256 checksum How to use checksums |
e31f5a6bf0a8198ddb12d31394aee9d4dae620ef0b6dd65994d946b2409e2abc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Apr 29, 2026.
Transparency log