@azimiao/koishi-plugin-cafe-bot-exp 0.0.41 → 0.0.42

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
@@ -40,7 +40,7 @@ module.exports = __toCommonJS(src_exports);
40
40
  var import_url = require("url");
41
41
 
42
42
  // package.json
43
- var version = "0.0.41";
43
+ var version = "0.0.42";
44
44
 
45
45
  // src/index.ts
46
46
  var import_censor = require("@koishijs/censor");
@@ -529,7 +529,8 @@ var CafeBotQuizConfig = import_koishi3.Schema.object({
529
529
  imgHeight: import_koishi3.Schema.number().description("QQ图像高度").default(0),
530
530
  disableDriectMD: import_koishi3.Schema.boolean().description("j禁用私聊 MD 回复").default(true),
531
531
  disableDirectMDReply: import_koishi3.Schema.string().default("暂不支持私聊回复哦,请从群聊@我吧"),
532
- disableMDAt: import_koishi3.Schema.boolean().description("在md回复中禁用@").default(false)
532
+ disableMDAt: import_koishi3.Schema.boolean().description("在md回复中禁用@").default(false),
533
+ useReDefine: import_koishi3.Schema.boolean().description("test").default(false)
533
534
  }).description("答题配置");
534
535
 
535
536
  // src/common/CafeTimeTools.ts
@@ -701,7 +702,9 @@ async function apply2(ctx, config) {
701
702
  params: [
702
703
  {
703
704
  key: "user",
704
- values: [config.disableMDAt ? "你" : argv.session && !argv.session.isDirect ? `<qqbot-at-user id="${argv.session.userId}" />` : "你"]
705
+ values: [
706
+ config.disableMDAt || argv.session.isDirect ? "你" : config.useReDefine ? `<qqbot-at-user id="${argv.session.userId}" />` : `<qqbot-at-user id="${argv.session.userId}" />`
707
+ ]
705
708
  // 群聊@,私聊不@
706
709
  },
707
710
  {
@@ -0,0 +1,23 @@
1
+ /**
2
+ * 轨迹答题配置
3
+ */
4
+ import { Schema } from "koishi";
5
+ export interface CafeBotQuizConfig {
6
+ baseQuizUrl: string;
7
+ forceUpdateWhenLoad: boolean;
8
+ answerTimeout: number;
9
+ maxQuizPerDay: number;
10
+ redisServer: string;
11
+ redisAuth: string;
12
+ qqQuizMDTextID: string;
13
+ qqQuizMDImgID: string;
14
+ qqQuizButtonID: string;
15
+ appendMDBtn: boolean;
16
+ imgWidth: number;
17
+ imgHeight: number;
18
+ disableDriectMD: boolean;
19
+ disableDirectMDReply: string;
20
+ disableMDAt: boolean;
21
+ useReDefine: boolean;
22
+ }
23
+ export declare const CafeBotQuizConfig: Schema<CafeBotQuizConfig>;
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.41",
4
+ "version": "0.0.42",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "repository": {