@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.
- package/lib/index.js +11 -7
- 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.
|
|
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 (
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
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}
|