This repository was archived by the owner on Oct 14, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugin.json
More file actions
78 lines (78 loc) · 2.26 KB
/
plugin.json
File metadata and controls
78 lines (78 loc) · 2.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
{
"name": "NFA库存监控",
"description": "快速获取NFA库存信息的Koishi插件",
"version": "1.2.1",
"author": "michaelwucoc",
"license": "MIT",
"keywords": ["nfa", "stock", "monitor", "inventory"],
"homepage": "https://github.com/VTeam-Studio/koishi-plugin-nfa-stock-checker",
"repository": {
"type": "git",
"url": "https://github.com/VTeam-Studio/koishi-plugin-nfa-stock-checker.git"
},
"main": "lib/index.js",
"peerDependencies": {
"koishi": "^4.0.0"
},
"dependencies": {
"axios": "^1.6.0"
},
"features": [
"快速获取NFA库存信息",
"可配置的API参数",
"实时库存数据展示",
"简单易用的单次查询",
"支持自定义指令",
"支持查询指定商品ID库存",
"可配置消息模板"
],
"commands": [
{
"name": "nfa",
"description": "获取NFA库存信息"
},
{
"name": "nfa-query",
"description": "查询指定商品ID的库存"
},
{
"name": "nfa-test",
"description": "测试自定义消息模板"
},
{
"name": "nfa-help",
"description": "显示NFA库存监控插件帮助信息"
}
],
"config": {
"apiUrl": {
"type": "string",
"default": "https://mcheika.lol/user/api/index/stock",
"description": "API接口地址"
},
"cookie": {
"type": "string",
"default": "_ok1_=OQjMRsSlWTvaBJGEBGOhyX03gXTXMGCpY/hbQkcNCKhAfakznli7RrxdZaYjFbPxV7UYMjZLjq48Nnc8fFQOHGqAtEUMb2XJ4w7VUt9heu/HwogXLAcGFdARPViZjeza",
"description": "请求Cookie"
},
"itemId": {
"type": "string",
"default": "2",
"description": "默认商品ID"
},
"messageTemplate": {
"type": "string",
"default": "The Stock of NFA : {stock}",
"description": "自定义消息模板,使用 {stock} 作为库存数量占位符"
},
"customCommands": {
"type": "array",
"default": [
{ "command": "mfa", "itemId": "3", "description": "获取MFA库存信息" },
{ "command": "stock", "itemId": "2", "description": "获取NFA库存信息" },
{ "command": "库存", "itemId": "2", "description": "获取NFA库存信息" }
],
"description": "自定义指令配置,每个指令可以对应不同的商品ID"
}
}
}