koishi-plugin-mcdle 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +1 -0
- package/lib/index.js +6 -5
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -14651,7 +14651,8 @@ var Config = import_koishi.Schema.object({
|
|
|
14651
14651
|
retractDelay: import_koishi.Schema.number().min(0).default(0).description(
|
|
14652
14652
|
`撤回上一条消息的等待时间,单位是秒。值为 0 时不启用自动撤回功能。`
|
|
14653
14653
|
),
|
|
14654
|
-
allowRepeatedGuesses: import_koishi.Schema.boolean().default(false).description("允许重复猜测已猜过的词语(防止撤回时历史不可见)")
|
|
14654
|
+
allowRepeatedGuesses: import_koishi.Schema.boolean().default(false).description("允许重复猜测已猜过的词语(防止撤回时历史不可见)"),
|
|
14655
|
+
disableImages: import_koishi.Schema.boolean().default(false).description("不发送图片(解决网络问题导致的图片下载失败)")
|
|
14655
14656
|
});
|
|
14656
14657
|
function apply(ctx, cfg) {
|
|
14657
14658
|
ctx.model.extend(
|
|
@@ -15085,13 +15086,13 @@ ${itemChineseTitle.join(" ")}`
|
|
|
15085
15086
|
}
|
|
15086
15087
|
const lastGuess = guesses[guesses.length - 1];
|
|
15087
15088
|
let resultText = "";
|
|
15088
|
-
if (lastGuess.wiki_image_url) {
|
|
15089
|
+
if (!cfg.disableImages && lastGuess.wiki_image_url) {
|
|
15089
15090
|
resultText += `${import_koishi.h.image(lastGuess.wiki_image_url)}
|
|
15090
15091
|
`;
|
|
15091
|
-
|
|
15092
|
-
|
|
15092
|
+
}
|
|
15093
|
+
if (lastGuess.chinese_title) {
|
|
15094
|
+
resultText += `名称:${lastGuess.chinese_title}
|
|
15093
15095
|
`;
|
|
15094
|
-
}
|
|
15095
15096
|
}
|
|
15096
15097
|
for (const key in lastGuess) {
|
|
15097
15098
|
if (key.endsWith("_gui")) continue;
|