koishi-plugin-smmcat-eazyfeedback 0.0.1 → 0.0.3

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.
Files changed (2) hide show
  1. package/lib/index.js +7 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -457,6 +457,7 @@ ${data.title}
457
457
  });
458
458
  });
459
459
  ctx.command("问卷反馈/问卷查询").action(async ({ session }) => {
460
+ if (!config.masterList.includes(session.userId)) return `权限不足!`;
460
461
  const _data = (await ctx.database.get("smmcat_eazy_feedback_title", {})).reverse();
461
462
  if (!_data.length) return `当前还没有创建任何问卷`;
462
463
  const maxLen = Math.ceil(_data.length / 10);
@@ -472,7 +473,7 @@ ${data.title}
472
473
  }
473
474
  msg.push(
474
475
  `
475
- 操作选项:<qqbot-cmd-input text="上一页" show="【上一页】" reference="false"/> <qqbot-cmd-input text="下一页" show="【下一页】" reference="false"/> <qqbot-cmd-input text="退出" show="【退出】" reference="false"/>`
476
+ 操作选项 (60s 有效):<qqbot-cmd-input text="上一页" show="【上一页】" reference="false"/> <qqbot-cmd-input text="下一页" show="【下一页】" reference="false"/> <qqbot-cmd-input text="退出" show="【退出】" reference="false"/>`
476
477
  );
477
478
  Chat.send(session, msg.join("\n"));
478
479
  let type = await session.prompt(6e4);
@@ -501,9 +502,11 @@ ${data.title}
501
502
  session.execute(type.replace("/", ""));
502
503
  break;
503
504
  }
505
+ break;
504
506
  }
505
507
  });
506
- ctx.command("查询回复 <mid:posint>").action(async ({ session }, mid) => {
508
+ ctx.command("问卷反馈/查询回复 <mid:posint>").action(async ({ session }, mid) => {
509
+ if (!config.masterList.includes(session.userId)) return `权限不足!`;
507
510
  const _data = (await ctx.database.get("smm_eazy_feedback_log", { mid })).reverse();
508
511
  if (!_data.length) return `当前该 快捷问卷/反馈 还没有任何回复`;
509
512
  const maxLen = Math.ceil(_data.length / 10);
@@ -531,7 +534,7 @@ ${data[0].title}
531
534
  }
532
535
  msg.push(
533
536
  `
534
- 操作选项:<qqbot-cmd-input text="上一页" show="【上一页】" reference="false"/> <qqbot-cmd-input text="下一页" show="【下一页】" reference="false"/> <qqbot-cmd-input text="退出" show="【退出】" reference="false"/>`
537
+ 操作选项 (60s 有效):<qqbot-cmd-input text="上一页" show="【上一页】" reference="false"/> <qqbot-cmd-input text="下一页" show="【下一页】" reference="false"/> <qqbot-cmd-input text="退出" show="【退出】" reference="false"/>`
535
538
  );
536
539
  Chat.send(session, msg.join("\n"));
537
540
  let type = await session.prompt(6e4);
@@ -556,6 +559,7 @@ ${data[0].title}
556
559
  }
557
560
  continue;
558
561
  }
562
+ break;
559
563
  }
560
564
  });
561
565
  ctx.on("ready", () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-smmcat-eazyfeedback",
3
3
  "description": "更容易让用户反馈的反馈功能",
4
- "version": "0.0.1",
4
+ "version": "0.0.3",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [