Skip to main content

nonebot-plugin-quickreply

Project description

logo

✨ 快捷回复 ✨

LICENSE pypi python uv
ruff pre-commit

📖 介绍

一个功能强大的快捷回复插件,支持分群/私聊、配置化限制最大快捷回复数量。

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-quickreply --upgrade

使用 pypi 源安装

nb plugin install nonebot-plugin-quickreply --upgrade -i "https://pypi.org/simple"

使用清华源安装

nb plugin install nonebot-plugin-quickreply --upgrade -i "https://pypi.tuna.tsinghua.edu.cn/simple"
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
uv
uv add nonebot-plugin-quickreply

安装仓库 main 分支

uv add git+https://github.com/FlanChanXwO/nonebot-plugin-quickreply@main
pdm
pdm add nonebot-plugin-quickreply

安装仓库 main 分支

pdm add git+https://github.com/FlanChanXwO/nonebot-plugin-quickreply@main
poetry
poetry add nonebot-plugin-quickreply

安装仓库 main 分支

poetry add git+https://github.com/FlanChanXwO/nonebot-plugin-quickreply@main

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

plugins = ["nonebot_plugin_quick_reply"]
使用 nbr 安装(使用 uv 管理依赖可用)

nbr 是一个基于 uv 的 nb-cli,可以方便地管理 nonebot2

nbr plugin install nonebot-plugin-quickreply

使用 pypi 源安装

nbr plugin install nonebot-plugin-quickreply -i "https://pypi.org/simple"

使用清华源安装

nbr plugin install nonebot-plugin-quickreply -i "https://pypi.tuna.tsinghua.edu.cn/simple"

⚙️ 配置

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

配置项 必填 默认值 说明
QUICKREPLY__MAX_PER_USER 0 每个用户可创建的总回复数上限,0表示无限制
QUICKREPLY__MAX_PER_CONTEXT 0 每个群聊/私聊上下文中的总回复数上限,0表示无限制
QUICKREPLY__ENABLE_BASE64 True 是否将图片消息转化为base64存储,有的图片消息可能会过期可以启用该项,但是可能会造成数据库内容冗余

🎉 使用

指令表

根据指令作用范围分为 上下文相关全局 两类。

上下文相关指令 (仅在当前群聊/私聊生效)

指令 权限 需要@ 范围 说明
/设置回复 <关键词> <内容> 所有用户 群聊/私聊 添加或覆盖一条回复 (别名: /回复设置)
/删除回复 <关键词> 创建者 群聊/私聊 删除自己创建的回复 (别名: /回复删除, /清除回复)
/回复列表 所有用户 群聊/私聊 查看当前上下文的所有回复 (别名: /本群回复)
/我在本会话的回复列表 所有用户 群聊/私聊 查看自己在本会话创建的回复 (别名: /我在本群的回复列表)
/清空我在本会话的回复 创建者 群聊/私聊 删除自己在本会话创建的所有回复 (别名: /清空我在本群的回复)
/管理删除 <关键词> 群管/超管 群聊 管理员强制删除回复
/清空本会话回复 群管/超管 群聊/私聊 清空本会话的所有快捷回复 (别名: /清空本群回复)

全局指令 (影响您所有的回复)

指令 权限 需要@ 范围 说明
/我的回复列表 所有用户 全局 查看自己创建的所有回复 (别名: /我的快捷回复)
/清空我的回复 所有用户 全局 删除自己创建的所有回复 (别名: /清空我的快捷回复)
/清空用户回复 <@用户或QQ> 超级用户 全局 删除指定用户创建的所有回复 (别名: /清除用户回复)

🎨 效果图

img.png img_1.png img_2.png img_3.png img_4.png img_5.png img_6.png

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_quickreply-0.1.12.tar.gz (10.5 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_quickreply-0.1.12-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_quickreply-0.1.12.tar.gz.

File metadata

  • Download URL: nonebot_plugin_quickreply-0.1.12.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for nonebot_plugin_quickreply-0.1.12.tar.gz
Algorithm Hash digest
SHA256 ab90d0571eaf31c2beca74ddf2ef4a3abfefc3f4a929f22a191215813f9d04dc
MD5 280eac2b2cadcb5687a0b4eb359e11db
BLAKE2b-256 2f1657165a593383357d016a562f17328313e4ab4ea8347b2eeeef83f6cd3996

See more details on using hashes here.

File details

Details for the file nonebot_plugin_quickreply-0.1.12-py3-none-any.whl.

File metadata

  • Download URL: nonebot_plugin_quickreply-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.13 {"installer":{"name":"uv","version":"0.9.13"},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for nonebot_plugin_quickreply-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 0faca11c48aca040e85fa9714ebc97f3d22a78ebe88c80bf39106b2d098aaf00
MD5 f28a83780ec9054125854fc8191f2a6f
BLAKE2b-256 31d0a1d056ed1b86f46446b4a5d3685e7d71dd5d2b9d8d8a97878ba548c3dbcf

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