Skip to main content

nonebot-plugin-rtfm

✨ NoneBot2 文档搜索插件 ✨

🚀安装

此插件需要 Python 3.8 及以上

# 通过 nb-cli
nb plugin install nonebot-plugin-rtfm
# 通过 poetry
poetry add nonebot_plugin_rtfm
# 通过 pip
pip install nonebot_plugin_rtfm

📝命令

/rtfm [关键词]

概述

若提供了关键词,则根据关键词进行搜索 NoneBot2 文档,否则进入对话模式获取关键词后搜索

例子

图片

-ff3a75dd1b3b136.png

/obrtfm [关键词]

概述

若提供了关键词,则根据关键词进行搜索 OneBot 适配器 文档,否则进入对话模式获取关键词后搜索

例子

图片

-736fa5bfcf4805f2.png

/插件列表

概述

获取商店里的全部插件的简要信息,支持 /page 和 戳一戳

例子

图片

_J_TYS6NJDRF61__6_8M4.png

/搜索插件 <关键字> [-t] [-n] [-a] [-d] [-p=[0-1]]

WIP:此功能尚未完成

概述

搜索插件列表的插件,支持 /page 和 戳一戳

参数

  • -t,--without_tag 查询时不使用标签查询
  • -n,--without_name 查询时不使用插件名称查询
  • -a,--without_author 查询时不使用作者名查询
  • -d,--without_desc 查询时不使用描述查询
  • -p=[0-1],--percent=[0-1] 相似度,越接近1相似度越高

/page <页码>

概述

查看指定页的文档,来源根据上一次的查询结果的缓存

例子

图片

1650986335404.png

使用戳一戳

戳机器人会发送下一页文档

图片

1650986464565.png

🔧配置

  • rtfm_page
    • 设置一条消息的结果数(默认:5)
  • use_proxy
    • 使用 jsdelivr 源获取插件信息(默认:True)

🚧预期加入功能

🐛Bug 反馈或提交建议

请通过 Issue 向我反馈 Bug 或提交建议

👥参与开发

待补充

🔒️许可

本插件使用 MIT 许可证 开源

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for nonebot-plugin-rtfm 0.2.2

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-rtfm 0.2.2
File Size Uploaded Provenance Actions
nonebot-plugin-rtfm-0.2.2.tar.gz 10.9 kB Without provenance Details for nonebot-plugin-rtfm-0.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 22.6 kB

Release files / nonebot-plugin-rtfm-0.2.2.tar.gz

Download URL nonebot-plugin-rtfm-0.2.2.tar.gz
Size 10.9 kB
Tags Source
SHA-256 checksum
How to use checksums
368d0ee29e444a56aa36c486de86eeb31646e10317f4e5478297191c936e4fe9
BLAKE2b-256 checksum
How to use checksums
6117addb5a92018dab1a740398e0b32053314781b61913e403b7c3ce525843c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.6 Windows/10

Release files / nonebot_plugin_rtfm-0.2.2-py3-none-any.whl

Download URL nonebot_plugin_rtfm-0.2.2-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1815181703fecddda47d4a3c4d4cc204a391c38c2843c867ab2ffd9f97ba2efe
BLAKE2b-256 checksum
How to use checksums
7f03dd159b88200852382fad3a061f86ecf797df41c35ccb45a943ebd7090a7a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.13 CPython/3.9.6 Windows/10

Security for nonebot-plugin-rtfm 0.2.2

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.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files No provenance

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