Skip to main content

A plugin for searching docs in QQ, use NoneBot and OneBot V11

Project description

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.

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-rtfm-0.2.2.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

nonebot_plugin_rtfm-0.2.2-py3-none-any.whl (11.7 kB view details)

Uploaded Python 3

File details

Details for the file nonebot-plugin-rtfm-0.2.2.tar.gz.

File metadata

  • Download URL: nonebot-plugin-rtfm-0.2.2.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.9.6 Windows/10

File hashes

Hashes for nonebot-plugin-rtfm-0.2.2.tar.gz
Algorithm Hash digest
SHA256 368d0ee29e444a56aa36c486de86eeb31646e10317f4e5478297191c936e4fe9
MD5 df7432ed20c5dc4349eebffba36257db
BLAKE2b-256 6117addb5a92018dab1a740398e0b32053314781b61913e403b7c3ce525843c7

See more details on using hashes here.

File details

Details for the file nonebot_plugin_rtfm-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_rtfm-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1815181703fecddda47d4a3c4d4cc204a391c38c2843c867ab2ffd9f97ba2efe
MD5 bbd73fed54980b0b6ed0368a8e6308fa
BLAKE2b-256 7f03dd159b88200852382fad3a061f86ecf797df41c35ccb45a943ebd7090a7a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page