koishi-plugin-stock 2.0.3 → 2.0.4
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.js +15 -15
- package/package.json +1 -1
package/README.md
CHANGED
package/lib/index.js
CHANGED
|
@@ -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('
|
|
23
|
-
stockAlertBlacklist: koishi_1.Schema.array(String).description('
|
|
24
|
-
limitUpBoardBlacklist: koishi_1.Schema.array(String).description('
|
|
25
|
-
limitDownBoardBlacklist: koishi_1.Schema.array(String).description('
|
|
26
|
-
stockSelectionBlacklist: koishi_1.Schema.array(String).description('
|
|
27
|
-
rideBlacklist: koishi_1.Schema.array(String).description('
|
|
28
|
-
allCommandsChannelBlacklist: koishi_1.Schema.array(String).description('
|
|
29
|
-
activeMarketCapChannelBlacklist: koishi_1.Schema.array(String).description('
|
|
30
|
-
stockAlertChannelBlacklist: koishi_1.Schema.array(String).description('
|
|
31
|
-
limitUpBoardChannelBlacklist: koishi_1.Schema.array(String).description('
|
|
32
|
-
limitDownBoardChannelBlacklist: koishi_1.Schema.array(String).description('
|
|
33
|
-
stockSelectionChannelBlacklist: koishi_1.Schema.array(String).description('
|
|
34
|
-
rideChannelBlacklist: koishi_1.Schema.array(String).description('
|
|
35
|
-
broadcastTasks: koishi_1.Schema.array(BroadcastTask).description('
|
|
21
|
+
allCommandsBlacklist: koishi_1.Schema.array(String).description('全部指令黑名单用户ID').role('collapse:userBlacklist'),
|
|
22
|
+
activeMarketCapBlacklist: koishi_1.Schema.array(String).description('活跃市值指令黑名单用户ID').role('collapse:userBlacklist'),
|
|
23
|
+
stockAlertBlacklist: koishi_1.Schema.array(String).description('异动指令黑名单用户ID').role('collapse:userBlacklist'),
|
|
24
|
+
limitUpBoardBlacklist: koishi_1.Schema.array(String).description('涨停看板指令黑名单用户ID').role('collapse:userBlacklist'),
|
|
25
|
+
limitDownBoardBlacklist: koishi_1.Schema.array(String).description('跌停看板指令黑名单用户ID').role('collapse:userBlacklist'),
|
|
26
|
+
stockSelectionBlacklist: koishi_1.Schema.array(String).description('选股指令黑名单用户ID').role('collapse:userBlacklist'),
|
|
27
|
+
rideBlacklist: koishi_1.Schema.array(String).description('骑指令黑名单用户ID').role('collapse:userBlacklist'),
|
|
28
|
+
allCommandsChannelBlacklist: koishi_1.Schema.array(String).description('全部指令黑名单频道ID').role('collapse:channelBlacklist'),
|
|
29
|
+
activeMarketCapChannelBlacklist: koishi_1.Schema.array(String).description('活跃市值指令黑名单频道ID').role('collapse:channelBlacklist'),
|
|
30
|
+
stockAlertChannelBlacklist: koishi_1.Schema.array(String).description('异动指令黑名单频道ID').role('collapse:channelBlacklist'),
|
|
31
|
+
limitUpBoardChannelBlacklist: koishi_1.Schema.array(String).description('涨停看板指令黑名单频道ID').role('collapse:channelBlacklist'),
|
|
32
|
+
limitDownBoardChannelBlacklist: koishi_1.Schema.array(String).description('跌停看板指令黑名单频道ID').role('collapse:channelBlacklist'),
|
|
33
|
+
stockSelectionChannelBlacklist: koishi_1.Schema.array(String).description('选股指令黑名单频道ID').role('collapse:channelBlacklist'),
|
|
34
|
+
rideChannelBlacklist: koishi_1.Schema.array(String).description('骑指令黑名单频道ID').role('collapse:channelBlacklist'),
|
|
35
|
+
broadcastTasks: koishi_1.Schema.array(BroadcastTask).description('定时广播任务列表').role('collapse:broadcast'),
|
|
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.4",
|
|
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",
|