alemonjs 1.1.30 → 1.1.31

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.
@@ -246,12 +246,12 @@ export async function defineAlemonConfig(Options) {
246
246
  }
247
247
  }
248
248
  // jsonCreate
249
- if (Options?.app?.regJSON?.create === false) {
250
- setAppProCoinfg('regex', Options?.app?.regJSON?.create);
249
+ if (Options?.JSON?.init === false) {
250
+ setAppProCoinfg('regex', Options?.JSON.init);
251
251
  }
252
252
  // json地址
253
- if (Options?.app?.regJSON?.address) {
254
- setAppProCoinfg('route', Options?.app?.regJSON?.address);
253
+ if (Options?.JSON?.address) {
254
+ setAppProCoinfg('route', Options?.JSON?.address);
255
255
  }
256
256
  /**
257
257
  * ***********
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alemonjs",
3
- "version": "1.1.30",
3
+ "version": "1.1.31",
4
4
  "description": "DOCS https://alemonjs.com/",
5
5
  "scripts": {
6
6
  "dev": "ts-node alemon.config.ts",
@@ -3,7 +3,6 @@ import { LoginOptions } from '../default/types.js';
3
3
  import { MysqlOptions, RedisOptions } from '../default/types.js';
4
4
  import { ServerOptions } from '../koa/types.js';
5
5
  import { InstructionMatching, InstructionMatchingByNotMessage } from '../core/index.js';
6
- import { type MessageControllerType, type MemberControllerType } from '../core/index.js';
7
6
  export interface PlatformsItemType {
8
7
  /**
9
8
  * 机器人名称与login对应
@@ -33,8 +32,8 @@ export interface PlatformsItemType {
33
32
  * 控制器
34
33
  */
35
34
  controller: {
36
- Message: MessageControllerType;
37
- Member: MemberControllerType;
35
+ Message: any;
36
+ Member: any;
38
37
  };
39
38
  };
40
39
  }
@@ -65,24 +64,12 @@ export interface AlemonOptions {
65
64
  */
66
65
  app?: {
67
66
  /**
68
- * 是否执行
67
+ * 是否初始化
69
68
  */
70
69
  init?: boolean;
71
70
  /**
72
- * 指令预览
71
+ * 执行脚本
73
72
  */
74
- regJSON?: {
75
- /**
76
- * 是否生成
77
- * defaukt true
78
- */
79
- create?: false;
80
- /**
81
- * 生成地址
82
- * defaukt /publick/defset
83
- */
84
- address?: string;
85
- };
86
73
  scripts?: string;
87
74
  };
88
75
  /**
@@ -117,10 +104,57 @@ export interface AlemonOptions {
117
104
  */
118
105
  type?: 'ts' | 'js' | 'stript';
119
106
  };
107
+ /**
108
+ * 指令预览
109
+ */
110
+ JSON?: {
111
+ /**
112
+ * 是否生成
113
+ * defaukt true
114
+ */
115
+ init?: false;
116
+ /**
117
+ * 生成地址
118
+ * defaukt /publick/defset
119
+ */
120
+ address?: string;
121
+ };
120
122
  /**
121
123
  * 事件屏蔽
122
124
  */
123
125
  shieldEvent?: string[];
126
+ /**
127
+ * **********
128
+ *
129
+ *
130
+ * ************
131
+ */
132
+ /**
133
+ * puppeteer配置
134
+ */
135
+ puppeteer?: PuppeteerLaunchOptions;
136
+ /**
137
+ * 是否启动pup
138
+ * defaut true
139
+ */
140
+ pupStart?: false;
141
+ /**
142
+ * 服务配置
143
+ */
144
+ server?: ServerOptions;
145
+ /**
146
+ * redis配置
147
+ */
148
+ redis?: RedisOptions;
149
+ /**
150
+ * mysql配置
151
+ */
152
+ mysql?: MysqlOptions;
153
+ /**
154
+ * **************
155
+ * 特殊
156
+ * ************
157
+ */
124
158
  /**
125
159
  * 附加运行等待时间
126
160
  * defaukt app*1000
@@ -144,25 +178,4 @@ export interface AlemonOptions {
144
178
  name?: 'ts-node' | 'node';
145
179
  file: string;
146
180
  }[];
147
- /**
148
- * 服务配置
149
- */
150
- server?: ServerOptions;
151
- /**
152
- * puppeteer配置
153
- */
154
- puppeteer?: PuppeteerLaunchOptions;
155
- /**
156
- * 是否启动pup
157
- * defaut true
158
- */
159
- pupStart?: false;
160
- /**
161
- * redis配置
162
- */
163
- redis?: RedisOptions;
164
- /**
165
- * mysql配置
166
- */
167
- mysql?: MysqlOptions;
168
181
  }