📖 介绍
小真寻会替你记住一切的!
- 对 全局/群组/私聊 进行区分
- 支持 精准/模糊/正则/图片 匹配
- 支持 多词条匹配,当同一问题拥有相同回答时,随机返回一个
- 超级管理员/群组管理员 拥有群组内增删改权限
- 超级管理员 拥有全局/群组/私聊增删改权限
💿 安装
pip install nonebot-plugin-zxwb
nb plugin install nonebot-plugin-zxwb
⚙️ 配置
| 配置 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| zxwb_db_url | str | None | 数据库地址 URL,不填入时使用默认为 sqlite |
🎉 帮助
群组管理员
对指定问题的随机回答,对相同问题可以设置多个不同回答
删除词条后每个词条的id可能会变化,请查看后再删除
更推荐使用id方式删除
问题回答支持的类型:at, image
查看词条命令:群聊时为 群词条+全局词条,私聊时为 私聊词条+全局词条
添加词条正则:添加词条(模糊|正则|图片)?问\s*?(\S*\s?\S*)\s*?答\s?(\S*)
正则问可以通过$1类推()捕获的组
注意:可以通过引用来提供回答, 如:(引用)添加词条问你好
指令:
添加词条 ?[模糊|正则|图片]问...答...:添加问答词条,可重复添加相同问题的不同回答
示例:
添加词条问你好答你也好
添加词条图片问答看看涩图
删除词条 ?[问题] ?[序号] ?[回答序号]:删除指定词条指定或全部回答
示例:
删除词条 谁是萝莉 : 删除文字是 谁是萝莉 的词条
删除词条 --id 2 : 删除序号为2的词条
删除词条 谁是萝莉 --aid 2 : 删除 谁是萝莉 词条的第2个回答
删除词条 --id 2 --aid 2 : 删除序号为2词条的第2个回答
修改词条 [替换文字] ?[旧词条文字] ?[序号]:修改词条问题
示例:
修改词条 谁是萝莉 谁是萝莉啊? : 将词条 谁是萝莉 修改为 谁是萝莉啊?
修改词条 谁是萝莉 --id 2 : 将序号为2的词条修改为 谁是萝莉
查看词条 ?[问题] ?[序号]:查看全部词条或对应词条回答
示例:
查看词条:
(在群组中使用时): 查看当前群组词条和全局词条
(在私聊中使用时): 查看当前私聊词条和全局词条
查看词条 谁是萝莉 : 查看词条 谁是萝莉 的全部回答
查看词条 --id 2 : 查看词条序号为2的全部回答
查看词条 谁是萝莉 --all: 查看全局词条 谁是萝莉 的全部回答
查看词条 --id 2 --all: 查看全局词条序号为2的全部回答
查看词条:
(在群组中使用时): 查看当前群组词条和全局词条
(在私聊中使用时): 查看当前私聊词条和全局词条
查看词条 谁是萝莉 : 查看词条 谁是萝莉 的全部回答
查看词条 --id 2 : 查看词条序号为2的全部回答
查看词条 谁是萝莉 --all: 查看全局词条 谁是萝莉 的全部回答
查看词条 --id 2 --all: 查看全局词条序号为2的全部回答
超级用户
在私聊中超级用户额外设置
指令:
(全局|私聊)?添加词条\s*?(模糊|正则|图片)?问\s*?(\S*\s?\S*)\s*?答\s?(\S*):添加问答词条,可重复添加相同问题的不同回答
全局添加词条
私聊添加词条
(私聊情况下)删除词条: 删除私聊词条
(私聊情况下)修改词条: 修改私聊词条
通过添加参数 --all才指定全局词条
示例:
删除词条 --id 2 --all: 删除全局词条中序号为2的词条
用法与普通用法相同
❤ 感谢
- 可爱的小真寻 Bot
zhenxun_bot: 我谢我自己,桀桀桀
Metadata
Release files for nonebot-plugin-zxwb 0.1.7
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_zxwb-0.1.7.tar.gz | 27.6 kB | Without provenance | Details for nonebot_plugin_zxwb-0.1.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_zxwb-0.1.7-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_zxwb-0.1.7-py3-none-any.whl |
Total release size: 59.3 kB
Release files / nonebot_plugin_zxwb-0.1.7.tar.gz
| Download URL | nonebot_plugin_zxwb-0.1.7.tar.gz |
|---|---|
| Size | 27.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e8892ff6eb46df9292ca146efaf2a3fd10f20e324cbef91fb93dc653101f4afa
|
|
BLAKE2b-256 checksum How to use checksums |
f2a1981f3e66ff89cdb586902cc2e9169555fc56f434f36357f56873e3708f16
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.9 Windows/10
|
Release files / nonebot_plugin_zxwb-0.1.7-py3-none-any.whl
| Download URL | nonebot_plugin_zxwb-0.1.7-py3-none-any.whl |
|---|---|
| Size | 31.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c13619bf8eb57a3fc2add309eb6f6bc25fe5f2b2aa4755477a0203ee62800b70
|
|
BLAKE2b-256 checksum How to use checksums |
415efcef1073b650a07c67fed26d2a5fd0dd3213b172513a215a04f44e920e3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.11.9 Windows/10
|
Security for nonebot-plugin-zxwb 0.1.7
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.