Skip to main content

基于 HikariSearch 的又一个 Nonebot2 搜图插件

Project description

nonebot-plugin-hikarisearch

适用于 Nonebot2 的搜图插件

使用 HikariSearch 搜索

支持 SauceNAO、IqDB、ascii2d、E-Hentai、TraceMoe

安装

  • 使用 nb-cli
nb plugin install nonebot_plugin_hikarisearch
  • 使用 pip
pip install nonebot_plugin_hikarisearch

本插件使用了 go-cqhttpsend_group_forward_msgsend_private_forward_msg 接口 来发送合并转发消息,

发送私聊合并转发消息需要使用 v1.0.0-rc2 版本以上的 go-cqhttp

使用

以下命令需要加命令前缀 (默认为/),可自行设置为空

搜图/saucenao搜图/iqdb搜图/ascii2d搜图/ehentai搜图/tracemoe搜图 + 图片

默认为 saucenao搜图

或回复包含图片的消息,回复“搜图”

配置

可在 .env.xxx 文件中添加如下配置:

hikarisearch_api=xxx  # HikariSearch 站点,默认为 "https://hikari.obfs.dev"
hikarisearch_max_results=xxx  # 最多返回的结果数量,默认为 3
hikarisearch_withdraw=xxx  # 自动撤回时间,默认为 0 (不撤回),单位为秒

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_hikarisearch-0.1.7.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file nonebot_plugin_hikarisearch-0.1.7.tar.gz.

File metadata

  • Download URL: nonebot_plugin_hikarisearch-0.1.7.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.13 CPython/3.10.4 Linux/5.4.72-microsoft-standard-WSL2

File hashes

Hashes for nonebot_plugin_hikarisearch-0.1.7.tar.gz
Algorithm Hash digest
SHA256 abcae504c19d30952236ff963bc7dbd35bd777dd560be03299856bf552da7c40
MD5 78608ae813497205b4fb15b4b3d0a946
BLAKE2b-256 caaebe7862e5b17482ceadd75b195d53f65f888d37f7d7eaecf257a464bf195b

See more details on using hashes here.

File details

Details for the file nonebot_plugin_hikarisearch-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_hikarisearch-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 7242bcf71dac3a8341fa2bc409c884291140b0ade74d65d9ab842cc43c0a3af7
MD5 d68faf0437f33714a60c5281112230ed
BLAKE2b-256 63ece0c73e82b29c4c0cb600e8dbeb8c859fc070aeb6d69ec538838ef7efb759

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