nonebot-plugin-l4d2-server 1.1.0__py3-none-any.whl → 1.1.1__py3-none-any.whl
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.
- nonebot_plugin_l4d2_server/l4_help/__init__.py +1 -1
- nonebot_plugin_l4d2_server/l4_image/html_img.py +2 -2
- nonebot_plugin_l4d2_server/l4_image/img/template/normal.html +191 -233
- nonebot_plugin_l4d2_server/l4_image/img/template/normal_.html +247 -0
- {nonebot_plugin_l4d2_server-1.1.0.dist-info → nonebot_plugin_l4d2_server-1.1.1.dist-info}/METADATA +2 -2
- {nonebot_plugin_l4d2_server-1.1.0.dist-info → nonebot_plugin_l4d2_server-1.1.1.dist-info}/RECORD +9 -8
- {nonebot_plugin_l4d2_server-1.1.0.dist-info → nonebot_plugin_l4d2_server-1.1.1.dist-info}/WHEEL +0 -0
- {nonebot_plugin_l4d2_server-1.1.0.dist-info → nonebot_plugin_l4d2_server-1.1.1.dist-info}/entry_points.txt +0 -0
- {nonebot_plugin_l4d2_server-1.1.0.dist-info → nonebot_plugin_l4d2_server-1.1.1.dist-info}/licenses/LICENSE +0 -0
@@ -10,7 +10,7 @@ from ..l4_image.convert import core_font
|
|
10
10
|
from ..l4_image.model import PluginHelp
|
11
11
|
from .draw import get_help
|
12
12
|
|
13
|
-
__version__ = "1.1.
|
13
|
+
__version__ = "1.1.1"
|
14
14
|
TEXT_PATH = Path(__file__).parent / "texture2d"
|
15
15
|
HELP_DATA = Path(__file__).parent / "Help.json"
|
16
16
|
|
@@ -76,7 +76,7 @@ async def get_server_img(plugins: List[OutServer]) -> Optional[bytes]:
|
|
76
76
|
else:
|
77
77
|
template = env.get_template("normal.html")
|
78
78
|
content = await template.render_async(
|
79
|
-
|
79
|
+
servers=plugins,
|
80
80
|
max_count=config.l4_players,
|
81
81
|
)
|
82
82
|
return await html_to_pic(
|
@@ -86,5 +86,5 @@ async def get_server_img(plugins: List[OutServer]) -> Optional[bytes]:
|
|
86
86
|
template_path=f"file://{template_path.absolute()}",
|
87
87
|
)
|
88
88
|
except Exception as e:
|
89
|
-
logger.warning(f"Error in
|
89
|
+
logger.warning(f"Error in get_server_img: {e}")
|
90
90
|
return None
|
@@ -1,247 +1,205 @@
|
|
1
|
-
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="zh-CN">
|
2
3
|
|
3
4
|
<head>
|
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
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
/* 绿色背景 */
|
148
|
-
color: white;
|
149
|
-
/* 白色文字 */
|
150
|
-
}
|
151
|
-
|
152
|
-
.full {
|
153
|
-
background-color: #f44336;
|
154
|
-
/* 红色背景 */
|
155
|
-
color: white;
|
156
|
-
/* 白色文字 */
|
157
|
-
}
|
158
|
-
|
159
|
-
.not_full {
|
160
|
-
background-color: #2196F3;
|
161
|
-
/* 蓝色背景 */
|
162
|
-
color: white;
|
163
|
-
/* 白色文字 */
|
164
|
-
}
|
165
|
-
</style>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
<title>Anne云服服务器状态</title>
|
7
|
+
<style>
|
8
|
+
body {
|
9
|
+
width: 900px;
|
10
|
+
margin: 0 auto;
|
11
|
+
/* 改为自动居中 */
|
12
|
+
font-family: 'Microsoft YaHei', 'Arial', sans-serif;
|
13
|
+
background-color: #f0f2f5;
|
14
|
+
padding: 10px 0;
|
15
|
+
/* 只保留上下padding */
|
16
|
+
}
|
17
|
+
|
18
|
+
.outer-frame {
|
19
|
+
width: 900px;
|
20
|
+
background-color: white;
|
21
|
+
border-radius: 12px;
|
22
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
23
|
+
overflow: hidden;
|
24
|
+
border: 1px solid #e0e3e7;
|
25
|
+
margin: 0 auto;
|
26
|
+
/* 确保居中 */
|
27
|
+
}
|
28
|
+
|
29
|
+
.container {
|
30
|
+
width: 880px;
|
31
|
+
/* 调整为更接近外层宽度 */
|
32
|
+
margin: 0 auto;
|
33
|
+
padding: 20px 10px;
|
34
|
+
/* 减少左右padding */
|
35
|
+
box-sizing: border-box;
|
36
|
+
}
|
37
|
+
|
38
|
+
h1 {
|
39
|
+
text-align: center;
|
40
|
+
color: #2c3e50;
|
41
|
+
margin: 0 0 20px 0;
|
42
|
+
padding-bottom: 10px;
|
43
|
+
border-bottom: 2px solid #eee;
|
44
|
+
font-size: 24px;
|
45
|
+
}
|
46
|
+
|
47
|
+
.server-grid {
|
48
|
+
display: grid;
|
49
|
+
grid-template-columns: repeat(3, 280px);
|
50
|
+
/* 调整为3列280px */
|
51
|
+
gap: 10px;
|
52
|
+
justify-content: center;
|
53
|
+
/* 确保居中 */
|
54
|
+
padding: 0 10px;
|
55
|
+
/* 添加内边距防止溢出 */
|
56
|
+
}
|
57
|
+
|
58
|
+
.server-card {
|
59
|
+
width: 100%;
|
60
|
+
/* 改为100%填充网格单元格 */
|
61
|
+
background-color: #fff;
|
62
|
+
border: 1px solid #e0e3e7;
|
63
|
+
border-radius: 8px;
|
64
|
+
padding: 12px;
|
65
|
+
box-sizing: border-box;
|
66
|
+
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
|
67
|
+
}
|
68
|
+
|
69
|
+
/* 其余样式保持不变... */
|
70
|
+
.server-name {
|
71
|
+
font-weight: bold;
|
72
|
+
font-size: 14px;
|
73
|
+
color: #3498db;
|
74
|
+
margin-bottom: 8px;
|
75
|
+
white-space: nowrap;
|
76
|
+
overflow: hidden;
|
77
|
+
text-overflow: ellipsis;
|
78
|
+
text-align: left;
|
79
|
+
}
|
80
|
+
|
81
|
+
.server-details {
|
82
|
+
display: grid;
|
83
|
+
grid-template-columns: 80px 1fr;
|
84
|
+
gap: 5px;
|
85
|
+
font-size: 12px;
|
86
|
+
}
|
87
|
+
|
88
|
+
.detail-label {
|
89
|
+
font-weight: bold;
|
90
|
+
color: #7f8c8d;
|
91
|
+
text-align: left;
|
92
|
+
}
|
93
|
+
|
94
|
+
.detail-value {
|
95
|
+
text-align: left;
|
96
|
+
}
|
97
|
+
|
98
|
+
.map-name {
|
99
|
+
font-size: 13px;
|
100
|
+
color: #e74c3c;
|
101
|
+
margin: 5px 0;
|
102
|
+
text-align: left;
|
103
|
+
font-style: normal;
|
104
|
+
padding-left: 5px;
|
105
|
+
}
|
106
|
+
|
107
|
+
.players {
|
108
|
+
text-align: left;
|
109
|
+
margin-top: 6px;
|
110
|
+
font-size: 12px;
|
111
|
+
padding-left: 0px;
|
112
|
+
}
|
113
|
+
|
114
|
+
.online {
|
115
|
+
color: #27ae60;
|
116
|
+
}
|
117
|
+
|
118
|
+
.offline {
|
119
|
+
color: #e74c3c;
|
120
|
+
}
|
121
|
+
|
122
|
+
.footer {
|
123
|
+
text-align: center;
|
124
|
+
margin-top: 20px;
|
125
|
+
color: #7f8c8d;
|
126
|
+
font-size: 12px;
|
127
|
+
border-top: 1px solid #eee;
|
128
|
+
padding-top: 10px;
|
129
|
+
}
|
130
|
+
|
131
|
+
.map-name:before,
|
132
|
+
.players:before {
|
133
|
+
margin-right: 5px;
|
134
|
+
}
|
135
|
+
|
136
|
+
.vac-icon {
|
137
|
+
width: 13px;
|
138
|
+
height: auto;
|
139
|
+
margin-left: 15px;
|
140
|
+
}
|
141
|
+
|
142
|
+
.platform {
|
143
|
+
width: 13px;
|
144
|
+
height: auto;
|
145
|
+
margin-left: 15px;
|
146
|
+
}
|
147
|
+
</style>
|
166
148
|
</head>
|
167
149
|
|
168
150
|
<body>
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
<div class="
|
204
|
-
|
205
|
-
{% set player_count = plugin.player|length %}
|
151
|
+
<div class="outer-frame">
|
152
|
+
<div class="container">
|
153
|
+
<h1>Anne云服服务器状态 (共 {{ servers|length }} 台)</h1>
|
154
|
+
|
155
|
+
<div class="server-grid">
|
156
|
+
{% for server in servers %}
|
157
|
+
<div class="server-card">
|
158
|
+
<div class="server-name" title="{{ server.server.server_name }}">
|
159
|
+
{{ server.server.server_name|replace('\n', ' ')|replace(' ', ' ')|trim }}
|
160
|
+
</div>
|
161
|
+
|
162
|
+
<div class="map-name" title="当前地图">
|
163
|
+
🗺️ {{ server.server.map_name }}
|
164
|
+
</div>
|
165
|
+
|
166
|
+
<div class="players">
|
167
|
+
{% if server.server.player_count >= 0 %}
|
168
|
+
<span class="online">
|
169
|
+
{% if server.server.max_players == 0 %}
|
170
|
+
🔴
|
171
|
+
{% elif server.server.player_count / server.server.max_players < 0.5 %} 🟢 {% elif
|
172
|
+
server.server.player_count>= server.server.max_players
|
173
|
+
%}
|
174
|
+
🟡
|
175
|
+
{% else %}
|
176
|
+
🔵
|
177
|
+
{% endif %}</span>
|
178
|
+
{{ server.server.player_count }}/{{ server.server.max_players}}
|
179
|
+
{% else %}
|
180
|
+
<span class="offline">🔴 错误</span>
|
181
|
+
{% endif %}
|
182
|
+
<img class="platform" src="{{server.server.platform}}.svg" width="13" height="13" />{% if server.server.vac_enabled %}<img class="vac-icon" src="vac.png">{% endif %}
|
183
|
+
<span class="platform">{{ (server.server.ping * 1000)|round(1) }} ms </span>
|
184
|
+
</div>
|
185
|
+
<div class="player">
|
186
|
+
{% set player_count = server.player|length %}
|
206
187
|
{% for i in range(max_count) %}
|
207
|
-
{% set player =
|
188
|
+
{% set player = server.player[i] if i < player_count else None %} {% if player and player.name %} <font
|
208
189
|
color="green">• {{ player.score }} | {{ player.name }}</font><br>
|
209
190
|
{% else %}
|
210
|
-
<!-- 如果玩家不存在或没有名字,则显示空行或占位符 -->
|
211
|
-
<br>
|
212
191
|
{% endif %}
|
213
192
|
{% endfor %}
|
214
193
|
</div>
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
<image xlink:href="m.svg" width="13" height="13" />
|
223
|
-
{% endif %}
|
224
|
-
<div class="package_name"> {{ plugin.server.player_count }}/{{ plugin.server.max_players }} </div>
|
225
|
-
{% if plugin.server.vac_enabled %}
|
226
|
-
<img class="vac-icon" src="vac.png">
|
227
|
-
{% else %}
|
228
|
-
{% endif %}
|
229
|
-
</div>
|
194
|
+
</div>
|
195
|
+
{% endfor %}
|
196
|
+
</div>
|
197
|
+
|
198
|
+
<div class="footer">
|
199
|
+
111
|
200
|
+
</div>
|
230
201
|
</div>
|
231
|
-
</div>
|
232
|
-
{% endfor %}
|
233
|
-
</div>
|
234
|
-
<div class="head">
|
235
|
-
<span class="loaded-text">
|
236
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"
|
237
|
-
style="vertical-align: middle;">
|
238
|
-
<image xlink:href="github.svg" width="20" height="20" />
|
239
|
-
</svg>
|
240
|
-
<b style="vertical-align: middle;">插件:Agnes4m</b>
|
241
|
-
</span>
|
242
|
-
<span class="loaded-text"><b>©爱丽数码</b></span>
|
243
202
|
</div>
|
244
|
-
|
203
|
+
</body>
|
245
204
|
|
246
|
-
</html>
|
247
|
-
</body>
|
205
|
+
</html>
|
@@ -0,0 +1,247 @@
|
|
1
|
+
<html>
|
2
|
+
|
3
|
+
<head>
|
4
|
+
<style>
|
5
|
+
body {
|
6
|
+
margin: 0px;
|
7
|
+
zoom: 150%;
|
8
|
+
}
|
9
|
+
|
10
|
+
/* Vac图标样式 */
|
11
|
+
.vac-icon {
|
12
|
+
width: 13px;
|
13
|
+
height: auto;
|
14
|
+
margin-left: 190px;
|
15
|
+
}
|
16
|
+
|
17
|
+
.image {
|
18
|
+
display: flex;
|
19
|
+
flex-direction: column;
|
20
|
+
overflow: scroll;
|
21
|
+
width: max-content;
|
22
|
+
padding: 20px;
|
23
|
+
}
|
24
|
+
|
25
|
+
.head {
|
26
|
+
display: flex;
|
27
|
+
flex-direction: row;
|
28
|
+
align-items: center;
|
29
|
+
justify-content: space-between;
|
30
|
+
background-color: #f5f6f7;
|
31
|
+
padding-left: 20px;
|
32
|
+
padding-right: 20px;
|
33
|
+
padding-top: 10px;
|
34
|
+
padding-bottom: 10px;
|
35
|
+
border: 2px solid;
|
36
|
+
border-radius: 50px;
|
37
|
+
border-color: #e5e7eb;
|
38
|
+
font-size: 16px;
|
39
|
+
margin-bottom: 20px;
|
40
|
+
}
|
41
|
+
|
42
|
+
.plugins {
|
43
|
+
display: grid;
|
44
|
+
grid-template-columns: auto auto auto;
|
45
|
+
row-gap: 20px;
|
46
|
+
column-gap: 20px;
|
47
|
+
margin-bottom: 20px;
|
48
|
+
}
|
49
|
+
|
50
|
+
.plugin {
|
51
|
+
display: flex;
|
52
|
+
padding: 5px;
|
53
|
+
border: 1px solid;
|
54
|
+
border-radius: 5px;
|
55
|
+
border-color: #e5e7eb;
|
56
|
+
box-shadow: 0px 2px 6px 1px rgba(0, 0, 0, 0.2);
|
57
|
+
background-color: #f5f6f7;
|
58
|
+
}
|
59
|
+
|
60
|
+
.plugin_meta {
|
61
|
+
display: flex;
|
62
|
+
flex-direction: column;
|
63
|
+
padding: 5px;
|
64
|
+
width: 250px;
|
65
|
+
justify-content: space-between;
|
66
|
+
}
|
67
|
+
|
68
|
+
.plugin_name {
|
69
|
+
font-size: 20px;
|
70
|
+
}
|
71
|
+
|
72
|
+
.plugin_description {
|
73
|
+
font-size: 15px;
|
74
|
+
color: gray;
|
75
|
+
margin-top: 5px;
|
76
|
+
margin-bottom: 5px;
|
77
|
+
}
|
78
|
+
|
79
|
+
.plugin_meta_line1 {
|
80
|
+
display: flex;
|
81
|
+
flex-direction: row;
|
82
|
+
align-items: center;
|
83
|
+
justify-content: space-between;
|
84
|
+
}
|
85
|
+
|
86
|
+
.plugin_meta_line3 {
|
87
|
+
display: flex;
|
88
|
+
flex-direction: row;
|
89
|
+
align-items: center;
|
90
|
+
}
|
91
|
+
|
92
|
+
.package_name_label {
|
93
|
+
background-image: url(./fingerprint.svg);
|
94
|
+
width: 13px;
|
95
|
+
height: 13px;
|
96
|
+
margin-right: 8px;
|
97
|
+
}
|
98
|
+
|
99
|
+
.package_name {
|
100
|
+
font-size: 13px;
|
101
|
+
color: gray;
|
102
|
+
}
|
103
|
+
|
104
|
+
.switch {
|
105
|
+
position: relative;
|
106
|
+
display: inline-block;
|
107
|
+
width: 40px;
|
108
|
+
height: 24px;
|
109
|
+
}
|
110
|
+
|
111
|
+
.slider {
|
112
|
+
position: absolute;
|
113
|
+
cursor: pointer;
|
114
|
+
top: 0;
|
115
|
+
left: 0;
|
116
|
+
right: 0;
|
117
|
+
bottom: 0;
|
118
|
+
background-color: #ccc;
|
119
|
+
}
|
120
|
+
|
121
|
+
.slider.round {
|
122
|
+
border-radius: 24px;
|
123
|
+
}
|
124
|
+
|
125
|
+
.status_text {
|
126
|
+
position: absolute;
|
127
|
+
top: 50%;
|
128
|
+
left: 50%;
|
129
|
+
transform: translate(-50%, -50%);
|
130
|
+
white-space: nowrap;
|
131
|
+
/* 防止换行 */
|
132
|
+
padding: 2px 6px;
|
133
|
+
/* 添加一些内边距以增加可读性 */
|
134
|
+
border-radius: 16px;
|
135
|
+
/* 圆角 */
|
136
|
+
}
|
137
|
+
|
138
|
+
.error {
|
139
|
+
background-color: #999;
|
140
|
+
/* 灰色背景 */
|
141
|
+
color: white;
|
142
|
+
/* 白色文字 */
|
143
|
+
}
|
144
|
+
|
145
|
+
.lack {
|
146
|
+
background-color: #4CAF50;
|
147
|
+
/* 绿色背景 */
|
148
|
+
color: white;
|
149
|
+
/* 白色文字 */
|
150
|
+
}
|
151
|
+
|
152
|
+
.full {
|
153
|
+
background-color: #f44336;
|
154
|
+
/* 红色背景 */
|
155
|
+
color: white;
|
156
|
+
/* 白色文字 */
|
157
|
+
}
|
158
|
+
|
159
|
+
.not_full {
|
160
|
+
background-color: #2196F3;
|
161
|
+
/* 蓝色背景 */
|
162
|
+
color: white;
|
163
|
+
/* 白色文字 */
|
164
|
+
}
|
165
|
+
</style>
|
166
|
+
</head>
|
167
|
+
|
168
|
+
<body>
|
169
|
+
<div class="image">
|
170
|
+
<div class="head">
|
171
|
+
<span><b>已加载服务器</b></span>
|
172
|
+
<span>发送 “<b>查询指令+序号</b>” 查看详情</span>
|
173
|
+
</div>
|
174
|
+
<div class="plugins">
|
175
|
+
{% for plugin in plugins %}
|
176
|
+
<div class="plugin">
|
177
|
+
<div class="plugin_meta">
|
178
|
+
<div class="plugin_meta_line1">
|
179
|
+
<div class="plugin_name">{{ plugin.command }}{{ plugin.id_ }}:{{ plugin.server.server_name }}</div>
|
180
|
+
<div class="plugin_status">
|
181
|
+
<label class="switch">
|
182
|
+
<input class="checkbox" type="checkbox" {% if plugin.enabled %} checked {% endif %} />
|
183
|
+
<span
|
184
|
+
class="slider round {% if plugin.server.player_count >= plugin.server.max_players %} locked {% endif %}">
|
185
|
+
<span
|
186
|
+
class="lock {% if plugin.server.player_count >= plugin.server.max_players %} locked {% endif %}"></span>
|
187
|
+
<span
|
188
|
+
class="status_text {% if plugin.server.max_players == 0 %}error{% elif plugin.server.player_count / plugin.server.max_players < 0.5 %}lack{% elif plugin.server.player_count >= plugin.server.max_players %}full{% else %}not_full{% endif %}">
|
189
|
+
{% if plugin.server.max_players == 0 %}
|
190
|
+
错误
|
191
|
+
{% elif plugin.server.player_count / plugin.server.max_players < 0.5 %} 缺人 {% elif
|
192
|
+
plugin.server.player_count>= plugin.server.max_players
|
193
|
+
%}
|
194
|
+
已满
|
195
|
+
{% else %}
|
196
|
+
未满
|
197
|
+
{% endif %}
|
198
|
+
</span>
|
199
|
+
</span>
|
200
|
+
</label>
|
201
|
+
</div>
|
202
|
+
</div>
|
203
|
+
<div class="plugin_meta_line2">
|
204
|
+
<font color="blue">地图:{{ plugin.server.map_name }}</font><br>
|
205
|
+
{% set player_count = plugin.player|length %}
|
206
|
+
{% for i in range(max_count) %}
|
207
|
+
{% set player = plugin.player[i] if i < player_count else None %} {% if player and player.name %} <font
|
208
|
+
color="green">• {{ player.score }} | {{ player.name }}</font><br>
|
209
|
+
{% else %}
|
210
|
+
<!-- 如果玩家不存在或没有名字,则显示空行或占位符 -->
|
211
|
+
<br>
|
212
|
+
{% endif %}
|
213
|
+
{% endfor %}
|
214
|
+
</div>
|
215
|
+
<div class="plugin_meta_line3">
|
216
|
+
{% if plugin.server.platform == 'l' %}
|
217
|
+
<image xlink:href="l.svg" width="13" height="13" />
|
218
|
+
</svg>
|
219
|
+
{% elif plugin.server.platform == 'w' %}
|
220
|
+
<image xlink:href="w.svg" width="13" height="13" />
|
221
|
+
{% else %}
|
222
|
+
<image xlink:href="m.svg" width="13" height="13" />
|
223
|
+
{% endif %}
|
224
|
+
<div class="package_name"> {{ plugin.server.player_count }}/{{ plugin.server.max_players }} </div>
|
225
|
+
{% if plugin.server.vac_enabled %}
|
226
|
+
<img class="vac-icon" src="vac.png">
|
227
|
+
{% else %}
|
228
|
+
{% endif %}
|
229
|
+
</div>
|
230
|
+
</div>
|
231
|
+
</div>
|
232
|
+
{% endfor %}
|
233
|
+
</div>
|
234
|
+
<div class="head">
|
235
|
+
<span class="loaded-text">
|
236
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"
|
237
|
+
style="vertical-align: middle;">
|
238
|
+
<image xlink:href="github.svg" width="20" height="20" />
|
239
|
+
</svg>
|
240
|
+
<b style="vertical-align: middle;">插件:Agnes4m</b>
|
241
|
+
</span>
|
242
|
+
<span class="loaded-text"><b>©爱丽数码</b></span>
|
243
|
+
</div>
|
244
|
+
</div>
|
245
|
+
|
246
|
+
</html>
|
247
|
+
</body>
|
{nonebot_plugin_l4d2_server-1.1.0.dist-info → nonebot_plugin_l4d2_server-1.1.1.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nonebot-plugin-l4d2-server
|
3
|
-
Version: 1.1.
|
3
|
+
Version: 1.1.1
|
4
4
|
Summary: L4D2 server related operations plugin for NoneBot2
|
5
5
|
Keywords: steam,game,l4d2,nonebot2,plugin
|
6
6
|
Author-Email: Agnes_Digital <Z735803792@163.com>
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 3.12
|
|
15
15
|
Classifier: Operating System :: OS Independent
|
16
16
|
Project-URL: homepage, https://github.com/Agnes4m/nonebot_plugin_l4d2_server
|
17
17
|
Requires-Python: <4.0,>=3.9
|
18
|
-
Requires-Dist: nonebot2>=2.
|
18
|
+
Requires-Dist: nonebot2>=2.1.0
|
19
19
|
Requires-Dist: nonebot2[fastapi]>=2.3.3
|
20
20
|
Requires-Dist: nonebot-plugin-htmlrender>=0.3.0
|
21
21
|
Requires-Dist: nonebot-adapter-onebot>=2.4.4
|
{nonebot_plugin_l4d2_server-1.1.0.dist-info → nonebot_plugin_l4d2_server-1.1.1.dist-info}/RECORD
RENAMED
@@ -1,13 +1,13 @@
|
|
1
|
-
nonebot_plugin_l4d2_server-1.1.
|
2
|
-
nonebot_plugin_l4d2_server-1.1.
|
3
|
-
nonebot_plugin_l4d2_server-1.1.
|
4
|
-
nonebot_plugin_l4d2_server-1.1.
|
1
|
+
nonebot_plugin_l4d2_server-1.1.1.dist-info/METADATA,sha256=_Bj2RsGb9rLnhDDRRdkwznXXBtFxxoBHUEOa9Y7MspQ,6759
|
2
|
+
nonebot_plugin_l4d2_server-1.1.1.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
3
|
+
nonebot_plugin_l4d2_server-1.1.1.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
4
|
+
nonebot_plugin_l4d2_server-1.1.1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
5
5
|
nonebot_plugin_l4d2_server/__init__.py,sha256=xzhXyprPmoTTjpfyqYlMweC4umuLsm8MERA1ZTqCyYc,1661
|
6
6
|
nonebot_plugin_l4d2_server/__main__.py,sha256=-m1tH_4T-9AP66V3Drb1t8CZXZMc0eAUXZsBY3LEBuI,10271
|
7
7
|
nonebot_plugin_l4d2_server/config.py,sha256=t4BYygrrLTcsl9oBnyce0-tDhMCCkMrkEPs4DX2t4KI,2682
|
8
8
|
nonebot_plugin_l4d2_server/data/font/loli.ttf,sha256=Yrh-RPoCrn1-NG94DR0x20ASXYUt8g3Ep6BCt3CdOFk,11125812
|
9
9
|
nonebot_plugin_l4d2_server/l4_help/Help.json,sha256=D0YmZYGW-imC7nVebkQ0_eODiqevQhL9aKj-cyBaqDY,1704
|
10
|
-
nonebot_plugin_l4d2_server/l4_help/__init__.py,sha256=
|
10
|
+
nonebot_plugin_l4d2_server/l4_help/__init__.py,sha256=jeC509sVXTBmOycZ9GZSTJuVFQba8U9HpA0Y7zykwZQ,1479
|
11
11
|
nonebot_plugin_l4d2_server/l4_help/draw.py,sha256=y6yDPUnoZFvwly8cf7g9HRpT1JXTxyA9DC1TuvUinTM,6448
|
12
12
|
nonebot_plugin_l4d2_server/l4_help/icon/介绍.png,sha256=3QC6A38QC-7gDBxmtQSQdbsz7hsefU5LL-oZmJ41zTk,3806
|
13
13
|
nonebot_plugin_l4d2_server/l4_help/icon/任务.png,sha256=nyZ4_kM21ZO95nwanCFnUfCGX-PkmJXYQf9OrJVKomY,3782
|
@@ -53,7 +53,7 @@ nonebot_plugin_l4d2_server/l4_help/texture2d/icon.png,sha256=A2p0r8aBXpNy_b_CtZT
|
|
53
53
|
nonebot_plugin_l4d2_server/l4_image/__init__.py,sha256=-GWXUDv_z_cfJ-wyvx5J3wB9P7ng4NzRHfCq-GZD6XQ,431
|
54
54
|
nonebot_plugin_l4d2_server/l4_image/convert.py,sha256=2wc72nyfEIjyOZS_98BrzD6G9xFzlD9GlsUGOjBLJV4,4132
|
55
55
|
nonebot_plugin_l4d2_server/l4_image/download.py,sha256=qRAo0Ggj5KV8RQN3LFJe547__wwC7Ww4QnT-v3pfe6w,3116
|
56
|
-
nonebot_plugin_l4d2_server/l4_image/html_img.py,sha256=
|
56
|
+
nonebot_plugin_l4d2_server/l4_image/html_img.py,sha256=BqypwfvrZ-mmrH-a4JBPXRPL6pVC6aqLX3v8623AQAE,2884
|
57
57
|
nonebot_plugin_l4d2_server/l4_image/image_tools.py,sha256=iHkvG2fYxYCz7B2JV69MSMlH5KXyWftcBs_prmyTyO4,14453
|
58
58
|
nonebot_plugin_l4d2_server/l4_image/img/anne/anne.html,sha256=8JOUXoWdulhoP2Axy_omuSDafbduKDZ9Y8Rz2VZWTso,1590
|
59
59
|
nonebot_plugin_l4d2_server/l4_image/img/anne/back.png,sha256=jnsYjnvd2BFcdkdsW8HgcSloWF0ZliPkqlWSIDnFUxw,245488
|
@@ -76,7 +76,8 @@ nonebot_plugin_l4d2_server/l4_image/img/template/fingerprint.svg,sha256=qtbdXb-5
|
|
76
76
|
nonebot_plugin_l4d2_server/l4_image/img/template/github.svg,sha256=Ev2CdWEyL4G-_bhZJ9vBZr5MEWjcgSR819mracoXjqc,1175
|
77
77
|
nonebot_plugin_l4d2_server/l4_image/img/template/l.svg,sha256=YbahWPd7uau6edcATiWrA8apYyrlKeTejuvRHwXkmLI,5484
|
78
78
|
nonebot_plugin_l4d2_server/l4_image/img/template/m.svg,sha256=JKosfpA8Jncw018dWHVzVR8orC48u3mMdzQovWAa91s,2428
|
79
|
-
nonebot_plugin_l4d2_server/l4_image/img/template/normal.html,sha256=
|
79
|
+
nonebot_plugin_l4d2_server/l4_image/img/template/normal.html,sha256=xMT37DxSC1w4IIDuSN589ZbEdnVgpBm7-8an5KZDy4g,6006
|
80
|
+
nonebot_plugin_l4d2_server/l4_image/img/template/normal_.html,sha256=TbHKy4cV-7rEVuE3dx75P1Pf9YKTIp8KW5JoaJFMenY,6610
|
80
81
|
nonebot_plugin_l4d2_server/l4_image/img/template/vac.png,sha256=sX2_qenkRakqP74Sq-FoBYBX1qS8gVYz9L07ijL2vlc,6741
|
81
82
|
nonebot_plugin_l4d2_server/l4_image/img/template/vac_white.png,sha256=3hpqIOp07FJhl9F15Mzc0LUMWQBAZhif8Ealb4doyoI,6045
|
82
83
|
nonebot_plugin_l4d2_server/l4_image/img/template/vue.css,sha256=2sGjCFrR-3tFMB_x7l4K6k40tZ5JVzhWqD759cagYBA,7874
|
@@ -94,4 +95,4 @@ nonebot_plugin_l4d2_server/utils/api/request.py,sha256=JGAhMgPgmy2Z2w7w3GVlUGKBm
|
|
94
95
|
nonebot_plugin_l4d2_server/utils/api/utils.py,sha256=rdrFK3VKP59KfNX-C8v0Q_IV3tBLm02Wo9axLTQQ87Y,762
|
95
96
|
nonebot_plugin_l4d2_server/utils/database/models.py,sha256=SLdcgwsn39r_ZkcBoqf4MLX1EfpCOjGBwWcR16u9Bqo,454
|
96
97
|
nonebot_plugin_l4d2_server/utils/utils.py,sha256=KHfnTO3a-rGpjhXTsXypC0xb61ijpON631zqjIAW2vo,6836
|
97
|
-
nonebot_plugin_l4d2_server-1.1.
|
98
|
+
nonebot_plugin_l4d2_server-1.1.1.dist-info/RECORD,,
|
{nonebot_plugin_l4d2_server-1.1.0.dist-info → nonebot_plugin_l4d2_server-1.1.1.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|
File without changes
|