forked from koishijs/koishi-plugin-booru
-
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.
refa: migrate schema text to i18n files (koishijs#244)
* refa: migrate base schema text to i18n files * refa: migrate danbooru schema to i18n * refa: migrate e621 schema to i18n * refa: migrate gelbooru schema to i18n * refa: migrate konachan schema to i18n * refa: migrate local schema to i18n * refa: migrate lolibooru schema to i18n * refa: migrate lolicon schema to i18n * refa: migrate moehu schema to i18n * refa: migrate pixiv schema to i18n * refa: migrate safebooru schema to i18n * refa: migrate sankakucomplex schema to i18n * refa: migrate yandere schema to i18n * fix: format
- Loading branch information
Showing
29 changed files
with
321 additions
and
181 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
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
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
$inner: | ||
- $description: 搜索设置 | ||
detectLanguage: 自动检测输入语言并选择语言匹配的图源。 | ||
confidence: 语言检测的置信度。 | ||
maxCount: 每次搜索的最大数量。 | ||
nsfw: 是否允许输出 NSFW 内容。 | ||
|
||
- $description: 输出设置 | ||
output: | ||
$description: 输出方式。 | ||
$inner: | ||
- 仅发送图片 | ||
- 发送图片和相关信息 | ||
- 发送图片、相关信息和链接 | ||
- 发送全部信息 | ||
outputMethod: | ||
$description: 发送方式。 | ||
$inner: | ||
- 逐条发送每张图片 | ||
- 合并多条发送 (部分平台可能不支持) | ||
- 合并为子话题发送所有图片 (部分平台需求较高权限) | ||
- 仅当多于一张图片使用合并为子话题发送 (部分平台需求较高权限) | ||
preferSize: | ||
$description: 优先使用图片的最大尺寸。 | ||
$inner: | ||
- 原始尺寸 | ||
- 较大尺寸 (通常为约 1200px) | ||
- 中等尺寸 (通常为约 600px) | ||
- 较小尺寸 (通常为约 300px) | ||
- 缩略图 | ||
autoResize: | ||
$description: 根据 preferSize 自动缩小过大的图片。 **需要安装提供 canvas 服务的插件** | ||
asset: 优先使用 [assets服务](https://assets.koishi.chat/) 转存图片。 | ||
base64: 使用 base64 发送图片。 | ||
spoiler: | ||
$description: 发送为隐藏图片,单击后显示(在 QQ 平台中以「合并转发」发送)。 | ||
$inner: | ||
- 禁用 | ||
- 所有图片 | ||
- 仅 NSFW 图片 | ||
showTips: 是否输出使用提示信息。 |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$inner: | ||
- $description: 全局设置 | ||
label: 图源标签,可用于在指令中手动指定图源。 | ||
weight: 图源权重。在多个符合标签的图源中,将按照各自的权重随机选择。 | ||
|
||
- $description: 请求设置 | ||
proxyAgent: 请求图片时使用代理服务器。 |
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
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$description: 搜索设置 | ||
endpoint: Danbooru 的 URL。 | ||
keyPairs: | ||
$description: Danbooru 的登录凭据。[点击前往获取及设置教程](https://booru.koishi.chat/zh-CN/plugins/danbooru.html#configure-credentials) | ||
$inner: | ||
login: 用户名。 | ||
apiKey: API 密钥。 |
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
$description: 搜索设置 | ||
endpoint: e621/e926 的 URL。 | ||
keyPairs: | ||
$description: e621/e926 的登录凭据。[点击前往获取及设置教程](https://booru.koishi.chat/zh-CN/plugins/e621.html#configure-credentials) | ||
$inner: | ||
login: e621/e926 的用户名。 | ||
apiKey: e621/e926 的 API Key。 | ||
userAgent: 设置请求的 User Agent。 |
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
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
$description: 搜索设置 | ||
endpoint: Gelbooru 的 URL。 | ||
keyPairs: | ||
$description: Gelbooru 的登录凭据。[点击前往获取及设置教程](https://booru.koishi.chat/zh-CN/plugins/gelbooru.html#configure-credentials) |
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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
$description: 搜索设置 | ||
endpoint: | ||
$description: Konachan 的 URL。 | ||
$inner: | ||
- Konachan.com (NSFW) | ||
- Konachan.net (SFW) | ||
keyPairs: | ||
$description: Konachan 的登录凭据。 | ||
$inner: | ||
login: 用户名 | ||
password: 密码 |
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
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
$inner: | ||
- $description: 图源设置 | ||
$inner: | ||
endpoint: 图源文件夹,支持多个不同的文件夹 | ||
storage: 图源数据保存方式 | ||
reload: 每次启动时重新构建图源数据 | ||
languages: 支持的语言 | ||
- $description: 文件设置 | ||
$inner: | ||
scraper: 文件名元信息生成格式,详见<a herf="https://booru.koishi.chat/plugins/local.html">文档</a> | ||
extension: 支持的扩展名 |
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
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$description: 搜索设置 | ||
endpoint: Lolibooru 的 URL。 | ||
keyPairs: | ||
$description: Lolibooru 的登录凭据。 | ||
$inner: | ||
login: 用户名 | ||
password: 密码 |
Oops, something went wrong.