-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yuki
committed
Dec 16, 2022
1 parent
c5c5d97
commit f2575c2
Showing
8 changed files
with
463 additions
and
168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
lib/ | ||
node_modules/ | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,41 @@ | ||
# kokkoro-plugin-saucenao | ||
Locating image sources | ||
|
||
> SauceNAO 图片搜索 | ||
## 安装 | ||
|
||
```shell | ||
# 切换至 bot 目录 | ||
cd bot | ||
|
||
# 安装 npm 包 | ||
npm i kokkoro-plugin-saucenao | ||
``` | ||
|
||
## 配置项 | ||
|
||
```typescript | ||
interface SaucenaoOption extends Option { | ||
/** 结果返回数 */ | ||
results: number; | ||
/** 数据库索引数组,例如只搜索 Pixiv [5] */ | ||
mask: number[]; | ||
/** 数据库索引(结果排除) */ | ||
excludeMask: number[]; | ||
/** 测试模式 */ | ||
testMode: boolean; | ||
/** 搜索特定数据库索引而不必生成掩码 */ | ||
db: number; | ||
/** 最低相似度,低于该数值的略缩图将会和谐 */ | ||
similarity: number; | ||
} | ||
``` | ||
|
||
## 环境变量 | ||
|
||
你可以在项目根目录下创建 `.env` 文件 | ||
|
||
```ini | ||
# API key | ||
SAUCENAO_API_KEY=3d14159265358979323846264338327950288419 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.