nonebot-plugin-l4d2-server 0.6.4__py3-none-any.whl → 0.6.4.post1__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/__init__.py +2 -0
- nonebot_plugin_l4d2_server/data/L4D2/image/template/ip.html +33 -27
- nonebot_plugin_l4d2_server/l4d2_file/__init__.py +2 -0
- nonebot_plugin_l4d2_server/l4d2_queries/__init__.py +2 -2
- nonebot_plugin_l4d2_server/l4d2_utils/config.py +1 -0
- {nonebot_plugin_l4d2_server-0.6.4.dist-info → nonebot_plugin_l4d2_server-0.6.4.post1.dist-info}/METADATA +1 -1
- {nonebot_plugin_l4d2_server-0.6.4.dist-info → nonebot_plugin_l4d2_server-0.6.4.post1.dist-info}/RECORD +9 -9
- {nonebot_plugin_l4d2_server-0.6.4.dist-info → nonebot_plugin_l4d2_server-0.6.4.post1.dist-info}/WHEEL +0 -0
- {nonebot_plugin_l4d2_server-0.6.4.dist-info → nonebot_plugin_l4d2_server-0.6.4.post1.dist-info}/licenses/LICENSE +0 -0
@@ -87,6 +87,8 @@ async def _(matcher: Matcher):
|
|
87
87
|
|
88
88
|
@search_api.got("is_sure", prompt='如果需要上传,请发送 "yes"')
|
89
89
|
async def _(matcher: Matcher, bot: Bot, event: GroupMessageEvent, state: T_State):
|
90
|
+
if not l4_config.l4_group_upload:
|
91
|
+
return
|
90
92
|
is_sure = str(state["is_sure"])
|
91
93
|
if is_sure == "yes":
|
92
94
|
data_dict: dict = state["maps"][0]
|
@@ -1,49 +1,55 @@
|
|
1
1
|
<!DOCTYPE html>
|
2
2
|
<html class="pc">
|
3
|
+
|
3
4
|
<head>
|
4
|
-
|
5
|
+
<link rel="stylesheet" type="text/css" href="vue.css">
|
5
6
|
<title>Server Information</title>
|
6
7
|
<style>
|
7
8
|
table {
|
8
9
|
border-collapse: collapse;
|
9
10
|
width: 100%;
|
10
11
|
}
|
11
|
-
|
12
|
+
|
13
|
+
th,
|
14
|
+
td {
|
12
15
|
border: 1px solid #ddd;
|
13
16
|
padding: 8px;
|
14
17
|
text-align: left;
|
15
18
|
}
|
19
|
+
|
16
20
|
th {
|
17
21
|
background-color: #f2f2f2;
|
18
22
|
}
|
19
23
|
</style>
|
20
24
|
</head>
|
25
|
+
|
21
26
|
<body style="background-image: url('back2.jpg'); background-size: 1200px 1800px;">
|
22
|
-
<div class="myinfo">
|
23
|
-
<table>
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
{% if j < data|length %}
|
28
|
-
<
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
<font color="yellow">{{ data[j].max_players }}{{data[j].ping}}</font>
|
27
|
+
<div class="myinfo">
|
28
|
+
<table>
|
29
|
+
{% for i in range(0, data|length, 3) %}
|
30
|
+
<tr>
|
31
|
+
{% for j in range(i, i + 3) %}
|
32
|
+
{% if j < data|length %} <td>
|
33
|
+
<font color="red">{{ data[j].number }}</font><br>
|
34
|
+
<font color="yellow">{{ data[j].name }}</font><br>
|
35
|
+
<font color="gray">{{ data[j].ip }}</font><br>
|
36
|
+
<font color="blue">{{ data[j].map_ }}</font><br>
|
37
|
+
{% for Player in data[j].Players %}
|
38
|
+
<font color="green">{{ Player }}</font><br>
|
39
|
+
{% endfor %}
|
40
|
+
<font color="yellow">{{ data[j].max_players }}{{data[j].ping}}</font>
|
37
41
|
</td>
|
38
|
-
|
42
|
+
{% endif %}
|
43
|
+
{% endfor %}
|
44
|
+
</tr>
|
39
45
|
{% endfor %}
|
40
|
-
</
|
41
|
-
|
42
|
-
|
43
|
-
<
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
</
|
48
|
-
|
46
|
+
</table>
|
47
|
+
<h5>
|
48
|
+
<center>©爱丽数码</center></br>
|
49
|
+
<center>
|
50
|
+
github.com/Agnes4m/nonebot_plugin_l4d2_server
|
51
|
+
</center>
|
52
|
+
</h5>
|
53
|
+
</div>
|
54
|
+
|
49
55
|
</html>
|
@@ -147,7 +147,7 @@ async def get_read_ip(ip_anne_list: List[Tuple[str, str, str]]):
|
|
147
147
|
if command == "anne":
|
148
148
|
command = "云"
|
149
149
|
msg: str = args.extract_plain_text()
|
150
|
-
if
|
150
|
+
if "组" in msg:
|
151
151
|
logger.info(f"关键词:{command}")
|
152
152
|
# 以群组模式输出
|
153
153
|
push_msg = await get_group_ip_to_msg(command)
|
@@ -166,7 +166,7 @@ async def get_read_ip(ip_anne_list: List[Tuple[str, str, str]]):
|
|
166
166
|
logger.info("直接发送图片")
|
167
167
|
await MessageFactory([Image(push_msg)]).finish()
|
168
168
|
return
|
169
|
-
if msg and
|
169
|
+
if msg and isinstance(push_msg, list):
|
170
170
|
logger.info("更加构造函数")
|
171
171
|
await MessageFactory([Image(push_msg[0]), Text(push_msg[-1])]).finish()
|
172
172
|
return
|
@@ -93,6 +93,7 @@ class L4d2Config(BaseModel):
|
|
93
93
|
l4_push_interval: int = Field(3, alias="定时任务间隔")
|
94
94
|
l4_push_times: int = Field(10, alias="定时任务次数")
|
95
95
|
l4_connect: bool = Field(True, alias="是否在查服命令后加入connect ip")
|
96
|
+
l4_group_upload: bool = Field(False, alias="是否在群里传地图的时候,提示上传服务器")
|
96
97
|
group_config: Dict[int, L4d2GroupConfig] = Field({}, alias="分群配置")
|
97
98
|
|
98
99
|
def update(self, **kwargs):
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nonebot-plugin-l4d2-server
|
3
|
-
Version: 0.6.4
|
3
|
+
Version: 0.6.4.post1
|
4
4
|
Summary: L4D2 server related operations plugin for NoneBot2
|
5
5
|
Keywords: steam game l4d2 nonebot2 plugin
|
6
6
|
Home-page: https://github.com/Agnes4m/nonebot_plugin_l4d2_server
|
@@ -1,7 +1,7 @@
|
|
1
|
-
nonebot_plugin_l4d2_server-0.6.4.dist-info/METADATA,sha256=
|
2
|
-
nonebot_plugin_l4d2_server-0.6.4.dist-info/WHEEL,sha256=1D4d-_ODszlK6-qFybc5BLF-ZhZvee-uKVh2hLa3IIc,90
|
3
|
-
nonebot_plugin_l4d2_server-0.6.4.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
4
|
-
nonebot_plugin_l4d2_server/__init__.py,sha256=
|
1
|
+
nonebot_plugin_l4d2_server-0.6.4.post1.dist-info/METADATA,sha256=GJpdprlMBkilf8go0V294HqsAb91UzuDKv2KHadQAF0,7946
|
2
|
+
nonebot_plugin_l4d2_server-0.6.4.post1.dist-info/WHEEL,sha256=1D4d-_ODszlK6-qFybc5BLF-ZhZvee-uKVh2hLa3IIc,90
|
3
|
+
nonebot_plugin_l4d2_server-0.6.4.post1.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
4
|
+
nonebot_plugin_l4d2_server/__init__.py,sha256=mMa34sf_bsxPGHfWCloeNYj1S-fkmb57HJNKWVt769k,5012
|
5
5
|
nonebot_plugin_l4d2_server/data/L4D2/image/head/head.png,sha256=Z72PEvp7xF1DZcLDeuWlg2_g6JAfHxtisptWn6BYGN8,158357
|
6
6
|
nonebot_plugin_l4d2_server/data/L4D2/image/header/logo.png,sha256=1KhQNsx7zsCKGHmyIZ65dP9npkKzo7Im-Aafyi5_lhc,631630
|
7
7
|
nonebot_plugin_l4d2_server/data/L4D2/image/header/player1.jpg,sha256=2A_llIi9YVhJs9JOMuF36by7Ewc7P7qOgQS8t5jemNw,405369
|
@@ -11,7 +11,7 @@ nonebot_plugin_l4d2_server/data/L4D2/image/template/fingerprint.svg,sha256=qtbdX
|
|
11
11
|
nonebot_plugin_l4d2_server/data/L4D2/image/template/group_ip.html,sha256=0RCWB0q8Wx0NcKdVmGeVr2odaNzODNVCJK0jiQ826U8,7222
|
12
12
|
nonebot_plugin_l4d2_server/data/L4D2/image/template/help.html,sha256=X_R6o5bkW3FFN4BvG3bL8px1slPBY8xhtZM9aSBsAns,5832
|
13
13
|
nonebot_plugin_l4d2_server/data/L4D2/image/template/help_dack.html,sha256=fpguTXl--5ivFsJIMgaTjt8BS2BK-0fW2BYC66aEuuA,6170
|
14
|
-
nonebot_plugin_l4d2_server/data/L4D2/image/template/ip.html,sha256=
|
14
|
+
nonebot_plugin_l4d2_server/data/L4D2/image/template/ip.html,sha256=hvKDc7ASbuaGxtx5Doavg5qa82K1vGq4bSapjrwrTy8,1611
|
15
15
|
nonebot_plugin_l4d2_server/data/L4D2/image/template/l.svg,sha256=I9iOeq-XqnWDECC7GqApV6Of3Tm26xmmYdchvXw2tAE,5506
|
16
16
|
nonebot_plugin_l4d2_server/data/L4D2/image/template/m.svg,sha256=rnZwx2X1dXPiKFQvccBZqspDZzLUin5ylesv-rRy1lo,2408
|
17
17
|
nonebot_plugin_l4d2_server/data/L4D2/image/template/vue.css,sha256=2sGjCFrR-3tFMB_x7l4K6k40tZ5JVzhWqD759cagYBA,7874
|
@@ -28,7 +28,7 @@ nonebot_plugin_l4d2_server/l4d2_data/config.py,sha256=j_Iq2fmJkCX9G-oscuibhCvozF
|
|
28
28
|
nonebot_plugin_l4d2_server/l4d2_data/database.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
29
29
|
nonebot_plugin_l4d2_server/l4d2_data/players.py,sha256=0c4OAEKC38ZBTcbvI-lBl2D0wRUqwm0Spccmi4KlhqQ,3368
|
30
30
|
nonebot_plugin_l4d2_server/l4d2_data/serverip.py,sha256=YnzPwjQaESgOQq8m_aJxZlhwTqzVbwPHD6-EWoIXq60,1293
|
31
|
-
nonebot_plugin_l4d2_server/l4d2_file/__init__.py,sha256=
|
31
|
+
nonebot_plugin_l4d2_server/l4d2_file/__init__.py,sha256=4gRhIQ6-Fw0jyobgz4GJ0C-AQGmAe63YXYdvP2RITCA,6963
|
32
32
|
nonebot_plugin_l4d2_server/l4d2_file/ayromote.py,sha256=CND4LSKEYO86bSrd6_TGe9A5RvVJpy2_--tX9mROHIM,1868
|
33
33
|
nonebot_plugin_l4d2_server/l4d2_file/input_json.py,sha256=_S7NIUZhZlE63ueETnPyVcZMnBAAwIVZdmW3VBukccY,2347
|
34
34
|
nonebot_plugin_l4d2_server/l4d2_file/remote.py,sha256=vzW1RhqAUi7lMLjeoYOUvy_70NVHgGQS07oPkeWNxgk,3074
|
@@ -42,7 +42,7 @@ nonebot_plugin_l4d2_server/l4d2_image/send_image_tool.py,sha256=0qcce0wOI7liuwjs
|
|
42
42
|
nonebot_plugin_l4d2_server/l4d2_image/steam.py,sha256=4c428t9bkRxig4Hmj4XllaoKCSsY6fpIYIkq1DhHUiE,2203
|
43
43
|
nonebot_plugin_l4d2_server/l4d2_image/vtfs.py,sha256=AltoUKpMzWQHY_PSqmlSHQyomk2dZHHML4YN6rnP1s0,1415
|
44
44
|
nonebot_plugin_l4d2_server/l4d2_push/__init__.py,sha256=-_iAQPvxYyO9yjv9yr1TM_NEjOPHnXx7CDZfD2CNxdw,7537
|
45
|
-
nonebot_plugin_l4d2_server/l4d2_queries/__init__.py,sha256=
|
45
|
+
nonebot_plugin_l4d2_server/l4d2_queries/__init__.py,sha256=g_8l3_3THyFPlk4t8HSzMc3CJlwEv6J2M-h2qN88a2w,11620
|
46
46
|
nonebot_plugin_l4d2_server/l4d2_queries/himi.py,sha256=iu34wD6P7yWXK_WtErpqmSlNLUjq2pwqO_wf_Rd3X8c,3547
|
47
47
|
nonebot_plugin_l4d2_server/l4d2_queries/local_ip.py,sha256=-wPvCx8mzl7KVh_OlC3j_EjYMf5IEIeLYkZNnknxITY,1281
|
48
48
|
nonebot_plugin_l4d2_server/l4d2_queries/qqgroup.py,sha256=Fcfdprwg2rKXKC5tfGiwkReAXnqdD7WRizhhDmV3Grg,12495
|
@@ -58,7 +58,7 @@ nonebot_plugin_l4d2_server/l4d2_update/restart.py,sha256=R4tSNgvbqtKCRTVdp41td2m
|
|
58
58
|
nonebot_plugin_l4d2_server/l4d2_update/update.py,sha256=h_YPzWWO6LY5v-m0Yg6fVUhHCvv4qOsdyk6vmotZETA,1465
|
59
59
|
nonebot_plugin_l4d2_server/l4d2_utils/classcal.py,sha256=WqI1pHnTdrgjQ_9YULhaFhERkUYZ-WhtvKBHHaT6_Sg,1226
|
60
60
|
nonebot_plugin_l4d2_server/l4d2_utils/command.py,sha256=cCflT3o5hvE4k56Bbg2TtY5avyEM-Z8nY9GNU3KtoXo,629
|
61
|
-
nonebot_plugin_l4d2_server/l4d2_utils/config.py,sha256=
|
61
|
+
nonebot_plugin_l4d2_server/l4d2_utils/config.py,sha256=lhqJy93hzI_jpuJ0eGgZUhXbplM_YfJ2NtTx_s_-KmI,6114
|
62
62
|
nonebot_plugin_l4d2_server/l4d2_utils/message.py,sha256=VzLtK9iPjJHPS1I7cmEIBCxiCivH0xaoBX-S_S9izZY,1631
|
63
63
|
nonebot_plugin_l4d2_server/l4d2_utils/rule.py,sha256=A_lC5i8hiQEZiTcCW_Pn2sldwuD5Pz3UdMHiozFqunc,1007
|
64
64
|
nonebot_plugin_l4d2_server/l4d2_utils/seach.py,sha256=ZAhwvS_xxSYg8AXIaRQTp9HzdAnSy2tHhxXrhR_YytQ,1230
|
@@ -67,4 +67,4 @@ nonebot_plugin_l4d2_server/l4d2_utils/utils.py,sha256=S1MYcfD38Fcvz4y1jEuoKWhc5L
|
|
67
67
|
nonebot_plugin_l4d2_server/l4d2_web/web.py,sha256=YvEMxG0nDrjbm4-IK9GkZlV7MPF9Nedc3goCnCUk_LA,9799
|
68
68
|
nonebot_plugin_l4d2_server/l4d2_web/webUI.py,sha256=1StBuG-crEli4M8AbPY4pd_zZi48veiZbeYO0KkOIh8,16217
|
69
69
|
nonebot_plugin_l4d2_server/l4d2_web/webUI_s.py,sha256=Y8PxkarJPsF9OvUVWCJ3SyhWYlYU5VQNnRGKG72KwFc,3339
|
70
|
-
nonebot_plugin_l4d2_server-0.6.4.dist-info/RECORD,,
|
70
|
+
nonebot_plugin_l4d2_server-0.6.4.post1.dist-info/RECORD,,
|
File without changes
|
File without changes
|