nonebot-plugin-l4d2-server 0.6.4__tar.gz → 0.6.4.post1__tar.gz
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-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/PKG-INFO +1 -1
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/__init__.py +2 -0
- nonebot_plugin_l4d2_server-0.6.4.post1/nonebot_plugin_l4d2_server/data/L4D2/image/template/ip.html +55 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_file/__init__.py +2 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_queries/__init__.py +2 -2
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_utils/config.py +1 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/pyproject.toml +1 -1
- nonebot_plugin_l4d2_server-0.6.4/nonebot_plugin_l4d2_server/data/L4D2/image/template/ip.html +0 -49
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/LICENSE +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/README.md +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/data/L4D2/image/head/head.png +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/data/L4D2/image/header/logo.png +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/data/L4D2/image/header/player1.jpg +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/data/L4D2/image/template/anne.html +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/data/L4D2/image/template/back.png +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/data/L4D2/image/template/fingerprint.svg +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/data/L4D2/image/template/group_ip.html +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/data/L4D2/image/template/help.html +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/data/L4D2/image/template/help_dack.html +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/data/L4D2/image/template/l.svg +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/data/L4D2/image/template/m.svg +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/data/L4D2/image/template/vue.css +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/data/L4D2/image/template/w.svg +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/data/img/white.png +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_anne/__init__.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_anne/analysis.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_anne/anne_telecom.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_anne/server.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_anne/startand.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_anne/utils.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_data/__init__.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_data/config.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_data/database.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_data/players.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_data/serverip.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_file/ayromote.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_file/input_json.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_file/remote.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_file/utils.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_image/__init__.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_image/download.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_image/htmlimg.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_image/images.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_image/one.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_image/send_image_tool.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_image/steam.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_image/vtfs.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_push/__init__.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_queries/himi.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_queries/local_ip.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_queries/qqgroup.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_queries/send_msg.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_queries/utils.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_server/__init__.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_server/index.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_server/rcon.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_server/workshop.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_update/__init__.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_update/draw_update_log.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_update/restart.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_update/update.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_utils/classcal.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_utils/command.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_utils/message.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_utils/rule.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_utils/seach.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_utils/txt_to_img.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_utils/utils.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_web/web.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_web/webUI.py +0 -0
- {nonebot_plugin_l4d2_server-0.6.4 → nonebot_plugin_l4d2_server-0.6.4.post1}/nonebot_plugin_l4d2_server/l4d2_web/webUI_s.py +0 -0
@@ -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
|
@@ -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]
|
nonebot_plugin_l4d2_server-0.6.4.post1/nonebot_plugin_l4d2_server/data/L4D2/image/template/ip.html
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html class="pc">
|
3
|
+
|
4
|
+
<head>
|
5
|
+
<link rel="stylesheet" type="text/css" href="vue.css">
|
6
|
+
<title>Server Information</title>
|
7
|
+
<style>
|
8
|
+
table {
|
9
|
+
border-collapse: collapse;
|
10
|
+
width: 100%;
|
11
|
+
}
|
12
|
+
|
13
|
+
th,
|
14
|
+
td {
|
15
|
+
border: 1px solid #ddd;
|
16
|
+
padding: 8px;
|
17
|
+
text-align: left;
|
18
|
+
}
|
19
|
+
|
20
|
+
th {
|
21
|
+
background-color: #f2f2f2;
|
22
|
+
}
|
23
|
+
</style>
|
24
|
+
</head>
|
25
|
+
|
26
|
+
<body style="background-image: url('back2.jpg'); background-size: 1200px 1800px;">
|
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>
|
41
|
+
</td>
|
42
|
+
{% endif %}
|
43
|
+
{% endfor %}
|
44
|
+
</tr>
|
45
|
+
{% endfor %}
|
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
|
+
|
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):
|
nonebot_plugin_l4d2_server-0.6.4/nonebot_plugin_l4d2_server/data/L4D2/image/template/ip.html
DELETED
@@ -1,49 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html class="pc">
|
3
|
-
<head>
|
4
|
-
<link rel="stylesheet" type="text/css" href="vue.css">
|
5
|
-
<title>Server Information</title>
|
6
|
-
<style>
|
7
|
-
table {
|
8
|
-
border-collapse: collapse;
|
9
|
-
width: 100%;
|
10
|
-
}
|
11
|
-
th, td {
|
12
|
-
border: 1px solid #ddd;
|
13
|
-
padding: 8px;
|
14
|
-
text-align: left;
|
15
|
-
}
|
16
|
-
th {
|
17
|
-
background-color: #f2f2f2;
|
18
|
-
}
|
19
|
-
</style>
|
20
|
-
</head>
|
21
|
-
<body style="background-image: url('back2.jpg'); background-size: 1200px 1800px;">
|
22
|
-
<div class="myinfo">
|
23
|
-
<table>
|
24
|
-
{% for i in range(0, data|length, 3) %}
|
25
|
-
<tr>
|
26
|
-
{% for j in range(i, i + 3) %}
|
27
|
-
{% if j < data|length %}
|
28
|
-
<td>
|
29
|
-
<font color="red">{{ data[j].number }}</font><br>
|
30
|
-
<font color="yellow">{{ data[j].name }}</font><br>
|
31
|
-
<font color="gray">{{ data[j].ip }}</font><br>
|
32
|
-
<font color="blue">{{ data[j].map_ }}</font><br>
|
33
|
-
{% for Player in data[j].Players %}
|
34
|
-
<font color="green">{{ Player }}</font><br>
|
35
|
-
{% endfor %}
|
36
|
-
<font color="yellow">{{ data[j].max_players }}{{data[j].ping}}</font>
|
37
|
-
</td>
|
38
|
-
{% endif %}
|
39
|
-
{% endfor %}
|
40
|
-
</tr>
|
41
|
-
{% endfor %}
|
42
|
-
</table>
|
43
|
-
<h5><center>©爱丽数码</center></br>
|
44
|
-
<center>
|
45
|
-
github.com/Agnes4m/nonebot_plugin_l4d2_server
|
46
|
-
</center>
|
47
|
-
</h5>
|
48
|
-
</div>
|
49
|
-
</html>
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|