@nestim/koishi-plugin-qq-group-manager 1.1.3 → 1.2.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/tsconfig.json ADDED
@@ -0,0 +1,24 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "commonjs",
5
+ "moduleResolution": "node",
6
+ "lib": ["ES2022", "DOM"],
7
+ "rootDir": "src",
8
+ "outDir": "lib",
9
+ "allowJs": true,
10
+ "checkJs": false,
11
+ "declaration": true,
12
+ "esModuleInterop": true,
13
+ "resolveJsonModule": true,
14
+ "skipLibCheck": true,
15
+ "strict": false,
16
+ "noImplicitAny": false,
17
+ "noImplicitThis": false,
18
+ "forceConsistentCasingInFileNames": true,
19
+ "types": ["node"],
20
+ "newLine": "lf"
21
+ },
22
+ "include": ["src/**/*.ts", "src/**/*.js"],
23
+ "exclude": ["node_modules", "lib", "test"]
24
+ }
package/lib/commands.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import { Context } from 'koishi';
2
- import type { Config } from './index';
3
- import type { QQGroupManagerService } from './service';
4
- export declare function registerCommands(ctx: Context, service: QQGroupManagerService, config: Config): void;
package/lib/commands.js DELETED
@@ -1,18 +0,0 @@
1
- "use strict";
2
- /**
3
- * 指令注册层。
4
- *
5
- * 说明:所有群管指令均为「方括号直连」语法(如 [mute] 12345 10 广告),
6
- * 由 service.routeBracketCommand 在消息监听中直接处理。
7
- *
8
- * 这里**不再**用 ctx.command 注册 [bot]:一旦注册,Koishi 会在 [bot] 消息下
9
- * 自动追加一份它自己生成的子指令列表(旧菜单),与插件自己的英文菜单同时
10
- * 出现,导致发一次 [bot] 冒出新旧两个菜单。现在 [bot] 完全由 routeBracketCommand
11
- * 处理,只输出一份菜单。
12
- */
13
- Object.defineProperty(exports, "__esModule", { value: true });
14
- exports.registerCommands = registerCommands;
15
-
16
- function registerCommands(_ctx, _service, _config) {
17
- // 无需注册任何 Koishi 指令,保留此导出以兼容既有调用方。
18
- }
package/lib/types.d.ts DELETED
@@ -1,23 +0,0 @@
1
- export interface GroupActionPlan {
2
- action: string;
3
- groupId: string;
4
- targetId?: string;
5
- reason?: string;
6
- }
7
- export interface ActionResult {
8
- ok: boolean;
9
- message: string;
10
- plan?: GroupActionPlan;
11
- }
12
- export type MemberRole = 'owner' | 'admin' | 'member';
13
- export interface AuthorizationResult {
14
- ok: boolean;
15
- message: string;
16
- userMessage?: string;
17
- }
18
- export interface MuteParseResult {
19
- ok: boolean;
20
- targetId: string;
21
- minutes: number;
22
- message: string;
23
- }
package/lib/types.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });