nonebot-plugin-l4d2-server 0.5.1__py3-none-any.whl → 0.5.2__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.
- LICENSE +674 -674
- README.md +364 -359
- nonebot_plugin_l4d2_server/__init__.py +1 -1
- nonebot_plugin_l4d2_server/chrome.py +44 -44
- nonebot_plugin_l4d2_server/command.py +232 -232
- nonebot_plugin_l4d2_server/config.py +210 -210
- nonebot_plugin_l4d2_server/data/L4D2/image/template/anne.html +60 -60
- nonebot_plugin_l4d2_server/data/L4D2/image/template/fingerprint.svg +15 -15
- nonebot_plugin_l4d2_server/data/L4D2/image/template/help.html +233 -233
- nonebot_plugin_l4d2_server/data/L4D2/image/template/help_dack.html +231 -231
- nonebot_plugin_l4d2_server/data/L4D2/image/template/ip.html +48 -48
- nonebot_plugin_l4d2_server/data/L4D2/image/template/l.svg +9 -9
- nonebot_plugin_l4d2_server/l4d2_anne/__init__.py +251 -251
- nonebot_plugin_l4d2_server/l4d2_anne/analysis.py +51 -51
- nonebot_plugin_l4d2_server/l4d2_anne/anne_telecom.py +75 -75
- nonebot_plugin_l4d2_server/l4d2_anne/server.py +65 -65
- nonebot_plugin_l4d2_server/l4d2_anne/startand.py +17 -17
- nonebot_plugin_l4d2_server/l4d2_data/__init__.py +91 -91
- nonebot_plugin_l4d2_server/l4d2_data/config.py +17 -17
- nonebot_plugin_l4d2_server/l4d2_data/players.py +87 -87
- nonebot_plugin_l4d2_server/l4d2_data/serverip.py +32 -32
- nonebot_plugin_l4d2_server/l4d2_file/__init__.py +122 -122
- nonebot_plugin_l4d2_server/l4d2_file/ayromote.py +56 -56
- nonebot_plugin_l4d2_server/l4d2_file/remote.py +63 -63
- nonebot_plugin_l4d2_server/l4d2_image/__init__.py +103 -103
- nonebot_plugin_l4d2_server/l4d2_image/download.py +101 -101
- nonebot_plugin_l4d2_server/l4d2_image/htmlimg.py +32 -32
- nonebot_plugin_l4d2_server/l4d2_image/send_image_tool.py +32 -32
- nonebot_plugin_l4d2_server/l4d2_image/steam.py +83 -83
- nonebot_plugin_l4d2_server/l4d2_image/vtfs.py +40 -40
- nonebot_plugin_l4d2_server/l4d2_queries/__init__.py +114 -114
- nonebot_plugin_l4d2_server/l4d2_queries/api.py +43 -43
- nonebot_plugin_l4d2_server/l4d2_queries/ohter.py +35 -35
- nonebot_plugin_l4d2_server/l4d2_queries/qqgroup.py +288 -288
- nonebot_plugin_l4d2_server/l4d2_server/__init__.py +61 -61
- nonebot_plugin_l4d2_server/l4d2_server/rcon.py +28 -28
- nonebot_plugin_l4d2_server/l4d2_server/workshop.py +50 -50
- nonebot_plugin_l4d2_server/l4d2_web/web.py +234 -252
- nonebot_plugin_l4d2_server/l4d2_web/webUI.py +241 -245
- nonebot_plugin_l4d2_server/message.py +58 -58
- nonebot_plugin_l4d2_server/seach.py +33 -33
- nonebot_plugin_l4d2_server/txt_to_img.py +64 -64
- nonebot_plugin_l4d2_server/utils.py +272 -272
- {nonebot_plugin_l4d2_server-0.5.1.dist-info → nonebot_plugin_l4d2_server-0.5.2.dist-info}/LICENSE +674 -674
- {nonebot_plugin_l4d2_server-0.5.1.dist-info → nonebot_plugin_l4d2_server-0.5.2.dist-info}/METADATA +6 -1
- nonebot_plugin_l4d2_server-0.5.2.dist-info/RECORD +54 -0
- {nonebot_plugin_l4d2_server-0.5.1.dist-info → nonebot_plugin_l4d2_server-0.5.2.dist-info}/WHEEL +1 -1
- nonebot_plugin_l4d2_server-0.5.1.dist-info/RECORD +0 -54
@@ -1,233 +1,233 @@
|
|
1
|
-
<html>
|
2
|
-
<head>
|
3
|
-
<style>
|
4
|
-
body {
|
5
|
-
margin: 0px;
|
6
|
-
zoom: 150%;
|
7
|
-
}
|
8
|
-
.image {
|
9
|
-
display: flex;
|
10
|
-
flex-direction: column;
|
11
|
-
overflow: scroll;
|
12
|
-
width: max-content;
|
13
|
-
padding: 20px;
|
14
|
-
}
|
15
|
-
.head {
|
16
|
-
display: flex;
|
17
|
-
flex-direction: row;
|
18
|
-
align-items: center;
|
19
|
-
justify-content: space-between;
|
20
|
-
background-color: #f5f6f7;
|
21
|
-
padding-left: 20px;
|
22
|
-
padding-right: 20px;
|
23
|
-
padding-top: 10px;
|
24
|
-
padding-bottom: 10px;
|
25
|
-
border: 2px solid;
|
26
|
-
border-radius: 50px;
|
27
|
-
border-color: #e5e7eb;
|
28
|
-
font-size: 16px;
|
29
|
-
margin-bottom: 20px;
|
30
|
-
}
|
31
|
-
|
32
|
-
.plugins {
|
33
|
-
display: grid;
|
34
|
-
grid-template-columns: auto auto auto;
|
35
|
-
row-gap: 20px;
|
36
|
-
column-gap: 20px;
|
37
|
-
margin-bottom: 20px;
|
38
|
-
}
|
39
|
-
.plugin {
|
40
|
-
display: flex;
|
41
|
-
padding: 5px;
|
42
|
-
border: 1px solid;
|
43
|
-
border-radius: 5px;
|
44
|
-
border-color: #e5e7eb;
|
45
|
-
box-shadow: 0px 2px 6px 1px rgba(0, 0, 0, 0.2);
|
46
|
-
background-color: #f5f6f7;
|
47
|
-
}
|
48
|
-
.plugin_meta {
|
49
|
-
display: flex;
|
50
|
-
flex-direction: column;
|
51
|
-
padding: 5px;
|
52
|
-
width: 250px;
|
53
|
-
justify-content: space-between;
|
54
|
-
}
|
55
|
-
.plugin_name {
|
56
|
-
font-size: 20px;
|
57
|
-
}
|
58
|
-
.plugin_description {
|
59
|
-
font-size: 15px;
|
60
|
-
color: gray;
|
61
|
-
margin-top: 5px;
|
62
|
-
margin-bottom: 5px;
|
63
|
-
}
|
64
|
-
.plugin_meta_line1 {
|
65
|
-
display: flex;
|
66
|
-
flex-direction: row;
|
67
|
-
align-items: center;
|
68
|
-
justify-content: space-between;
|
69
|
-
}
|
70
|
-
.plugin_meta_line3 {
|
71
|
-
display: flex;
|
72
|
-
flex-direction: row;
|
73
|
-
align-items: center;
|
74
|
-
}
|
75
|
-
.package_name_label{
|
76
|
-
background-image: url(./fingerprint.svg);
|
77
|
-
width: 13px;
|
78
|
-
height: 13px;
|
79
|
-
margin-right: 8px;
|
80
|
-
}
|
81
|
-
.package_name {
|
82
|
-
font-size: 13px;
|
83
|
-
color: gray;
|
84
|
-
}
|
85
|
-
.switch {
|
86
|
-
position: relative;
|
87
|
-
display: inline-block;
|
88
|
-
width: 40px;
|
89
|
-
height: 24px;
|
90
|
-
}
|
91
|
-
.slider {
|
92
|
-
position: absolute;
|
93
|
-
cursor: pointer;
|
94
|
-
top: 0;
|
95
|
-
left: 0;
|
96
|
-
right: 0;
|
97
|
-
bottom: 0;
|
98
|
-
background-color: #ccc;
|
99
|
-
}
|
100
|
-
.slider:before {
|
101
|
-
position: absolute;
|
102
|
-
content: "";
|
103
|
-
height: 16px;
|
104
|
-
width: 16px;
|
105
|
-
left: 4px;
|
106
|
-
bottom: 4px;
|
107
|
-
background-color: white;
|
108
|
-
}
|
109
|
-
.switch input {
|
110
|
-
display: none;
|
111
|
-
}
|
112
|
-
.switch input:checked + .slider {
|
113
|
-
background-color: rgba(86, 40, 238, 0.5);
|
114
|
-
}
|
115
|
-
.switch input:checked + .slider:before {
|
116
|
-
-webkit-transform: translateX(16px);
|
117
|
-
-ms-transform: translateX(16px);
|
118
|
-
transform: translateX(16px);
|
119
|
-
}
|
120
|
-
.slider.round {
|
121
|
-
border-radius: 24px;
|
122
|
-
}
|
123
|
-
.slider.round:before {
|
124
|
-
border-radius: 50%;
|
125
|
-
}
|
126
|
-
.checkbox {
|
127
|
-
visibility: hidden;
|
128
|
-
}
|
129
|
-
.slider.locked {
|
130
|
-
opacity: 0.5;
|
131
|
-
}
|
132
|
-
.switch input + span .lock {
|
133
|
-
width: 8px;
|
134
|
-
height: 7px;
|
135
|
-
background: #99a3ba;
|
136
|
-
position: absolute;
|
137
|
-
left: 8px;
|
138
|
-
bottom: 7px;
|
139
|
-
border-radius: 2px;
|
140
|
-
display: block;
|
141
|
-
z-index: 1;
|
142
|
-
transition: all 0.45s ease;
|
143
|
-
}
|
144
|
-
.switch input + span .lock:before {
|
145
|
-
content: "";
|
146
|
-
width: 2px;
|
147
|
-
height: 2px;
|
148
|
-
border-radius: 1px;
|
149
|
-
background: #fff;
|
150
|
-
position: absolute;
|
151
|
-
display: block;
|
152
|
-
left: 50%;
|
153
|
-
top: 50%;
|
154
|
-
margin: -1px 0 0 -1px;
|
155
|
-
}
|
156
|
-
.switch input + span .lock:after {
|
157
|
-
content: "";
|
158
|
-
border-top-left-radius: 4px;
|
159
|
-
border-top-right-radius: 4px;
|
160
|
-
border: 1px solid #99a3ba;
|
161
|
-
border-bottom: 0;
|
162
|
-
width: 4px;
|
163
|
-
height: 4px;
|
164
|
-
left: 1px;
|
165
|
-
bottom: 6px;
|
166
|
-
position: absolute;
|
167
|
-
z-index: 1;
|
168
|
-
-webkit-transform-origin: 0 100%;
|
169
|
-
transform-origin: 0 100%;
|
170
|
-
transition: all 0.45s ease;
|
171
|
-
}
|
172
|
-
.switch input:checked + span .lock {
|
173
|
-
background: #5628ee;
|
174
|
-
-webkit-transform: translateX(16px);
|
175
|
-
-ms-transform: translateX(16px);
|
176
|
-
transform: translateX(16px);
|
177
|
-
}
|
178
|
-
.lock {
|
179
|
-
visibility: hidden;
|
180
|
-
}
|
181
|
-
.lock.locked {
|
182
|
-
visibility: inherit;
|
183
|
-
}
|
184
|
-
</style>
|
185
|
-
</head>
|
186
|
-
<body>
|
187
|
-
<div class="image">
|
188
|
-
<div class="head">
|
189
|
-
<span><b>已加载服务器</b></span>
|
190
|
-
<span>发送 “<b>服务器昵称/序号</b>” 查看详情</span>
|
191
|
-
</div>
|
192
|
-
<div class="plugins">
|
193
|
-
{% for plugin in plugins %}
|
194
|
-
<div class="plugin">
|
195
|
-
<div class="plugin_meta">
|
196
|
-
<div class="plugin_meta_line1">
|
197
|
-
<div class="plugin_name">{{ plugin.number }}:{{ plugin.name }}</div>
|
198
|
-
<div class="plugin_status">
|
199
|
-
<label class="switch">
|
200
|
-
<input class="checkbox" type="checkbox" {% if plugin.enabled %} checked {% endif %} />
|
201
|
-
<span class="slider round {% if plugin.locked %} locked {% endif %}">
|
202
|
-
<span class="lock {% if plugin.locked %} locked {% endif %}"></span>
|
203
|
-
</span>
|
204
|
-
</label>
|
205
|
-
</div>
|
206
|
-
</div>
|
207
|
-
<div class="plugin_meta_line2">
|
208
|
-
<font color="blue">{{ plugin.map_ }}</font><br>
|
209
|
-
{% for Player in plugin.Players %}
|
210
|
-
<font color="green">{{ Player }}</font><br>
|
211
|
-
{% endfor %}
|
212
|
-
</div>
|
213
|
-
<div class="plugin_meta_line3">
|
214
|
-
<svg width="13px" height="13px">
|
215
|
-
<image xlink:href="{{ plugin.system }}" width="13px" height="13px"/>
|
216
|
-
</svg>
|
217
|
-
<div class="package_name"> {{ plugin.max_players }} </div>
|
218
|
-
<div class="package_name"> {{ plugin.tick }} </div>
|
219
|
-
</div>
|
220
|
-
</div>
|
221
|
-
</div>
|
222
|
-
{% endfor %}
|
223
|
-
</div>
|
224
|
-
<div class="head">
|
225
|
-
<span><b>©爱丽数码</b></span>
|
226
|
-
<span>github.com/Agnes4m/nonebot_plugin_l4d2_server</span>
|
227
|
-
</div>
|
228
|
-
</div>
|
229
|
-
</html>
|
230
|
-
</body>
|
231
|
-
|
232
|
-
|
233
|
-
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<style>
|
4
|
+
body {
|
5
|
+
margin: 0px;
|
6
|
+
zoom: 150%;
|
7
|
+
}
|
8
|
+
.image {
|
9
|
+
display: flex;
|
10
|
+
flex-direction: column;
|
11
|
+
overflow: scroll;
|
12
|
+
width: max-content;
|
13
|
+
padding: 20px;
|
14
|
+
}
|
15
|
+
.head {
|
16
|
+
display: flex;
|
17
|
+
flex-direction: row;
|
18
|
+
align-items: center;
|
19
|
+
justify-content: space-between;
|
20
|
+
background-color: #f5f6f7;
|
21
|
+
padding-left: 20px;
|
22
|
+
padding-right: 20px;
|
23
|
+
padding-top: 10px;
|
24
|
+
padding-bottom: 10px;
|
25
|
+
border: 2px solid;
|
26
|
+
border-radius: 50px;
|
27
|
+
border-color: #e5e7eb;
|
28
|
+
font-size: 16px;
|
29
|
+
margin-bottom: 20px;
|
30
|
+
}
|
31
|
+
|
32
|
+
.plugins {
|
33
|
+
display: grid;
|
34
|
+
grid-template-columns: auto auto auto;
|
35
|
+
row-gap: 20px;
|
36
|
+
column-gap: 20px;
|
37
|
+
margin-bottom: 20px;
|
38
|
+
}
|
39
|
+
.plugin {
|
40
|
+
display: flex;
|
41
|
+
padding: 5px;
|
42
|
+
border: 1px solid;
|
43
|
+
border-radius: 5px;
|
44
|
+
border-color: #e5e7eb;
|
45
|
+
box-shadow: 0px 2px 6px 1px rgba(0, 0, 0, 0.2);
|
46
|
+
background-color: #f5f6f7;
|
47
|
+
}
|
48
|
+
.plugin_meta {
|
49
|
+
display: flex;
|
50
|
+
flex-direction: column;
|
51
|
+
padding: 5px;
|
52
|
+
width: 250px;
|
53
|
+
justify-content: space-between;
|
54
|
+
}
|
55
|
+
.plugin_name {
|
56
|
+
font-size: 20px;
|
57
|
+
}
|
58
|
+
.plugin_description {
|
59
|
+
font-size: 15px;
|
60
|
+
color: gray;
|
61
|
+
margin-top: 5px;
|
62
|
+
margin-bottom: 5px;
|
63
|
+
}
|
64
|
+
.plugin_meta_line1 {
|
65
|
+
display: flex;
|
66
|
+
flex-direction: row;
|
67
|
+
align-items: center;
|
68
|
+
justify-content: space-between;
|
69
|
+
}
|
70
|
+
.plugin_meta_line3 {
|
71
|
+
display: flex;
|
72
|
+
flex-direction: row;
|
73
|
+
align-items: center;
|
74
|
+
}
|
75
|
+
.package_name_label{
|
76
|
+
background-image: url(./fingerprint.svg);
|
77
|
+
width: 13px;
|
78
|
+
height: 13px;
|
79
|
+
margin-right: 8px;
|
80
|
+
}
|
81
|
+
.package_name {
|
82
|
+
font-size: 13px;
|
83
|
+
color: gray;
|
84
|
+
}
|
85
|
+
.switch {
|
86
|
+
position: relative;
|
87
|
+
display: inline-block;
|
88
|
+
width: 40px;
|
89
|
+
height: 24px;
|
90
|
+
}
|
91
|
+
.slider {
|
92
|
+
position: absolute;
|
93
|
+
cursor: pointer;
|
94
|
+
top: 0;
|
95
|
+
left: 0;
|
96
|
+
right: 0;
|
97
|
+
bottom: 0;
|
98
|
+
background-color: #ccc;
|
99
|
+
}
|
100
|
+
.slider:before {
|
101
|
+
position: absolute;
|
102
|
+
content: "";
|
103
|
+
height: 16px;
|
104
|
+
width: 16px;
|
105
|
+
left: 4px;
|
106
|
+
bottom: 4px;
|
107
|
+
background-color: white;
|
108
|
+
}
|
109
|
+
.switch input {
|
110
|
+
display: none;
|
111
|
+
}
|
112
|
+
.switch input:checked + .slider {
|
113
|
+
background-color: rgba(86, 40, 238, 0.5);
|
114
|
+
}
|
115
|
+
.switch input:checked + .slider:before {
|
116
|
+
-webkit-transform: translateX(16px);
|
117
|
+
-ms-transform: translateX(16px);
|
118
|
+
transform: translateX(16px);
|
119
|
+
}
|
120
|
+
.slider.round {
|
121
|
+
border-radius: 24px;
|
122
|
+
}
|
123
|
+
.slider.round:before {
|
124
|
+
border-radius: 50%;
|
125
|
+
}
|
126
|
+
.checkbox {
|
127
|
+
visibility: hidden;
|
128
|
+
}
|
129
|
+
.slider.locked {
|
130
|
+
opacity: 0.5;
|
131
|
+
}
|
132
|
+
.switch input + span .lock {
|
133
|
+
width: 8px;
|
134
|
+
height: 7px;
|
135
|
+
background: #99a3ba;
|
136
|
+
position: absolute;
|
137
|
+
left: 8px;
|
138
|
+
bottom: 7px;
|
139
|
+
border-radius: 2px;
|
140
|
+
display: block;
|
141
|
+
z-index: 1;
|
142
|
+
transition: all 0.45s ease;
|
143
|
+
}
|
144
|
+
.switch input + span .lock:before {
|
145
|
+
content: "";
|
146
|
+
width: 2px;
|
147
|
+
height: 2px;
|
148
|
+
border-radius: 1px;
|
149
|
+
background: #fff;
|
150
|
+
position: absolute;
|
151
|
+
display: block;
|
152
|
+
left: 50%;
|
153
|
+
top: 50%;
|
154
|
+
margin: -1px 0 0 -1px;
|
155
|
+
}
|
156
|
+
.switch input + span .lock:after {
|
157
|
+
content: "";
|
158
|
+
border-top-left-radius: 4px;
|
159
|
+
border-top-right-radius: 4px;
|
160
|
+
border: 1px solid #99a3ba;
|
161
|
+
border-bottom: 0;
|
162
|
+
width: 4px;
|
163
|
+
height: 4px;
|
164
|
+
left: 1px;
|
165
|
+
bottom: 6px;
|
166
|
+
position: absolute;
|
167
|
+
z-index: 1;
|
168
|
+
-webkit-transform-origin: 0 100%;
|
169
|
+
transform-origin: 0 100%;
|
170
|
+
transition: all 0.45s ease;
|
171
|
+
}
|
172
|
+
.switch input:checked + span .lock {
|
173
|
+
background: #5628ee;
|
174
|
+
-webkit-transform: translateX(16px);
|
175
|
+
-ms-transform: translateX(16px);
|
176
|
+
transform: translateX(16px);
|
177
|
+
}
|
178
|
+
.lock {
|
179
|
+
visibility: hidden;
|
180
|
+
}
|
181
|
+
.lock.locked {
|
182
|
+
visibility: inherit;
|
183
|
+
}
|
184
|
+
</style>
|
185
|
+
</head>
|
186
|
+
<body>
|
187
|
+
<div class="image">
|
188
|
+
<div class="head">
|
189
|
+
<span><b>已加载服务器</b></span>
|
190
|
+
<span>发送 “<b>服务器昵称/序号</b>” 查看详情</span>
|
191
|
+
</div>
|
192
|
+
<div class="plugins">
|
193
|
+
{% for plugin in plugins %}
|
194
|
+
<div class="plugin">
|
195
|
+
<div class="plugin_meta">
|
196
|
+
<div class="plugin_meta_line1">
|
197
|
+
<div class="plugin_name">{{ plugin.number }}:{{ plugin.name }}</div>
|
198
|
+
<div class="plugin_status">
|
199
|
+
<label class="switch">
|
200
|
+
<input class="checkbox" type="checkbox" {% if plugin.enabled %} checked {% endif %} />
|
201
|
+
<span class="slider round {% if plugin.locked %} locked {% endif %}">
|
202
|
+
<span class="lock {% if plugin.locked %} locked {% endif %}"></span>
|
203
|
+
</span>
|
204
|
+
</label>
|
205
|
+
</div>
|
206
|
+
</div>
|
207
|
+
<div class="plugin_meta_line2">
|
208
|
+
<font color="blue">{{ plugin.map_ }}</font><br>
|
209
|
+
{% for Player in plugin.Players %}
|
210
|
+
<font color="green">{{ Player }}</font><br>
|
211
|
+
{% endfor %}
|
212
|
+
</div>
|
213
|
+
<div class="plugin_meta_line3">
|
214
|
+
<svg width="13px" height="13px">
|
215
|
+
<image xlink:href="{{ plugin.system }}" width="13px" height="13px"/>
|
216
|
+
</svg>
|
217
|
+
<div class="package_name"> {{ plugin.max_players }} </div>
|
218
|
+
<div class="package_name"> {{ plugin.tick }} </div>
|
219
|
+
</div>
|
220
|
+
</div>
|
221
|
+
</div>
|
222
|
+
{% endfor %}
|
223
|
+
</div>
|
224
|
+
<div class="head">
|
225
|
+
<span><b>©爱丽数码</b></span>
|
226
|
+
<span>github.com/Agnes4m/nonebot_plugin_l4d2_server</span>
|
227
|
+
</div>
|
228
|
+
</div>
|
229
|
+
</html>
|
230
|
+
</body>
|
231
|
+
|
232
|
+
|
233
|
+
|