@azimiao/koishi-plugin-cafe-bot-exp 0.0.8 → 0.0.9
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.js +7 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -571,13 +571,17 @@ async function apply3(ctx, config) {
|
|
|
571
571
|
return;
|
|
572
572
|
});
|
|
573
573
|
ctx.command("轨迹答题/回答 <answer:text>", `使用"回答+选项"回答问题,如"回答 A"`).action(async (argv, answer) => {
|
|
574
|
-
await argv.session?.send("开发中");
|
|
575
|
-
return;
|
|
576
574
|
let selectNumber = -1;
|
|
577
575
|
if (answer in validOptions) {
|
|
578
576
|
selectNumber = validOptions[answer];
|
|
579
577
|
} else {
|
|
580
|
-
argv.session?.send(`${At(argv)}回答错误~`);
|
|
578
|
+
await argv.session?.send(`${At(argv)}回答错误~`);
|
|
579
|
+
}
|
|
580
|
+
if (selectNumber == 3) {
|
|
581
|
+
await argv.session?.send(`<audio src="https://trails-game.com/wp-content/uploads/2021/07/renne.wav"/>`);
|
|
582
|
+
return;
|
|
583
|
+
} else {
|
|
584
|
+
await argv.session?.send(`${At(argv)}开发中`);
|
|
581
585
|
}
|
|
582
586
|
});
|
|
583
587
|
}
|