@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 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.19";
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("关于", "about").action(async (argv, _) => {
820
+ ctx.command("关于", "关于本机器人的信息").action(async (argv, _) => {
819
821
  argv.session?.send(
820
- `<img src="https://www.azimiao.com/wp-content/uploads/2025/05/cafe-wide.jpg"/>
821
- ${At(argv)}我是运行在超级计算机『卡佩尔』上的轨迹CafeBot概念版v${version}🎉~
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
@@ -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.19",
4
+ "version": "0.0.21",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "repository": {
package/readme.md CHANGED
@@ -2,4 +2,6 @@
2
2
 
3
3
  [![npm](https://img.shields.io/npm/v/@azimiao/koishi-plugin-cafe-bot-exp?style=flat-square)](https://www.npmjs.com/package/@azimiao/koishi-plugin-cafe-bot-exp)
4
4
 
5
+ ![logo](./src/logo.jpg)
6
+
5
7
  基于 QQ 官方机器人的轨迹 Cafe 群 Bot 代码,包含每日抽卡,答题等功能。