A NoneBot plugin for AI bot
Project description
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] 部分追加写入
plugins = ["nonebot_plugin_aiqqbot"]
⚙️ 配置
在 nonebot2 项目的.env.prod文件中添加下表中的必填配置
| 配置项 | 必填 | 默认值 | 说明 |
|---|---|---|---|
| OPENAI_API_KEY | 是 | 无 | API密钥 |
| OPENAI_ENDPOINT | 是 | 无 | API服务端点 |
| GPT_MODEL | 是 | 无 | 调用的GPT模型 |
| MAX_TOKENS | 否 | 2048 | 回复的最大token |
| PRESETS_LOCATION | 是 | ./presets/ | 请在bot.py目录下创建该文件夹 |
🎉 使用
指令表
| 指令 | 需要@ | 范围 | 说明 |
|---|---|---|---|
| 重置会话 | 是 | 群聊/私聊 | 清楚会话记忆,恢复初始预设 |
| 加载预设 | 是 | 群聊/私聊 | 加载设定,目前有猫娘,女友,夸夸,默认 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_aiqqbot-0.1.3.tar.gz.
File metadata
- Download URL: nonebot_plugin_aiqqbot-0.1.3.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.6 Linux/5.15.0-105-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
433861d461c34440d2710d47d1dd2eb5a9ed2003a65045d704e54a01599d3aa1
|
|
| MD5 |
567f264c1840ce518ef91e058fc8201d
|
|
| BLAKE2b-256 |
e0a0dbca60634b576928feb62eb6cb852554921125e633b711e2df1c2f802ac6
|
File details
Details for the file nonebot_plugin_aiqqbot-0.1.3-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_aiqqbot-0.1.3-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.11.6 Linux/5.15.0-105-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ece68a87ca39cd50a7e719923c92daf79d6fc9a78167dd4c86024288e1a8438
|
|
| MD5 |
a8e10c6231127a23d949fe43fa4e593b
|
|
| BLAKE2b-256 |
d3da12d332966896c163c4398f6d81c3a031c181405f0997f2870b53ddcee1d4
|