Skip to main content

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-aibot

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

plugins = ["nonebot_plugin_aibot"]

⚙️ 配置

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

配置项 必填 默认值 说明
openai_api_key API密钥
openai_endpoint API服务端点
GPT_MODEL 调用的GPT模型
MAX_TOKEN 2048 回复的最大token

🎉 使用

指令表

指令 需要@ 范围 说明
重置会话 群聊/私聊 清楚会话记忆,恢复初始预设
加载预设 群聊/私聊 加载设定,目前有猫娘,女友,夸夸

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_aiqqbot-0.1.1.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_aiqqbot-0.1.1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_aiqqbot-0.1.1.tar.gz.

File metadata

  • Download URL: nonebot_plugin_aiqqbot-0.1.1.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

Hashes for nonebot_plugin_aiqqbot-0.1.1.tar.gz
Algorithm Hash digest
SHA256 5566a2ff508e9a722c3372150d673f7db18ca56769fee4da2193612e7a5e90af
MD5 0d4e8e199d4c001da9daaa3161c82755
BLAKE2b-256 6dba57be9880e0f16c68bce85277ca65d3d77411d7d00dab3d91f9a022d2e133

See more details on using hashes here.

File details

Details for the file nonebot_plugin_aiqqbot-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_aiqqbot-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6a5ade606f0c8a16c5cb05006f3d7c3293af335d8177f9911761137e3a4159c8
MD5 32a8724f9d80904295aefbfa965e3a2f
BLAKE2b-256 90aa6a63a6e95a28e562592c95d21f874944fe9764183b964a79825f0b5be4c5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page