koishi-plugin-node-async-bot-all 2.31.0 → 3.0.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/package.json CHANGED
@@ -1,30 +1,40 @@
1
1
  {
2
2
  "name": "koishi-plugin-node-async-bot-all",
3
+ "version": "3.0.0",
3
4
  "description": "NodeAsync Bot插件(自用)",
4
- "version": "2.31.0",
5
- "main": "lib/index.js",
6
- "typings": "lib/index.d.ts",
5
+ "keywords": [
6
+ "chatbot",
7
+ "koishi",
8
+ "plugin"
9
+ ],
10
+ "homepage": "https://www.tasaed.top",
11
+ "license": "AGPL-3.0",
7
12
  "contributors": [
8
13
  "ccd2s <tasaedem@outlook.com>"
9
14
  ],
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/ccd2s/node-async-bot-all.git"
18
+ },
10
19
  "files": [
11
20
  "lib",
12
21
  "dist",
13
22
  "res"
14
23
  ],
15
- "license": "AGPL-3.0",
16
- "homepage": "https://www.tasaed.top",
17
- "keywords": [
18
- "chatbot",
19
- "koishi",
20
- "plugin"
21
- ],
22
- "koishi": {
23
- "preview": true
24
+ "main": "lib/index.js",
25
+ "typings": "lib/index.d.ts",
26
+ "scripts": {
27
+ "lint": "oxlint",
28
+ "lint:fix": "oxlint --fix",
29
+ "fmt": "oxfmt",
30
+ "fmt:check": "oxfmt --check"
24
31
  },
25
- "repository": {
26
- "type": "git",
27
- "url": "git+https://github.com/ccd2s/node-async-bot-all.git"
32
+ "dependencies": {
33
+ "feedsmith": "^2.9.4",
34
+ "minecraft-server-util": "^5.4.4",
35
+ "oxfmt": "^0.52.0",
36
+ "oxlint": "^1.67.0",
37
+ "steam-server-query": "^1.1.3"
28
38
  },
29
39
  "devDependencies": {
30
40
  "@koishijs/client": "^5.30.11"
@@ -35,11 +45,7 @@
35
45
  "@koishijs/plugin-market": "^2.11.8",
36
46
  "koishi": "^4.18.7"
37
47
  },
38
- "dependencies": {
39
- "@bbob/html": "^4.3.1",
40
- "@bbob/preset-html5": "^4.3.1",
41
- "bing-translate-api": "^4.2.0",
42
- "minecraft-server-util": "^5.4.4",
43
- "steam-server-query": "^1.1.3"
48
+ "koishi": {
49
+ "preview": true
44
50
  }
45
51
  }
@@ -0,0 +1,179 @@
1
+ <!doctype html>
2
+ <html lang="zh-CN">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Steam News Template</title>
7
+ <style>
8
+ /* 基础样式与 Steam 经典暗色调背景 */
9
+ body {
10
+ background-color: #1b2838; /* Steam 经典蓝黑背景 */
11
+ color: #c6d4df; /* 浅灰色文字,降低视觉疲劳 */
12
+ font-family:
13
+ "Motiva Sans",
14
+ -apple-system,
15
+ BlinkMacSystemFont,
16
+ "Segoe UI",
17
+ Roboto,
18
+ "Helvetica Neue",
19
+ Arial,
20
+ sans-serif;
21
+ margin: 0;
22
+ padding: 40px 20px;
23
+ display: flex;
24
+ justify-content: center;
25
+ box-sizing: border-box;
26
+ }
27
+
28
+ /* 新闻卡片容器 */
29
+ .news-container {
30
+ max-width: 800px;
31
+ width: 100%;
32
+ background: #121c27; /* 略深于背景的卡片色 */
33
+ border-radius: 5px;
34
+ padding: 30px;
35
+ box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
36
+ border: 1px solid rgba(255, 255, 255, 0.05);
37
+ }
38
+
39
+ /* 封面图容器(自适应比例,避免拉伸) */
40
+ .cover-image-container {
41
+ width: 100%;
42
+ aspect-ratio: 16 / 9; /* 保持 standard 16:9 比例 */
43
+ background-color: #2a3f5a;
44
+ border-radius: 4px;
45
+ overflow: hidden;
46
+ margin-bottom: 24px;
47
+ position: relative;
48
+ }
49
+
50
+ .cover-image {
51
+ width: 100%;
52
+ height: 100%;
53
+ object-fit: cover; /* 画面裁切填充 */
54
+ display: block;
55
+ }
56
+
57
+ /* 日期样式 */
58
+ .news-date {
59
+ font-size: 14px;
60
+ color: #66c0f4; /* Steam 经典亮蓝色 */
61
+ text-transform: uppercase;
62
+ letter-spacing: 1px;
63
+ margin-bottom: 10px;
64
+ font-weight: 500;
65
+ }
66
+
67
+ /* 标题样式 */
68
+ .news-title {
69
+ font-size: 30px;
70
+ font-weight: 700;
71
+ color: #ffffff;
72
+ margin: 0 0 24px 0;
73
+ line-height: 1.3;
74
+ letter-spacing: -0.5px;
75
+ }
76
+
77
+ /* 分割线 */
78
+ .divider {
79
+ height: 1px;
80
+ background: linear-gradient(90deg, #2a3f5a 0%, rgba(42, 63, 90, 0) 100%);
81
+ margin-bottom: 24px;
82
+ }
83
+
84
+ /* ==========================================================================
85
+ Steam BBCode 标签适配样式
86
+ ========================================================================== */
87
+
88
+ /* 段落 */
89
+ .bb_paragraph {
90
+ font-size: 16px;
91
+ line-height: 1.7;
92
+ color: #acb8c4;
93
+ margin-top: 0;
94
+ margin-bottom: 18px;
95
+ }
96
+
97
+ /* 一级标题 */
98
+ .bb_h1 {
99
+ font-size: 24px;
100
+ font-weight: 700;
101
+ color: #ffffff;
102
+ margin-top: 32px;
103
+ margin-bottom: 14px;
104
+ padding-bottom: 6px;
105
+ border-bottom: 1px solid #2a3f5a;
106
+ }
107
+
108
+ /* 二级标题 */
109
+ .bb_h2 {
110
+ font-size: 20px;
111
+ font-weight: 700;
112
+ color: #ffffff;
113
+ margin-top: 26px;
114
+ margin-bottom: 12px;
115
+ }
116
+
117
+ /* 三级标题 */
118
+ .bb_h3 {
119
+ font-size: 18px;
120
+ font-weight: 600;
121
+ color: #66c0f4; /* 使用亮蓝强调 */
122
+ margin-top: 22px;
123
+ margin-bottom: 10px;
124
+ }
125
+
126
+ /* 无序列表 */
127
+ .bb_ul {
128
+ list-style-type: none; /* 移除默认圆点,改用自定义美化 */
129
+ padding-left: 0;
130
+ margin-top: 0;
131
+ margin-bottom: 18px;
132
+ }
133
+
134
+ /* 列表项 */
135
+ .bb_ul li {
136
+ position: relative;
137
+ padding-left: 20px;
138
+ margin-bottom: 8px;
139
+ font-size: 15px;
140
+ line-height: 1.6;
141
+ color: #acb8c4;
142
+ }
143
+
144
+ /* 使用伪元素绘制 Steam 风格的点(小方块) */
145
+ .bb_ul li::before {
146
+ content: "•";
147
+ position: absolute;
148
+ left: 5px;
149
+ color: #66c0f4;
150
+ font-weight: bold;
151
+ }
152
+
153
+ .bb_link {
154
+ text-decoration: none;
155
+ color: #ffffff;
156
+ }
157
+ </style>
158
+ </head>
159
+ <body>
160
+ <div class="news-container">
161
+ <!--!
162
+ <div class="cover-image-container">
163
+ <img class="cover-image" src="{imgUrl}" alt="Cover Image">
164
+ </div>!!-->
165
+
166
+ <!-- 日期占位符 -->
167
+ <div class="news-date">{date}</div>
168
+
169
+ <!-- 标题占位符 -->
170
+ <h1 class="news-title">{title}</h1>
171
+
172
+ <!-- 装饰分割线 -->
173
+ <div class="divider"></div>
174
+
175
+ <!-- 新闻正文内容 -->
176
+ <div class="news-content">{content}</div>
177
+ </div>
178
+ </body>
179
+ </html>
package/res/slNews.html DELETED
@@ -1,71 +0,0 @@
1
- <!DOCTYPE html>
2
- <html lang="zh-CN">
3
- <head>
4
- <meta charset="UTF-8">
5
- <style>
6
- body {
7
- margin: 0;
8
- padding: 0;
9
- background-color: #1b2838; /* Steam 经典深蓝背景 */
10
- font-family: "Motiva Sans", Arial, Helvetica, sans-serif;
11
- color: #acb2b8;
12
- display: flex;
13
- justify-content: center;
14
- }
15
- .container {
16
- width: 100%;
17
- max-width: 800px;
18
- background-color: #1b2838;
19
- }
20
- .content-padding {
21
- padding: 30px;
22
- }
23
- .date {
24
- color: #808589;
25
- font-size: 13px;
26
- text-transform: uppercase;
27
- letter-spacing: 1px;
28
- margin-bottom: 10px;
29
- }
30
- .title {
31
- color: #ffffff;
32
- font-size: 32px;
33
- font-weight: bold;
34
- line-height: 1.2;
35
- margin-bottom: 20px;
36
- text-shadow: 0 0 10px rgba(0,0,0,0.5);
37
- }
38
- .body-text {
39
- font-size: 16px;
40
- line-height: 1.6;
41
- color: #d1d1d1;
42
- }
43
- .body-text p {
44
- margin-bottom: 20px;
45
- }
46
- .update-box h3 {
47
- color: #1a9fff;
48
- margin-top: 0;
49
- }
50
- ul {
51
- padding-left: 20px;
52
- }
53
- li {
54
- margin-bottom: 10px;
55
- }
56
- </style>
57
- <title>News</title>
58
- </head>
59
- <body>
60
- <div class="container">
61
- <div class="content-padding">
62
- <div class="date">{date}</div>
63
- <div class="title">{title}</div>
64
-
65
- <div class="body-text">
66
- {content}
67
- </div>
68
- </div>
69
- </div>
70
- </body>
71
- </html>