@kotori-bot/core 1.6.0 → 1.6.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/app/config.js +2 -2
- package/lib/app/core.js +8 -2
- package/lib/app/index.js +2 -2
- package/lib/app/message.js +2 -2
- package/lib/components/adapter.js +2 -2
- package/lib/components/api.d.ts +0 -1
- package/lib/components/api.js +2 -2
- package/lib/components/cache.js +2 -2
- package/lib/components/command.d.ts +1 -1
- package/lib/components/command.js +2 -2
- package/lib/components/elements.js +2 -2
- package/lib/components/filter.js +2 -2
- package/lib/components/index.js +2 -2
- package/lib/components/messages.js +2 -2
- package/lib/components/session.d.ts +2 -2
- package/lib/components/session.js +2 -2
- package/lib/decorators/index.js +2 -2
- package/lib/decorators/plugin.js +2 -2
- package/lib/decorators/utils.js +2 -2
- package/lib/global/constants.js +2 -2
- package/lib/global/index.js +2 -2
- package/lib/global/symbols.js +2 -2
- package/lib/index.js +2 -2
- package/lib/types/adapter.js +2 -2
- package/lib/types/api.d.ts +0 -1
- package/lib/types/api.js +2 -2
- package/lib/types/command.js +2 -2
- package/lib/types/config.js +2 -2
- package/lib/types/filter.js +2 -2
- package/lib/types/index.js +2 -2
- package/lib/types/message.js +2 -2
- package/lib/types/session.js +2 -2
- package/lib/utils/container.js +2 -2
- package/lib/utils/error.js +2 -2
- package/lib/utils/factory.d.ts +2 -2
- package/lib/utils/factory.js +2 -2
- package/lib/utils/internal.js +2 -2
- package/package.json +1 -1
package/lib/app/config.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/app/core.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
|
@@ -79,6 +79,12 @@ class Core extends import_fluoro.default {
|
|
|
79
79
|
this.inject("i18n");
|
|
80
80
|
this.service("cache", new import_components.Cache(this.extends("cache")));
|
|
81
81
|
}
|
|
82
|
+
start() {
|
|
83
|
+
this.emit("ready");
|
|
84
|
+
}
|
|
85
|
+
stop() {
|
|
86
|
+
this.emit("dispose");
|
|
87
|
+
}
|
|
82
88
|
}
|
|
83
89
|
var core_default = Core;
|
|
84
90
|
// Annotate the CommonJS export names for ESM import in node:
|
package/lib/app/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/app/message.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/components/api.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import type Adapter from './adapter';
|
|
3
2
|
import type { ChannelInfoResponse, GetFileDataResponse, GetFilePathResponse, GetFileUrlResponse, GroupInfoResponse, GuildInfoResponse, Message, SelfInfoResponse, SendMessageResponse, UploadFileResponse, UserInfoResponse } from '../types';
|
|
4
3
|
import type { EventsMapping } from 'fluoro';
|
package/lib/components/api.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/components/cache.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
|
@@ -127,7 +127,7 @@ export declare class Command<Template extends string = string, Opts extends Opts
|
|
|
127
127
|
* @param template - Option template.
|
|
128
128
|
* @returns Command instance
|
|
129
129
|
*/
|
|
130
|
-
option<TemplateOpt extends string>(name: string, template: TemplateOpt): Command<Template, Opts & ParseOpts<TemplateOpt
|
|
130
|
+
option<TemplateOpt extends string>(name: string, template: TemplateOpt): Command<Template, Opts & ParseOpts<TemplateOpt>>;
|
|
131
131
|
/**
|
|
132
132
|
* Set command action.
|
|
133
133
|
*
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/components/filter.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/components/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type EventDataApiBase, type Message,
|
|
1
|
+
import { type EventDataApiBase, type Message, type MessageQuick, type CommandResult, type EventDataPrivateMsg, type EventDataGroupMsg, type EventDataChannelMsg } from '../types';
|
|
2
2
|
import type { Adapter } from './adapter';
|
|
3
3
|
import { formatFactory } from '../utils/factory';
|
|
4
4
|
import { CommandError } from '../utils/error';
|
|
@@ -173,5 +173,5 @@ export type SessionMsgChannel = Session<EventDataChannelMsg>;
|
|
|
173
173
|
* @class
|
|
174
174
|
* @template T - Session event data type
|
|
175
175
|
*/
|
|
176
|
-
export declare const Session: new <T extends EventDataApiBase
|
|
176
|
+
export declare const Session: new <T extends EventDataApiBase = EventDataApiBase>(data: T, bot: Adapter) => Session<T>;
|
|
177
177
|
export {};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/decorators/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/decorators/plugin.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/decorators/utils.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/global/constants.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/global/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/global/symbols.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/types/adapter.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/types/api.d.ts
CHANGED
package/lib/types/api.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/types/command.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/types/config.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/types/filter.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/types/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/types/message.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/types/session.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/utils/container.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/utils/error.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/utils/factory.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { I18n } from '@kotori-bot/i18n';
|
|
2
2
|
import type { CommandArgType, Message, MessageMapping } from '../types';
|
|
3
|
-
import { MessageList
|
|
3
|
+
import { MessageList } from '../components';
|
|
4
4
|
/**
|
|
5
5
|
* Create a format function base on i18n instance
|
|
6
6
|
* @param i18n - i18n instance
|
|
@@ -8,5 +8,5 @@ import { MessageList, MessageSingle } from '../components';
|
|
|
8
8
|
*/
|
|
9
9
|
export declare function formatFactory(i18n: I18n): {
|
|
10
10
|
(template: string, data: Record<string, CommandArgType | undefined> | (CommandArgType | undefined)[]): string;
|
|
11
|
-
<T extends keyof MessageMapping>(template: string, data: (
|
|
11
|
+
<T extends keyof MessageMapping>(template: string, data: (Message<T> | CommandArgType | undefined)[]): MessageList<T | "text">;
|
|
12
12
|
};
|
package/lib/utils/factory.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|
package/lib/utils/internal.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
3
|
* @Package @kotori-bot/core
|
|
4
|
-
* @Version 1.6.
|
|
4
|
+
* @Version 1.6.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
|
|
9
|
+
* @Date 2024/8/9 18:47:17
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
"use strict";
|