@zhin.js/adapter-qq 1.0.51 → 1.0.53
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/CHANGELOG.md +16 -0
- package/lib/adapter.d.ts +21 -0
- package/lib/adapter.d.ts.map +1 -0
- package/lib/adapter.js +258 -0
- package/lib/adapter.js.map +1 -0
- package/lib/bot.d.ts +102 -0
- package/lib/bot.d.ts.map +1 -0
- package/lib/bot.js +335 -0
- package/lib/bot.js.map +1 -0
- package/lib/index.d.ts +4 -118
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +9 -588
- package/lib/index.js.map +1 -1
- package/lib/types.d.ts +16 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +2 -0
- package/lib/types.js.map +1 -0
- package/package.json +9 -5
- package/skills/qq/SKILL.md +18 -0
- package/src/adapter.ts +269 -0
- package/src/bot.ts +345 -0
- package/src/index.ts +31 -0
- package/src/types.ts +24 -0
package/src/types.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* QQ 官方机器人适配器类型定义
|
|
3
|
+
*/
|
|
4
|
+
import type { Bot } from "qq-official-bot";
|
|
5
|
+
import type { ReceiverMode, ApplicationPlatform } from "qq-official-bot";
|
|
6
|
+
|
|
7
|
+
export { ReceiverMode } from "qq-official-bot";
|
|
8
|
+
export type { ApplicationPlatform, Intent } from "qq-official-bot";
|
|
9
|
+
|
|
10
|
+
export type QQBotConfig<
|
|
11
|
+
T extends ReceiverMode,
|
|
12
|
+
M extends ApplicationPlatform = ApplicationPlatform,
|
|
13
|
+
> = Bot.Config<T, M> & {
|
|
14
|
+
context: "qq";
|
|
15
|
+
name: string;
|
|
16
|
+
data_dir?: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export interface QQBot<
|
|
20
|
+
T extends ReceiverMode,
|
|
21
|
+
M extends ApplicationPlatform = ApplicationPlatform,
|
|
22
|
+
> {
|
|
23
|
+
$config: QQBotConfig<T, M>;
|
|
24
|
+
}
|