🛒 回复市场
点击进入
我们的回复配置市场和文档站一起上线啦~
在这里,你可以分享你的回复配置,也可以找到其他人分享的回复配置,欢迎各位使用!
如果大家需要,我可以做一个直接使用指令下载安装市场中回复配置的功能 qwq
想要的话就提个 issue 吧,没人想要的话就不做了(
📖 介绍
一个简单的关键词自动回复插件,支持 模糊匹配、完全匹配 与 正则匹配,配置文件高度自定义
因为商店里没有我想要的那种关键词回复,所以我就自己写了一个
这个插件是从 ShigureBot 那边拆出来的,我重写了一下做成了单品插件
插件并没有经过深度测试,如果在使用中遇到任何问题请一定一定要过来发 issue 向我汇报,我会尽快解决
如果有功能请求也可以直接发 issue 来 dd 我
💿 安装
[推荐] 使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-autoreply
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-autoreply
pdm
pdm add nonebot-plugin-autoreply
poetry
poetry add nonebot-plugin-autoreply
conda
conda install nonebot-plugin-autoreply
打开 nonebot2 项目的 bot.py 文件, 在其中写入
nonebot.load_plugin('nonebot_plugin_autoreply')
⚙️ 配置
回复配置
请访问 配置文档
常规配置
下方的配置皆为可选,如果不需要可以忽略不配置
配置项请参考下面的文本
# matcher 是否阻断消息,默认 False
AUTOREPLY_BLOCK=False
# matcher 优先级
AUTOREPLY_PRIORITY=99
💬 指令
重载自动回复
此命令用于重载自动回复配置,仅 SUPERUSER 可以执行
📞 联系
QQ:3076823485
Telegram:@lgc2333
吹水群:1105946125
邮箱:lgc2333@126.com
💰 赞助
感谢大家的赞助!你们的赞助将是我继续创作的动力!
📝 更新日志
0.2.13
- 当
image或record的file参数为本地路径且路径为文件夹时,将会随机选取文件夹中文件发送(包括子文件夹)
0.2.12
- 适配 Pydantic V1 & V2
- 修复 #17
0.2.11
- 🎉 NoneBot 2.0 🚀
0.2.10
- 新增了
start、end匹配方式 - 添加变量
message、plaintext - 可以使用变量获取
regex类型的匹配结果
0.2.9
- 当回复中含有
image/record类型的消息段(无论是normal还是array类型的消息),且其file属性为file:///开头时,插件将会读取该路径文件并转为base64发送 multi类型消息的delay支持了整数型值,会被解析为固定时长延时multi类型新增shuffle属性,支持打乱消息顺序发送
0.2.8
- 支持解析
yaml格式配置,会将.yml和.yaml的文件作为yaml格式配置加载 - 现在会寻找
data/autoreply文件夹下所有子文件夹中的配置并加载 - 新增变量
{at}、{reply} - 换用
MessageTemplate格式化变量;由于这玩意不支持{{及}}转义,所以加入了变量{bs}和{be}
0.2.7
- 新增了配置的
block和priority属性 - 新增
type为poke(双击头像,戳一戳) 的match - 新增了
match的possibility属性 - 新增了
{target_id}与{display_name}变量
0.2.6
- 回复中可以使用变量了
- 新增配置市场
0.2.5
- 可以加载多个回复 Json
0.2.4
- 让字符串可以作为默认属性的
match使用 - 让
@开头的字符串reply解析为plain形式的回复
0.2.3
- 修复一处 py 3.8 无法使用的类型注解
0.2.2
- 修复群聊和用户过滤器无法正常使用的问题
0.2.1
- 修复多
match无法使用的问题
0.2.0
- 使用
rule匹配消息,避免日志刷屏 - 支持一次回复多条消息,调整配置文件结构
- 增加了两个
.env配置项 - 增加热重载配置文件的指令
Metadata
Release files for nonebot-plugin-autoreply 0.2.13
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_autoreply-0.2.13.tar.gz | 13.0 kB | Without provenance | Details for nonebot_plugin_autoreply-0.2.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_autoreply-0.2.13-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_autoreply-0.2.13-py3-none-any.whl |
Total release size: 25.4 kB
Release files / nonebot_plugin_autoreply-0.2.13.tar.gz
| Download URL | nonebot_plugin_autoreply-0.2.13.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b78ad2307b7e483e4ae5c3bd0813dbc47a1ddfbe29f361938e1da5d4582af599
|
|
BLAKE2b-256 checksum How to use checksums |
e9bef022f177bf73b43c282926fa70a44486556feee159337f2a28520433eb5b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.20.1 CPython/3.10.12 Linux/6.5.0-1025-azure
|
Release files / nonebot_plugin_autoreply-0.2.13-py3-none-any.whl
| Download URL | nonebot_plugin_autoreply-0.2.13-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
58b72158caf6887e66ba88fcbfe3e4fb4b5ea4b4a8e5c9a9ba61b356b203ea78
|
|
BLAKE2b-256 checksum How to use checksums |
25e26157770aa7fc4900f2a8a1b323295da7ccf0d15573d53ef36168d965297d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.20.1 CPython/3.10.12 Linux/6.5.0-1025-azure
|
Security for nonebot-plugin-autoreply 0.2.13
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.