nonebot-plugin-aiqqbot
✨ QQ中可以读图的聊天的机器人 ✨
📖 介绍
由于手机qq发送图片时不可携带消息,所以这里可以先发送图片,AI处理后回复“已收到”,然后可以继续聊天对话。
💿 安装
使用 nb-cli 安装(未实现)
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-aiqqbot
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-aiqqbot
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入(也记得在bot.py中加载pyproject.toml文件)
plugins = ["nonebot_plugin_aiqqbot"]
经测试,httpx版本==0.27.x时可正常访问图片,==0.28.x时不可正常访问
⚙️ 配置
使用localstore插件查看config path并创建aiqqbot_plugin_config.json文件填写下表中的必填配置
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| OPENAI_API_KEY | 是 | 无 | API密钥 |
| OPENAI_ENDPOINT | 是 | 无 | API服务端点 |
| GPT_MODEL | 是 | 无 | 调用的GPT模型 |
| MAX_TOKENS | 否 | 2048 | 回复的最大token |
{
"openai_api_key": "xxxx",
"openai_endpoint": "https://xxxxxx",
"gpt_model": "gpt-4o-2024-11-20",
"max_tokens": 2048
}
🎉 使用
指令表
| 指令 | 需要@ | 范围 | 说明 |
|---|---|---|---|
| 重置会话 | 是 | 群聊/私聊 | 清楚会话记忆,恢复初始预设 |
| 加载预设 | 是 | 群聊/私聊 | 加载设定,目前有catgirl,nvyou, kua,default,可自行更改 |
请使用前查询localstore并在data.dir建立presets文件夹,必须有default预设!!!重置会话会加载default预设。 其他预设来源:
- 从github仓库下载
- 自行创建预设名
Metadata
Release files for nonebot-plugin-aiqqbot 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_aiqqbot-0.1.10.tar.gz | 11.2 kB | Without provenance | Details for nonebot_plugin_aiqqbot-0.1.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_aiqqbot-0.1.10-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_aiqqbot-0.1.10-py3-none-any.whl |
Total release size: 24.2 kB
Release files / nonebot_plugin_aiqqbot-0.1.10.tar.gz
| Download URL | nonebot_plugin_aiqqbot-0.1.10.tar.gz |
|---|---|
| Size | 11.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8fb2341d007be0b3535bb149104a29f30510d7afc7cb4fe6ed655cd6a1754e2f
|
|
BLAKE2b-256 checksum How to use checksums |
4c4d3e16da5a4dfc1314496460bfa1b8f3b4a16721f0ef2dba21c14394dfef70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.6 Linux/5.15.0-105-generic
|
Release files / nonebot_plugin_aiqqbot-0.1.10-py3-none-any.whl
| Download URL | nonebot_plugin_aiqqbot-0.1.10-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
59de448fa40b907c361c671ff8381f7d602f15a74fe6fc053e1fb8469319368d
|
|
BLAKE2b-256 checksum How to use checksums |
b2af7e224674e0763632373a46430961e11a47d1a49b0bfcea926cacfc4f6f5e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.2 CPython/3.11.6 Linux/5.15.0-105-generic
|
Security for nonebot-plugin-aiqqbot 0.1.10
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.