koishi-plugin-stock 2.0.3 → 2.0.5
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 +6 -0
- package/lib/index.js +19 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,6 +57,12 @@ npm install koishi-plugin-stock
|
|
|
57
57
|
|
|
58
58
|
## 更新日志
|
|
59
59
|
|
|
60
|
+
### v2.0.4
|
|
61
|
+
- 实现 Koishi 业界标准的配置分组,每个配置项打上对应的 role 标签,在插件设置页中形成可折叠的分组
|
|
62
|
+
|
|
63
|
+
### v2.0.3
|
|
64
|
+
- 优化插件配置页显示,使用 Koishi 行业标准方式实现配置分类,每个配置项描述前缀形成分类标签
|
|
65
|
+
|
|
60
66
|
### v2.0.2
|
|
61
67
|
- 优化插件配置页显示,描述中添加配置分类标签(用户黑名单、频道黑名单、定时广播)
|
|
62
68
|
|
package/lib/index.js
CHANGED
|
@@ -17,22 +17,26 @@ const BroadcastTask = koishi_1.Schema.object({
|
|
|
17
17
|
]).default('活跃市值').description('广播内容'),
|
|
18
18
|
});
|
|
19
19
|
exports.Config = koishi_1.Schema.object({
|
|
20
|
+
// --- 系统设置 ---
|
|
20
21
|
enableDebugLog: koishi_1.Schema.boolean().description('启用调试日志').default(false),
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
22
|
+
// --- 用户黑名单 ---
|
|
23
|
+
allCommandsBlacklist: koishi_1.Schema.array(String).description('全部指令黑名单用户ID'),
|
|
24
|
+
activeMarketCapBlacklist: koishi_1.Schema.array(String).description('活跃市值指令黑名单用户ID'),
|
|
25
|
+
stockAlertBlacklist: koishi_1.Schema.array(String).description('异动指令黑名单用户ID'),
|
|
26
|
+
limitUpBoardBlacklist: koishi_1.Schema.array(String).description('涨停看板指令黑名单用户ID'),
|
|
27
|
+
limitDownBoardBlacklist: koishi_1.Schema.array(String).description('跌停看板指令黑名单用户ID'),
|
|
28
|
+
stockSelectionBlacklist: koishi_1.Schema.array(String).description('选股指令黑名单用户ID'),
|
|
29
|
+
rideBlacklist: koishi_1.Schema.array(String).description('骑指令黑名单用户ID'),
|
|
30
|
+
// --- 频道黑名单 ---
|
|
31
|
+
allCommandsChannelBlacklist: koishi_1.Schema.array(String).description('全部指令黑名单频道ID'),
|
|
32
|
+
activeMarketCapChannelBlacklist: koishi_1.Schema.array(String).description('活跃市值指令黑名单频道ID'),
|
|
33
|
+
stockAlertChannelBlacklist: koishi_1.Schema.array(String).description('异动指令黑名单频道ID'),
|
|
34
|
+
limitUpBoardChannelBlacklist: koishi_1.Schema.array(String).description('涨停看板指令黑名单频道ID'),
|
|
35
|
+
limitDownBoardChannelBlacklist: koishi_1.Schema.array(String).description('跌停看板指令黑名单频道ID'),
|
|
36
|
+
stockSelectionChannelBlacklist: koishi_1.Schema.array(String).description('选股指令黑名单频道ID'),
|
|
37
|
+
rideChannelBlacklist: koishi_1.Schema.array(String).description('骑指令黑名单频道ID'),
|
|
38
|
+
// --- 定时广播 ---
|
|
39
|
+
broadcastTasks: koishi_1.Schema.array(BroadcastTask).description('定时广播任务列表'),
|
|
36
40
|
});
|
|
37
41
|
function apply(ctx, config) {
|
|
38
42
|
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.5",
|
|
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",
|