@azimiao/koishi-plugin-cafe-bot-exp 0.0.11 → 0.0.12
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 -5
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -396,6 +396,7 @@ async function getCards(seed, ctx, config) {
|
|
|
396
396
|
__name(getCards, "getCards");
|
|
397
397
|
async function apply(ctx, config) {
|
|
398
398
|
await downloadCardDataIfNotExist(ctx, config, config.forceUpdateDataWhenLoad);
|
|
399
|
+
ctx.command("轨迹抽卡", `抽取你的每日轨迹人物卡吧~`);
|
|
399
400
|
ctx.command("轨迹抽卡/给我抽", "进行每日抽卡").action(async (argv, _) => {
|
|
400
401
|
let seed = DailySeededName(argv.session.userId);
|
|
401
402
|
console.log(`getcard for ${seed}`);
|
|
@@ -706,23 +707,24 @@ D. ${qOptions[3].s}`;
|
|
|
706
707
|
await argv.session?.send(messageQuestion);
|
|
707
708
|
return;
|
|
708
709
|
});
|
|
709
|
-
ctx.command("
|
|
710
|
+
ctx.command("轨迹答题").usage("通过趣味答题看看你是不是合格的桂皮吧~");
|
|
711
|
+
ctx.command("轨迹答题/回答 <answer:text>", `使用"回答+空格+选项"回答问题哦,如"回答 A"`).action(async (argv, answer) => {
|
|
710
712
|
await answerHandler(ctx, config, argv, answer);
|
|
711
713
|
return;
|
|
712
714
|
});
|
|
713
|
-
ctx.command("轨迹答题/A", "选择 A 选项").action(async (argv, _) => {
|
|
715
|
+
ctx.command("轨迹答题/A", "选择 A 选项", { hidden: true }).action(async (argv, _) => {
|
|
714
716
|
await answerHandler(ctx, config, argv, "A");
|
|
715
717
|
return;
|
|
716
718
|
});
|
|
717
|
-
ctx.command("轨迹答题/B", "选择 B 选项").action(async (argv, _) => {
|
|
719
|
+
ctx.command("轨迹答题/B", "选择 B 选项", { hidden: true }).action(async (argv, _) => {
|
|
718
720
|
await answerHandler(ctx, config, argv, "B");
|
|
719
721
|
return;
|
|
720
722
|
});
|
|
721
|
-
ctx.command("轨迹答题/C", "选择 C 选项").action(async (argv, _) => {
|
|
723
|
+
ctx.command("轨迹答题/C", "选择 C 选项", { hidden: true }).action(async (argv, _) => {
|
|
722
724
|
await answerHandler(ctx, config, argv, "C");
|
|
723
725
|
return;
|
|
724
726
|
});
|
|
725
|
-
ctx.command("轨迹答题/D", "选择 D 选项").action(async (argv, _) => {
|
|
727
|
+
ctx.command("轨迹答题/D", "选择 D 选项", { hidden: true }).action(async (argv, _) => {
|
|
726
728
|
await answerHandler(ctx, config, argv, "D");
|
|
727
729
|
return;
|
|
728
730
|
});
|