@azimiao/koishi-plugin-cafe-bot-exp 0.0.19 → 0.0.21
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 +8 -5
- package/package.json +1 -1
- package/readme.md +2 -0
package/lib/index.js
CHANGED
|
@@ -36,9 +36,11 @@ __export(src_exports, {
|
|
|
36
36
|
name: () => name4
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(src_exports);
|
|
39
|
+
var import_url = require("url");
|
|
40
|
+
var import_path = require("path");
|
|
39
41
|
|
|
40
42
|
// package.json
|
|
41
|
-
var version = "0.0.
|
|
43
|
+
var version = "0.0.21";
|
|
42
44
|
|
|
43
45
|
// src/draw/index.ts
|
|
44
46
|
var draw_exports = {};
|
|
@@ -698,6 +700,7 @@ async function apply3(ctx, config) {
|
|
|
698
700
|
wrong: "integer"
|
|
699
701
|
}, { primary: "id", autoInc: true });
|
|
700
702
|
await downloadQuitDataIfNotExist(ctx, config, config.forceUpdateWhenLoad);
|
|
703
|
+
ctx.command("轨迹答题").usage("通过趣味答题看看你是不是合格的桂皮吧~");
|
|
701
704
|
ctx.command("轨迹答题/出题", "随机抽一道题目").action(async (argv, _) => {
|
|
702
705
|
await downloadQuitDataIfNotExist(ctx, config, false);
|
|
703
706
|
var lastQuestion = await ctx.cache.get("question", argv.session.userId);
|
|
@@ -743,7 +746,6 @@ D. ${qOptions[3].s}`;
|
|
|
743
746
|
await argv.session?.send(messageQuestion);
|
|
744
747
|
return;
|
|
745
748
|
});
|
|
746
|
-
ctx.command("轨迹答题").usage("通过趣味答题看看你是不是合格的桂皮吧~");
|
|
747
749
|
ctx.command("轨迹答题/回答 <answer:text>", `使用"回答+空格+选项"回答问题,另外你也可以直接@我说出选项(ABCD)哦`).action(async (argv, answer) => {
|
|
748
750
|
await answerHandler(ctx, config, argv, answer);
|
|
749
751
|
return;
|
|
@@ -815,10 +817,11 @@ async function apply4(ctx, config) {
|
|
|
815
817
|
ctx.plugin(draw_exports, config);
|
|
816
818
|
ctx.plugin(quiz_exports, config);
|
|
817
819
|
ctx.plugin(cat_exports, config);
|
|
818
|
-
ctx.command("关于", "
|
|
820
|
+
ctx.command("关于", "关于本机器人的信息").action(async (argv, _) => {
|
|
819
821
|
argv.session?.send(
|
|
820
|
-
`<img src="
|
|
821
|
-
|
|
822
|
+
`<img src="${(0, import_url.pathToFileURL)((0, import_path.resolve)(__dirname, "logo.jpg")).href}"/>
|
|
823
|
+
Hi~我是轨迹CafeBot概念版v${version}🎉~
|
|
824
|
+
我运行在🖥️超级计算机『卡佩尔』上🛜
|
|
822
825
|
🔹 我提供轨迹抽卡🎴和轨迹问答🙋功能
|
|
823
826
|
🔹 另外我还有一些隐藏功能待你探索哦🎁
|
|
824
827
|
我还在成长中,多多与我聊天吧~`
|
package/package.json
CHANGED