@azimiao/koishi-plugin-cafe-bot-exp 0.0.17 → 0.0.18

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 +11 -7
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -38,7 +38,7 @@ __export(src_exports, {
38
38
  module.exports = __toCommonJS(src_exports);
39
39
 
40
40
  // package.json
41
- var version = "0.0.17";
41
+ var version = "0.0.18";
42
42
 
43
43
  // src/draw/index.ts
44
44
  var draw_exports = {};
@@ -775,12 +775,16 @@ D. ${qOptions[3].s}`;
775
775
  let total = right + userQuizA.wrong;
776
776
  let percent = Math.round(userQuizA.right * 1 / total * 100);
777
777
  let comment = "继续努力吧~";
778
- if (percent >= 95) {
779
- comment = "哇,难道您就是传说中的桂皮?!";
780
- } else if (total >= 80) {
781
- comment = "离合格的桂皮只有一步之遥?!";
782
- } else if (total >= 50) {
783
- comment = "正在成为桂皮中……";
778
+ if (total >= 6) {
779
+ if (percent >= 90) {
780
+ comment = "哇,难道您就是传说中的桂皮?!";
781
+ } else if (percent >= 70) {
782
+ comment = "离合格的桂皮只有一步之遥?!";
783
+ } else if (percent >= 60) {
784
+ comment = "正在成为桂皮中……";
785
+ } else if (percent <= 25) {
786
+ comment = "开除桂皮籍!😤";
787
+ }
784
788
  }
785
789
  await argv.session?.send(`${At(argv)}你的答题数据:
786
790
  - 答题总数: ${total}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@azimiao/koishi-plugin-cafe-bot-exp",
3
3
  "description": "cafe bot experiment",
4
- "version": "0.0.17",
4
+ "version": "0.0.18",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "repository": {