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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot-plugin-rtfm-0.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 dd19babea3bd1314b7c41e654f451c8a1fd5ce0b27601521054a8294771df25e
MD5 47303bbbdb1dec5b9c05d9bc5f5612bf
BLAKE2b-256 3a50f4cca1ca16ac28b4b81a4a08cc276440da6b71f3ecef1c80d591f88eb7eb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_rtfm-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8bc61276e563da1a1b8ffcf926f55e72cf3d4330e8cc9f2f2e4962495172d93
MD5 16359203e8d4f1c416b9d65096087c3e
BLAKE2b-256 c909e16bdcacf56729edd10fda236b4e60af6b28c06a9f81a72b4d8a2420e345

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