Skip to main content
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存储,有的图片消息可能会过期可以启用该项,但是可能会造成数据库内容冗余
QUICKREPLY__ENABLE_PERMISSION_CHECK 否 True 是否启用权限检查,启用该选项后,超管/管理创建或覆盖的回复不可被普通成员覆盖

🎉 使用

指令表

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

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

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

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

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

🎨 效果图

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

Metadata

Release files for nonebot-plugin-quickreply 0.1.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-quickreply 0.1.16
File Size Uploaded Provenance Actions
nonebot_plugin_quickreply-0.1.16.tar.gz 11.0 kB Without provenance Details for nonebot_plugin_quickreply-0.1.16.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-quickreply 0.1.16
File Interpreter ABI Platform Actions
nonebot_plugin_quickreply-0.1.16-py3-none-any.whl Python 3 none any Details for nonebot_plugin_quickreply-0.1.16-py3-none-any.whl

Total release size: 23.8 kB

Release files / nonebot_plugin_quickreply-0.1.16.tar.gz

Download URL nonebot_plugin_quickreply-0.1.16.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
cd7a292d58eae16f0e573bbfed6f68d21ef8a3571969e86e301d6dff5d37b616
BLAKE2b-256 checksum
How to use checksums
cb887ee2b90e4278914efe5f85de01b42d1f6ee0ef5c526262f1442e7c748aca
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / nonebot_plugin_quickreply-0.1.16-py3-none-any.whl

Download URL nonebot_plugin_quickreply-0.1.16-py3-none-any.whl
Size 12.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
16922be0f7bccafe718b89e0e02c998b50ce0a4b082c42726ebc942a14fdc6eb
BLAKE2b-256 checksum
How to use checksums
bcc027fa95bf8eaf463a7bdeb9dbc4f566c4f350f3832c69346bfc0817e74318
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for nonebot-plugin-quickreply 0.1.16

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page