koishi-plugin-stock 2.0.2 → 2.0.3
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 +3 -0
- package/lib/index.d.ts +2 -2
- package/lib/index.js +17 -17
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -7,20 +7,20 @@ export interface BroadcastTask {
|
|
|
7
7
|
}
|
|
8
8
|
export interface Config {
|
|
9
9
|
enableDebugLog?: boolean;
|
|
10
|
+
allCommandsBlacklist?: string[];
|
|
10
11
|
activeMarketCapBlacklist?: string[];
|
|
11
12
|
stockAlertBlacklist?: string[];
|
|
12
13
|
limitUpBoardBlacklist?: string[];
|
|
13
14
|
limitDownBoardBlacklist?: string[];
|
|
14
15
|
stockSelectionBlacklist?: string[];
|
|
15
16
|
rideBlacklist?: string[];
|
|
16
|
-
|
|
17
|
+
allCommandsChannelBlacklist?: string[];
|
|
17
18
|
activeMarketCapChannelBlacklist?: string[];
|
|
18
19
|
stockAlertChannelBlacklist?: string[];
|
|
19
20
|
limitUpBoardChannelBlacklist?: string[];
|
|
20
21
|
limitDownBoardChannelBlacklist?: string[];
|
|
21
22
|
stockSelectionChannelBlacklist?: string[];
|
|
22
23
|
rideChannelBlacklist?: string[];
|
|
23
|
-
allCommandsChannelBlacklist?: string[];
|
|
24
24
|
broadcastTasks?: BroadcastTask[];
|
|
25
25
|
}
|
|
26
26
|
export declare const Config: Schema<Config>;
|
package/lib/index.js
CHANGED
|
@@ -4,12 +4,12 @@ exports.Config = void 0;
|
|
|
4
4
|
exports.apply = apply;
|
|
5
5
|
const koishi_1 = require("koishi");
|
|
6
6
|
const BroadcastTask = koishi_1.Schema.object({
|
|
7
|
-
times: koishi_1.Schema.string().description('触发时间 (
|
|
7
|
+
times: koishi_1.Schema.string().description('触发时间 (逗号分隔的列表, 推荐格式: HH:mm,HH:mm)').default('09:30'),
|
|
8
8
|
type: koishi_1.Schema.union([
|
|
9
9
|
koishi_1.Schema.const('private').description('私人消息'),
|
|
10
10
|
koishi_1.Schema.const('channel').description('频道消息'),
|
|
11
11
|
]).default('channel').description('消息类型'),
|
|
12
|
-
targetIds: koishi_1.Schema.string().description('目标ID列表 (
|
|
12
|
+
targetIds: koishi_1.Schema.string().description('目标ID列表 (逗号分隔的列表)').default(''),
|
|
13
13
|
content: koishi_1.Schema.union([
|
|
14
14
|
koishi_1.Schema.const('活跃市值'),
|
|
15
15
|
koishi_1.Schema.const('涨停看板'),
|
|
@@ -18,21 +18,21 @@ const BroadcastTask = koishi_1.Schema.object({
|
|
|
18
18
|
});
|
|
19
19
|
exports.Config = koishi_1.Schema.object({
|
|
20
20
|
enableDebugLog: koishi_1.Schema.boolean().description('启用调试日志').default(false),
|
|
21
|
-
allCommandsBlacklist: koishi_1.Schema.array(String).description('
|
|
22
|
-
activeMarketCapBlacklist: koishi_1.Schema.array(String).description('活跃市值指令黑名单用户ID'),
|
|
23
|
-
stockAlertBlacklist: koishi_1.Schema.array(String).description('异动指令黑名单用户ID'),
|
|
24
|
-
limitUpBoardBlacklist: koishi_1.Schema.array(String).description('涨停看板指令黑名单用户ID'),
|
|
25
|
-
limitDownBoardBlacklist: koishi_1.Schema.array(String).description('跌停看板指令黑名单用户ID'),
|
|
26
|
-
stockSelectionBlacklist: koishi_1.Schema.array(String).description('选股指令黑名单用户ID'),
|
|
27
|
-
rideBlacklist: koishi_1.Schema.array(String).description('骑指令黑名单用户ID'),
|
|
28
|
-
allCommandsChannelBlacklist: koishi_1.Schema.array(String).description('
|
|
29
|
-
activeMarketCapChannelBlacklist: koishi_1.Schema.array(String).description('活跃市值指令黑名单频道ID'),
|
|
30
|
-
stockAlertChannelBlacklist: koishi_1.Schema.array(String).description('异动指令黑名单频道ID'),
|
|
31
|
-
limitUpBoardChannelBlacklist: koishi_1.Schema.array(String).description('涨停看板指令黑名单频道ID'),
|
|
32
|
-
limitDownBoardChannelBlacklist: koishi_1.Schema.array(String).description('跌停看板指令黑名单频道ID'),
|
|
33
|
-
stockSelectionChannelBlacklist: koishi_1.Schema.array(String).description('选股指令黑名单频道ID'),
|
|
34
|
-
rideChannelBlacklist: koishi_1.Schema.array(String).description('骑指令黑名单频道ID'),
|
|
35
|
-
broadcastTasks: koishi_1.Schema.array(BroadcastTask).description('
|
|
21
|
+
allCommandsBlacklist: koishi_1.Schema.array(String).description('用户黑名单 - 全部指令黑名单用户ID'),
|
|
22
|
+
activeMarketCapBlacklist: koishi_1.Schema.array(String).description('用户黑名单 - 活跃市值指令黑名单用户ID'),
|
|
23
|
+
stockAlertBlacklist: koishi_1.Schema.array(String).description('用户黑名单 - 异动指令黑名单用户ID'),
|
|
24
|
+
limitUpBoardBlacklist: koishi_1.Schema.array(String).description('用户黑名单 - 涨停看板指令黑名单用户ID'),
|
|
25
|
+
limitDownBoardBlacklist: koishi_1.Schema.array(String).description('用户黑名单 - 跌停看板指令黑名单用户ID'),
|
|
26
|
+
stockSelectionBlacklist: koishi_1.Schema.array(String).description('用户黑名单 - 选股指令黑名单用户ID'),
|
|
27
|
+
rideBlacklist: koishi_1.Schema.array(String).description('用户黑名单 - 骑指令黑名单用户ID'),
|
|
28
|
+
allCommandsChannelBlacklist: koishi_1.Schema.array(String).description('频道黑名单 - 全部指令黑名单频道ID'),
|
|
29
|
+
activeMarketCapChannelBlacklist: koishi_1.Schema.array(String).description('频道黑名单 - 活跃市值指令黑名单频道ID'),
|
|
30
|
+
stockAlertChannelBlacklist: koishi_1.Schema.array(String).description('频道黑名单 - 异动指令黑名单频道ID'),
|
|
31
|
+
limitUpBoardChannelBlacklist: koishi_1.Schema.array(String).description('频道黑名单 - 涨停看板指令黑名单频道ID'),
|
|
32
|
+
limitDownBoardChannelBlacklist: koishi_1.Schema.array(String).description('频道黑名单 - 跌停看板指令黑名单频道ID'),
|
|
33
|
+
stockSelectionChannelBlacklist: koishi_1.Schema.array(String).description('频道黑名单 - 选股指令黑名单频道ID'),
|
|
34
|
+
rideChannelBlacklist: koishi_1.Schema.array(String).description('频道黑名单 - 骑指令黑名单频道ID'),
|
|
35
|
+
broadcastTasks: koishi_1.Schema.array(BroadcastTask).description('定时广播 - 定时广播任务列表'),
|
|
36
36
|
});
|
|
37
37
|
function apply(ctx, config) {
|
|
38
38
|
const logger = ctx.logger('stock');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-stock",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "A Koishi plugin that fetches stock data and provides market analysis, including active market cap, stock alerts, limit-up board, and stock selection features with configurable blacklists for each command.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|