koishi-plugin-delta-force 1.0.0-alpha.0

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/README.md ADDED
@@ -0,0 +1,145 @@
1
+ # koishi-plugin-delta-force
2
+
3
+ [![npm](https://img.shields.io/npm/v/koishi-plugin-delta-force?style=flat-square)](https://www.npmjs.com/package/koishi-plugin-delta-force)
4
+ [![License](https://img.shields.io/badge/license-AGPL--3.0-blue?style=flat-square)](https://github.com/Dnyo666/koishi-plugin-delta-force/blob/main/LICENSE)
5
+
6
+ 一个适用于 [Koishi](https://koishi.chat/) 的三角洲行动游戏数据查询插件
7
+
8
+ 支持 QQ/微信/WeGame 扫码登录或 Token 手动绑定,支持查询个人信息、日报、周报、战绩等游戏数据
9
+
10
+ **使用中遇到问题请加 QQ 群咨询:932459332**
11
+
12
+ ## 简介
13
+
14
+ 三角洲行动是一款由腾讯琳琅天上工作室开发的 FPS 游戏,本插件旨在帮助玩家更方便地查询游戏数据,提升游戏体验。支持烽火地带和全面战场两种模式的数据查询。
15
+
16
+ 插件当前处于正式运营阶段,欢迎加入 [932459332](https://qm.qq.com/q/CrYiAQxJPW) 交流反馈,同时也欢迎各位提交 ISSUE
17
+
18
+ 插件采用统一后端处理,使用插件请前往 [管理页面](https://df.shallow.ink) 进行注册登录并获取 API Key,如果需要部分功能,可选择订阅专业版(4.5元/月),费用仅供服务器维护
19
+
20
+ ## 安装
21
+
22
+ ### 使用 Koishi 插件市场(推荐)
23
+
24
+ 在 Koishi 控制台的插件市场中搜索 `delta-force` 并安装
25
+
26
+ ### 使用 npm
27
+
28
+ ```bash
29
+ npm install koishi-plugin-delta-force
30
+ ```
31
+
32
+ ### 使用 yarn
33
+
34
+ ```bash
35
+ yarn add koishi-plugin-delta-force
36
+ ```
37
+
38
+ ## 配置
39
+
40
+ 在 Koishi 控制台中配置以下必需项:
41
+
42
+ - `apiKey`: API 密钥,在 [管理页面](https://df.shallow.ink/api-keys) 创建
43
+ - `clientID`: 客户端 ID,在 [管理页面](https://df.shallow.ink/) 的个人信息获取(用户 ID)
44
+ - `apiBaseUrl`: API 服务器地址(可选,默认使用官方服务器)
45
+
46
+ ## 功能列表
47
+
48
+ ### 个人类功能
49
+
50
+ - [x] QQ/微信/WeGame/QQ安全中心 扫码登录
51
+ - [x] 多账号分组管理(QQ/微信、WeGame、QQ安全中心)
52
+ - [x] 账号切换与解绑
53
+ - [x] 角色绑定
54
+ - [x] 个人信息查询
55
+ - [x] UID 查询
56
+ - [ ] 日报/周报数据
57
+ - [ ] 战绩查询
58
+ - [x] 每日密码查询
59
+ - [ ] 战绩推送
60
+ - [ ] 藏品/资产查询
61
+ - [ ] 货币信息查询
62
+ - [ ] 封号记录查询
63
+ - [ ] 特勤处状态
64
+ - [ ] 日报/周报订阅推送
65
+
66
+ ### 工具类功能
67
+
68
+ - [x] 每日密码查询
69
+ - [ ] 开黑房间创建与管理
70
+ - [ ] 官方文章&公告
71
+ - [ ] 社区改枪码
72
+ - [ ] 物品查询搜索
73
+ - [ ] 物品价格历史
74
+ - [ ] 特勤处利润计算
75
+ - [ ] 三角洲计算器(伤害、维修计算)
76
+
77
+ ### 娱乐类功能
78
+
79
+ - [ ] 摸金模拟器
80
+ - [ ] 对局模拟器
81
+ - [ ] 随机音频
82
+ - [ ] 随机表情包
83
+
84
+ ## 命令列表
85
+
86
+ | 命令 | 功能 | 示例 |
87
+ | --- | --- | --- |
88
+ | `df.login [平台]` | 登录账号 | `df.login qq` / `df.login wechat` / `df.login wegame` |
89
+ | `df.bind [token]` | 绑定游戏角色 | `df.bind` 或 `df.bind <token>` |
90
+ | `df.info` | 查询个人信息 | 显示昵称、等级、UID、资产等详情 |
91
+ | `df.uid` | 查询 UID | 快速查看角色 UID |
92
+ | `df.account` | 账号管理 | 查看已绑定账号列表 |
93
+ | `df.switch <序号>` | 切换账号 | 在多个绑定账号间切换 |
94
+ | `df.unbind <序号>` | 解绑账号 | 解绑指定账号 |
95
+ | `df.daily [类型]` | 查询日报 | `df.daily` / `df.daily 烽火` / `df.daily 全面` |
96
+ | `df.weekly [类型]` | 查询周报 | `df.weekly` / `df.weekly 烽火` / `df.weekly 全面` |
97
+ | `df.record [类型] [页码]` | 查询战绩 | `df.record 烽火 1` / `df.record 全面 2` |
98
+ | `df.password` | 每日密码 | 查询当日地图密码 |
99
+
100
+ ### 登录平台说明
101
+
102
+ - `qq` - QQ 扫码登录
103
+ - `wechat` / `wx` / `微信` - 微信扫码登录
104
+ - `wegame` - WeGame(使用 QQ 扫描)
105
+ - `wegame/wechat` / `wegame微信` - WeGame(使用微信扫描)
106
+ - `qqsafe` / `安全中心` - QQ 安全中心
107
+
108
+ ### 账号分组管理
109
+
110
+ 插件支持多账号分组管理,不同平台的账号会自动分组:
111
+
112
+ - **QQ & 微信分组**:QQ 和微信登录的账号
113
+ - **WeGame 分组**:WeGame 登录的账号
114
+ - **QQ 安全中心分组**:QQ 安全中心登录的账号
115
+
116
+ 每个分组可以独立激活一个账号,切换账号时只会影响对应分组的激活状态。
117
+
118
+ ## 鸣谢
119
+
120
+ - **API 支持**:感谢 [浅巷墨黎](https://github.com/dnyo666) 整理并提供的三角洲行动 API 接口文档及后端
121
+ - **代码贡献**:
122
+ - [@浅巷墨黎(Dnyo666)](https://github.com/dnyo666):项目主要开发者
123
+ - [@MapleLeaf](https://github.com/MapleLeaf2007):后端基础架构开发
124
+ - [@Admilk](https://github.com/Admilkk):后端基础架构开发
125
+ - **特别鸣谢**:
126
+ - [云崽版三角洲插件](https://github.com/dnyo666/delta-force-plugin):本插件基于云崽版本重构而来
127
+ - [Koishi](https://koishi.chat/):优秀的跨平台机器人框架
128
+ - [三角洲行动官方](https://df.qq.com):感谢官方的数据
129
+ - [繁星攻略组](https://space.bilibili.com/3546853731731919):授权提供计算器算法和数据
130
+
131
+ ## 其他框架
132
+
133
+ - **云崽**:[delta-force-plugin](https://github.com/Dnyo666/delta-force-plugin)
134
+ - **Nonebot2**:[nonebot-plugin-delta-force](https://github.com/Entropy-Increase-Team/nonebot-plugin-delta-force)
135
+ - **Koishi**:[koishi-plugin-delta-force](https://github.com/Entropy-Increase-Team/koishi-plugin-delta-force)
136
+
137
+ ## 支持与贡献
138
+
139
+ 如果你喜欢这个项目,请不妨点个 Star🌟,这是对开发者最大的动力。
140
+
141
+ 有意见或者建议也欢迎提交 [Issues](https://github.com/dnyo666/koishi-plugin-delta-force/issues) 和 [Pull requests](https://github.com/dnyo666/koishi-plugin-delta-force/pulls)。
142
+
143
+ ## 许可证
144
+
145
+ 本项目使用 [GNU AGPLv3](https://choosealicense.com/licenses/agpl-3.0/) 作为开源许可证。
package/lib/api.d.ts ADDED
@@ -0,0 +1,32 @@
1
+ import { Context } from 'koishi';
2
+ import { Config } from './config';
3
+ import { ApiResponse, LoginResponse, BindCharacterResponse, UserInfo, CareerData, UserListItem } from './types';
4
+ export declare class ApiService {
5
+ private ctx;
6
+ private config;
7
+ constructor(ctx: Context, config: Config);
8
+ private request;
9
+ getLoginQr(platform?: string): Promise<LoginResponse>;
10
+ getLoginStatus(platform: string, frameworkToken: string): Promise<ApiResponse>;
11
+ bindUser(data: {
12
+ platformID: string;
13
+ frameworkToken: string;
14
+ clientID: string;
15
+ clientType: string;
16
+ }): Promise<ApiResponse>;
17
+ getUserList(platformID: string, clientID: string): Promise<ApiResponse<UserListItem[]>>;
18
+ bindCharacter(frameworkToken: string): Promise<BindCharacterResponse>;
19
+ getPersonalInfo(frameworkToken: string): Promise<ApiResponse<{
20
+ userData: unknown;
21
+ careerData: CareerData;
22
+ }> & {
23
+ roleInfo: UserInfo;
24
+ }>;
25
+ getDailyReport(frameworkToken: string, type?: string): Promise<ApiResponse>;
26
+ getWeeklyReport(frameworkToken: string, type?: string, isShowNullFriend?: boolean, date?: string): Promise<ApiResponse>;
27
+ getRecordList(frameworkToken: string, type?: string, page?: number): Promise<ApiResponse>;
28
+ getMaps(): Promise<ApiResponse>;
29
+ getOperators(): Promise<ApiResponse>;
30
+ getDailyKeyword(): Promise<ApiResponse>;
31
+ }
32
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,qBAAqB,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAA;AAE/G,qBAAa,UAAU;IAEnB,OAAO,CAAC,GAAG;IACX,OAAO,CAAC,MAAM;gBADN,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM;YAGV,OAAO;IAqCf,UAAU,CAAC,QAAQ,GAAE,MAAa,GAAG,OAAO,CAAC,aAAa,CAAC;IAK3D,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAK9E,QAAQ,CAAC,IAAI,EAAE;QACnB,UAAU,EAAE,MAAM,CAAA;QAClB,cAAc,EAAE,MAAM,CAAA;QACtB,QAAQ,EAAE,MAAM,CAAA;QAChB,UAAU,EAAE,MAAM,CAAA;KACnB,GAAG,OAAO,CAAC,WAAW,CAAC;IAKlB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,YAAY,EAAE,CAAC,CAAC;IASvF,aAAa,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAQrE,eAAe,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;QACjE,QAAQ,EAAE,OAAO,CAAA;QACjB,UAAU,EAAE,UAAU,CAAA;KACvB,CAAC,GAAG;QACH,QAAQ,EAAE,QAAQ,CAAA;KACnB,CAAC;IAUI,cAAc,CAAC,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAS3E,eAAe,CACnB,cAAc,EAAE,MAAM,EACtB,IAAI,CAAC,EAAE,MAAM,EACb,gBAAgB,CAAC,EAAE,OAAO,EAC1B,IAAI,CAAC,EAAE,MAAM,GACZ,OAAO,CAAC,WAAW,CAAC;IAejB,aAAa,CACjB,cAAc,EAAE,MAAM,EACtB,IAAI,GAAE,MAAc,EACpB,IAAI,GAAE,MAAU,GACf,OAAO,CAAC,WAAW,CAAC;IASjB,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC;IAK/B,YAAY,IAAI,OAAO,CAAC,WAAW,CAAC;IAKpC,eAAe,IAAI,OAAO,CAAC,WAAW,CAAC;CAG9C"}
@@ -0,0 +1,5 @@
1
+ import { Context } from 'koishi';
2
+ import { Config } from '../config';
3
+ import { ApiService } from '../api';
4
+ export declare function registerAccountCommands(ctx: Context, config: Config, api: ApiService): void;
5
+ //# sourceMappingURL=account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/commands/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAGnC,wBAAgB,uBAAuB,CACrC,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,UAAU,QA0OhB"}
@@ -0,0 +1,5 @@
1
+ import { Context } from 'koishi';
2
+ import { ApiService } from '../api';
3
+ import { DataManager } from '../data';
4
+ export declare function registerDailyCommands(ctx: Context, api: ApiService, dataManager: DataManager): void;
5
+ //# sourceMappingURL=daily.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"daily.d.ts","sourceRoot":"","sources":["../../src/commands/daily.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAKrC,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,UAAU,EACf,WAAW,EAAE,WAAW,QA4BzB"}
@@ -0,0 +1,5 @@
1
+ import { Context } from 'koishi';
2
+ import { ApiService } from '../api';
3
+ import { DataManager } from '../data';
4
+ export declare function registerInfoCommands(ctx: Context, api: ApiService, dataManager: DataManager): void;
5
+ //# sourceMappingURL=info.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"info.d.ts","sourceRoot":"","sources":["../../src/commands/info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAIrC,wBAAgB,oBAAoB,CAClC,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,UAAU,EACf,WAAW,EAAE,WAAW,QA2HzB"}
@@ -0,0 +1,5 @@
1
+ import { Context } from 'koishi';
2
+ import { Config } from '../config';
3
+ import { ApiService } from '../api';
4
+ export declare function registerLoginCommands(ctx: Context, config: Config, api: ApiService): void;
5
+ //# sourceMappingURL=login.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"login.d.ts","sourceRoot":"","sources":["../../src/commands/login.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAK,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAInC,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM,EACd,GAAG,EAAE,UAAU,QAwPhB"}
@@ -0,0 +1,4 @@
1
+ import { Context } from 'koishi';
2
+ import { ApiService } from '../api';
3
+ export declare function registerPasswordCommands(ctx: Context, api: ApiService): void;
4
+ //# sourceMappingURL=password.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"password.d.ts","sourceRoot":"","sources":["../../src/commands/password.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AAYnC,wBAAgB,wBAAwB,CACtC,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,UAAU,QA4BhB"}
@@ -0,0 +1,5 @@
1
+ import { Context } from 'koishi';
2
+ import { ApiService } from '../api';
3
+ import { DataManager } from '../data';
4
+ export declare function registerRecordCommands(ctx: Context, api: ApiService, dataManager: DataManager): void;
5
+ //# sourceMappingURL=record.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../src/commands/record.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAIrC,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,UAAU,EACf,WAAW,EAAE,WAAW,QAyCzB"}
@@ -0,0 +1,5 @@
1
+ import { Context } from 'koishi';
2
+ import { ApiService } from '../api';
3
+ import { DataManager } from '../data';
4
+ export declare function registerWeeklyCommands(ctx: Context, api: ApiService, dataManager: DataManager): void;
5
+ //# sourceMappingURL=weekly.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"weekly.d.ts","sourceRoot":"","sources":["../../src/commands/weekly.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAA;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAA;AAKrC,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,UAAU,EACf,WAAW,EAAE,WAAW,QAsCzB"}
@@ -0,0 +1,8 @@
1
+ import { Schema } from 'koishi';
2
+ export interface Config {
3
+ apiKey: string;
4
+ clientID: string;
5
+ apiBaseUrl: string;
6
+ }
7
+ export declare const Config: Schema<Config>;
8
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAE/B,MAAM,WAAW,MAAM;IACrB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,CAkBhC,CAAA"}
package/lib/data.d.ts ADDED
@@ -0,0 +1,11 @@
1
+ import { Context } from 'koishi';
2
+ import { ApiService } from './api';
3
+ export declare class DataManager {
4
+ private ctx;
5
+ private api;
6
+ constructor(ctx: Context, api: ApiService);
7
+ init(): Promise<void>;
8
+ getMapName(id: string | number): string;
9
+ getOperatorName(id: string | number): string;
10
+ }
11
+ //# sourceMappingURL=data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../src/data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAgBlC,qBAAa,WAAW;IAEpB,OAAO,CAAC,GAAG;IACX,OAAO,CAAC,GAAG;gBADH,GAAG,EAAE,OAAO,EACZ,GAAG,EAAE,UAAU;IAGnB,IAAI;IAsBV,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM;IAKvC,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM;CAI7C"}
@@ -0,0 +1,12 @@
1
+ import { Context } from 'koishi';
2
+ import { DeltaForceToken } from './types';
3
+ export declare function extendDatabase(ctx: Context): void;
4
+ export declare function getTokenGroup(tokenType: string): string;
5
+ export declare function getGroupActiveToken(ctx: Context, userId: string, platform: string, group: string): Promise<string | null>;
6
+ export declare function setGroupActiveToken(ctx: Context, userId: string, platform: string, group: string, token: string | null): Promise<void>;
7
+ export declare function getActiveToken(ctx: Context, userId: string, platform: string): Promise<string | null>;
8
+ export declare function setActiveToken(ctx: Context, userId: string, platform: string, token: string | null): Promise<void>;
9
+ export declare function saveToken(ctx: Context, userId: string, platform: string, frameworkToken: string, tokenType: string): Promise<void>;
10
+ export declare function getUserTokens(ctx: Context, userId: string, platform: string): Promise<DeltaForceToken[]>;
11
+ export declare function deleteUserToken(ctx: Context, userId: string, platform: string, frameworkToken: string): Promise<void>;
12
+ //# sourceMappingURL=database.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"database.d.ts","sourceRoot":"","sources":["../src/database.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAEzC,wBAAgB,cAAc,CAAC,GAAG,EAAE,OAAO,QA+B1C;AAGD,wBAAgB,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAYvD;AAGD,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,GACZ,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAYxB;AAGD,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GAAG,IAAI,GACnB,OAAO,CAAC,IAAI,CAAC,CA2Bf;AAGD,wBAAsB,cAAc,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAY3G;AAGD,wBAAsB,cAAc,CAClC,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,GAAG,IAAI,GACnB,OAAO,CAAC,IAAI,CAAC,CAEf;AAGD,wBAAsB,SAAS,CAC7B,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,MAAM,EACtB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,IAAI,CAAC,CA6Bf;AAGD,wBAAsB,aAAa,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAE9G;AAGD,wBAAsB,eAAe,CACnC,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC,IAAI,CAAC,CAMf"}
@@ -0,0 +1,11 @@
1
+ import { DataManager } from './data';
2
+ import { DailyReportData, WeeklyReportData } from './types';
3
+ /**
4
+ * 格式化日报数据
5
+ */
6
+ export declare function formatDailyReport(data: DailyReportData, dataManager: DataManager): string;
7
+ /**
8
+ * 格式化周报数据
9
+ */
10
+ export declare function formatWeeklyReport(data: WeeklyReportData, dataManager: DataManager): string[];
11
+ //# sourceMappingURL=formatter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatter.d.ts","sourceRoot":"","sources":["../src/formatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAA;AACpC,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE3D;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,eAAe,EAAE,WAAW,EAAE,WAAW,GAAG,MAAM,CAqDzF;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,gBAAgB,EAAE,WAAW,EAAE,WAAW,GAAG,MAAM,EAAE,CAkI7F"}
package/lib/index.d.ts ADDED
@@ -0,0 +1,10 @@
1
+ import { Context } from 'koishi';
2
+ import { Config } from './config';
3
+ export declare const name = "delta-force";
4
+ export { Config } from './config';
5
+ export declare const inject: {
6
+ required: string[];
7
+ optional: string[];
8
+ };
9
+ export declare function apply(ctx: Context, config: Config): void;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAA;AAChC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAYjC,eAAO,MAAM,IAAI,gBAAgB,CAAA;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEjC,eAAO,MAAM,MAAM;;;CAGlB,CAAA;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,QAoDjD"}