@kotori-bot/loader 1.7.0 → 1.7.1

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
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.0-rc.1
4
+ * @Version 1.7.1
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/9 17:33:08
9
+ * @Date 2024/8/9 18:47:18
10
10
  */
11
11
 
12
12
  "use strict";
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.0-rc.1
4
+ * @Version 1.7.1
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/9 17:33:08
9
+ * @Date 2024/8/9 18:47:18
10
10
  */
11
11
 
12
12
  "use strict";
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.0-rc.1
4
+ * @Version 1.7.1
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/9 17:33:08
9
+ * @Date 2024/8/9 18:47:18
10
10
  */
11
11
 
12
12
  "use strict";
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.0-rc.1
4
+ * @Version 1.7.1
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/9 17:33:08
9
+ * @Date 2024/8/9 18:47:18
10
10
  */
11
11
 
12
12
  "use strict";
@@ -212,7 +212,7 @@ class Loader extends import_core.Core {
212
212
  this.i18n.use(import_node_path.default.resolve(__dirname, "../../locales"));
213
213
  }
214
214
  run(onlyStart = false) {
215
- if (onlyStart) return this.emit("ready");
215
+ if (onlyStart) return this.start();
216
216
  this.logger.trace("baseDir:", this.baseDir);
217
217
  this.logger.trace("options:", this.options);
218
218
  this.logger.trace("config:", this.config);
@@ -399,7 +399,7 @@ class Loader extends import_core.Core {
399
399
  this.format(`loader.modules.all${failLoadCount > 0 ? ".failed" : ""}`, [this.loadRecord.size, failLoadCount])
400
400
  );
401
401
  this.loadAllAdapter();
402
- this.emit("ready");
402
+ this.start();
403
403
  }
404
404
  loadAllAdapter() {
405
405
  const adapters = this[import_core.Symbols.adapter];
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.0-rc.1
4
+ * @Version 1.7.1
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/9 17:33:08
9
+ * @Date 2024/8/9 18:47:18
10
10
  */
11
11
 
12
12
  "use strict";
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.0-rc.1
4
+ * @Version 1.7.1
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/9 17:33:08
9
+ * @Date 2024/8/9 18:47:18
10
10
  */
11
11
 
12
12
  "use strict";
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.0-rc.1
4
+ * @Version 1.7.1
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/9 17:33:08
9
+ * @Date 2024/8/9 18:47:18
10
10
  */
11
11
 
12
12
  "use strict";
@@ -1,5 +1,3 @@
1
- /// <reference types="node" />
2
- /// <reference types="node" />
3
1
  import { type Context, Service } from '@kotori-bot/core';
4
2
  import { type IncomingMessage, type ServerResponse } from 'node:http';
5
3
  import type { HttpRouteHandler, HttpRoutes, WsRouteHandler } from '../types/server';
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.0-rc.1
4
+ * @Version 1.7.1
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/9 17:33:08
9
+ * @Date 2024/8/9 18:47:18
10
10
  */
11
11
 
12
12
  "use strict";
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.0-rc.1
4
+ * @Version 1.7.1
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/9 17:33:08
9
+ * @Date 2024/8/9 18:47:18
10
10
  */
11
11
 
12
12
  "use strict";
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type { NextFunction, Request, Response } from 'express';
3
2
  import type { IncomingMessage } from 'node:http';
4
3
  import type Ws from 'ws';
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.0-rc.1
4
+ * @Version 1.7.1
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/9 17:33:08
9
+ * @Date 2024/8/9 18:47:18
10
10
  */
11
11
 
12
12
  "use strict";
package/lib/utils/log.js CHANGED
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.0-rc.1
4
+ * @Version 1.7.1
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/9 17:33:08
9
+ * @Date 2024/8/9 18:47:18
10
10
  */
11
11
 
12
12
  "use strict";
@@ -1,12 +1,12 @@
1
1
 
2
2
  /**
3
3
  * @Package @kotori-bot/loader
4
- * @Version 1.7.0-rc.1
4
+ * @Version 1.7.1
5
5
  * @Author Arimura Sena <me@hotaru.icu>
6
6
  * @Copyright 2024 Hotaru. All rights reserved.
7
7
  * @License GPL-3.0
8
8
  * @Link https://github.com/kotorijs/kotori
9
- * @Date 2024/8/9 17:33:08
9
+ * @Date 2024/8/9 18:47:18
10
10
  */
11
11
 
12
12
  "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kotori-bot/loader",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "Loader For KotoriBot",
5
5
  "license": "GPL-3.0",
6
6
  "main": "lib/index.js",
@@ -29,7 +29,7 @@
29
29
  "level": "^8.0.1",
30
30
  "path-to-regexp": "^6.2.2",
31
31
  "ws": "^8.14.2",
32
- "@kotori-bot/core": "^1.6.0",
32
+ "@kotori-bot/core": "^1.6.1",
33
33
  "@kotori-bot/logger": "^1.3.2"
34
34
  },
35
35
  "devDependencies": {