nonebot-plugin-l4d2-server 0.3.1.3__py3-none-any.whl → 0.3.1.4__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.
- README.md +4 -1
- nonebot_plugin_l4d2_server/__init__.py +6 -3
- nonebot_plugin_l4d2_server/config.py +13 -13
- {nonebot_plugin_l4d2_server-0.3.1.3.dist-info → nonebot_plugin_l4d2_server-0.3.1.4.dist-info}/LICENSE +0 -0
- {nonebot_plugin_l4d2_server-0.3.1.3.dist-info → nonebot_plugin_l4d2_server-0.3.1.4.dist-info}/METADATA +5 -2
- {nonebot_plugin_l4d2_server-0.3.1.3.dist-info → nonebot_plugin_l4d2_server-0.3.1.4.dist-info}/RECORD +7 -7
- {nonebot_plugin_l4d2_server-0.3.1.3.dist-info → nonebot_plugin_l4d2_server-0.3.1.4.dist-info}/WHEEL +0 -0
README.md
CHANGED
@@ -145,7 +145,9 @@ _✨Nonebot & Left 4 Dead 2 server操作✨_
|
|
145
145
|
| 求生地图/查看求生地图 | 所有人 | 看图 | 获取当前路径下所有的vpk文件,并输出目录 |
|
146
146
|
| (求生)地图删除[number] | 群管/超管 | 删图 | 根据求生地图列出的序号,删除地图,[number]可以在第二条消息内输入 |
|
147
147
|
| 求生地图[number][改/改名][text] | 群管/超管 | 改图名 | [number]同上,text为更改后名称,如果没有.vpk后缀会自动加上 |
|
148
|
-
| 求生服务器指令[text] | 群管/超管 | 控制台 | rcon
|
148
|
+
| 求生服务器指令[text] | 群管/超管 | 控制台 | rcon连接求生服务器控制台,使用ip和passsword |
|
149
|
+
| 求生路径 | 群管/超管 | 查看路径 | 查看当前服务器路径 |
|
150
|
+
| 求生路径切换[number] | 群管/超管 | 切换路径 | 切换本地服务器路径 |
|
149
151
|
|
150
152
|
### anne(电信服)
|
151
153
|
|
@@ -292,6 +294,7 @@ anne:<br>
|
|
292
294
|
- 在win端成功测试,修复压缩包bug
|
293
295
|
- 新增开关协程异步env设置
|
294
296
|
- 测试rcon建立通讯
|
297
|
+
- 实现切换路径查看地图和使用rcon指令
|
295
298
|
|
296
299
|
### 0.3.0--2022.2.18
|
297
300
|
|
@@ -39,7 +39,7 @@ scheduler = require("nonebot_plugin_apscheduler").scheduler
|
|
39
39
|
driver = get_driver()
|
40
40
|
|
41
41
|
|
42
|
-
__version__ = "0.3.1.
|
42
|
+
__version__ = "0.3.1.4"
|
43
43
|
__plugin_meta__ = PluginMetadata(
|
44
44
|
name="求生之路小助手",
|
45
45
|
description='群内对有关求生之路的查询和操作',
|
@@ -57,6 +57,7 @@ __plugin_meta__ = PluginMetadata(
|
|
57
57
|
@up.handle()
|
58
58
|
async def _(matcher:Matcher,event: NoticeEvent):
|
59
59
|
args = event.dict()
|
60
|
+
map_path = Path(l4_file[CHECK_FILE],vpk_path)
|
60
61
|
if args['notice_type'] != 'offline_file':
|
61
62
|
matcher.set_arg('txt',args)
|
62
63
|
else:
|
@@ -92,6 +93,7 @@ async def _(matcher:Matcher,event: NoticeEvent):
|
|
92
93
|
async def _(matcher: Matcher):
|
93
94
|
logger.info(l4_file)
|
94
95
|
args = matcher.get_arg('txt')
|
96
|
+
map_path = Path(l4_file[CHECK_FILE],vpk_path)
|
95
97
|
sleep(1)
|
96
98
|
if not args:
|
97
99
|
await matcher.finish('获取文件出错辣,再试一次吧')
|
@@ -134,6 +136,7 @@ async def _(matcher: Matcher):
|
|
134
136
|
@find_vpk.handle()
|
135
137
|
async def _(bot:Bot,event: MessageEvent):
|
136
138
|
name_vpk = []
|
139
|
+
map_path = Path(l4_file[CHECK_FILE],vpk_path)
|
137
140
|
name_vpk = get_vpk(name_vpk,map_path)
|
138
141
|
logger.info("获取文件列表成功")
|
139
142
|
mes = "当前服务器下有以下vpk文件"
|
@@ -151,12 +154,14 @@ async def _(matcher:Matcher,args:Message = CommandArg()):
|
|
151
154
|
|
152
155
|
@del_vpk.got("num",prompt="你要删除第几个序号的地图(阿拉伯数字)")
|
153
156
|
async def _(tag:int = ArgPlainText("num")):
|
157
|
+
map_path = Path(l4_file[CHECK_FILE],vpk_path)
|
154
158
|
vpk_name = del_map(tag,map_path)
|
155
159
|
await del_vpk.finish('已删除地图:' + vpk_name)
|
156
160
|
|
157
161
|
@rename_vpk.handle()
|
158
162
|
async def _(matched: Tuple[int,str, str] = RegexGroup(),):
|
159
163
|
num,useless,rename = matched
|
164
|
+
map_path = Path(l4_file[CHECK_FILE],vpk_path)
|
160
165
|
logger.info('检查是否名字是.vpk后缀')
|
161
166
|
if not rename.endswith('.vpk'):
|
162
167
|
rename = rename + '.vpk'
|
@@ -245,7 +250,6 @@ async def _(args:Message = CommandArg()):
|
|
245
250
|
else:
|
246
251
|
CHECK_FILE = msg_number - 1
|
247
252
|
now_path = l4_file[CHECK_FILE]
|
248
|
-
load_config()
|
249
253
|
await check_path.send(f'已经切换路径为\n{str(CHECK_FILE+1)}、{now_path}')
|
250
254
|
else:
|
251
255
|
now_path = l4_file[CHECK_FILE]
|
@@ -339,7 +343,6 @@ async def _(matcher: Matcher,bot:Bot,event:GroupMessageEvent,state:T_State):
|
|
339
343
|
async def _(args:Message = CommandArg()):
|
340
344
|
"""更新"""
|
341
345
|
msg = args.extract_plain_text()
|
342
|
-
load_config()
|
343
346
|
if not msg:
|
344
347
|
load_josn()
|
345
348
|
reload_ip()
|
@@ -91,19 +91,19 @@ l4_file, l4_steamid, l4_host, l4_port, l4_rcon, l4_master = l4_list
|
|
91
91
|
地图路径
|
92
92
|
'''
|
93
93
|
vpk_path = "left4dead2/addons"
|
94
|
-
map_path = Path(l4_file[CHECK_FILE],vpk_path)
|
95
|
-
l4_file_one = l4_file[CHECK_FILE]
|
96
|
-
l4_host_one = l4_host[CHECK_FILE]
|
97
|
-
l4_port_one = int(l4_port[CHECK_FILE])
|
98
|
-
l4_rcon_one = l4_rcon[CHECK_FILE]
|
99
|
-
def load_config():
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
94
|
+
# map_path = Path(l4_file[CHECK_FILE],vpk_path)
|
95
|
+
# l4_file_one = l4_file[CHECK_FILE]
|
96
|
+
# l4_host_one = l4_host[CHECK_FILE]
|
97
|
+
# l4_port_one = int(l4_port[CHECK_FILE])
|
98
|
+
# l4_rcon_one = l4_rcon[CHECK_FILE]
|
99
|
+
# def load_config():
|
100
|
+
# # 文件路径
|
101
|
+
# global map_path,l4_file_one,l4_host_one,l4_port_one,l4_rcon_one
|
102
|
+
# map_path = Path(l4_file[CHECK_FILE],vpk_path)
|
103
|
+
# l4_file_one = l4_file[CHECK_FILE]
|
104
|
+
# l4_host_one = l4_host[CHECK_FILE]
|
105
|
+
# l4_port_one = int(l4_port[CHECK_FILE])
|
106
|
+
# l4_rcon_one = l4_rcon[CHECK_FILE]
|
107
107
|
|
108
108
|
|
109
109
|
PLAYERSDATA = Path() / "data/L4D2/image/players"
|
File without changes
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nonebot-plugin-l4d2-server
|
3
|
-
Version: 0.3.1.
|
3
|
+
Version: 0.3.1.4
|
4
4
|
Summary: L4D2 server related operations plugin for NoneBot
|
5
5
|
Home-page: https://github.com/Umamusume-Agnes-Digital/nonebot_plugin_l4d2_server
|
6
6
|
License: MIT
|
@@ -187,7 +187,9 @@ _✨Nonebot & Left 4 Dead 2 server操作✨_
|
|
187
187
|
| 求生地图/查看求生地图 | 所有人 | 看图 | 获取当前路径下所有的vpk文件,并输出目录 |
|
188
188
|
| (求生)地图删除[number] | 群管/超管 | 删图 | 根据求生地图列出的序号,删除地图,[number]可以在第二条消息内输入 |
|
189
189
|
| 求生地图[number][改/改名][text] | 群管/超管 | 改图名 | [number]同上,text为更改后名称,如果没有.vpk后缀会自动加上 |
|
190
|
-
| 求生服务器指令[text] | 群管/超管 | 控制台 | rcon
|
190
|
+
| 求生服务器指令[text] | 群管/超管 | 控制台 | rcon连接求生服务器控制台,使用ip和passsword |
|
191
|
+
| 求生路径 | 群管/超管 | 查看路径 | 查看当前服务器路径 |
|
192
|
+
| 求生路径切换[number] | 群管/超管 | 切换路径 | 切换本地服务器路径 |
|
191
193
|
|
192
194
|
### anne(电信服)
|
193
195
|
|
@@ -334,6 +336,7 @@ anne:<br>
|
|
334
336
|
- 在win端成功测试,修复压缩包bug
|
335
337
|
- 新增开关协程异步env设置
|
336
338
|
- 测试rcon建立通讯
|
339
|
+
- 实现切换路径查看地图和使用rcon指令
|
337
340
|
|
338
341
|
### 0.3.0--2022.2.18
|
339
342
|
|
{nonebot_plugin_l4d2_server-0.3.1.3.dist-info → nonebot_plugin_l4d2_server-0.3.1.4.dist-info}/RECORD
RENAMED
@@ -1,7 +1,7 @@
|
|
1
1
|
LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
|
2
|
-
nonebot_plugin_l4d2_server/__init__.py,sha256=
|
2
|
+
nonebot_plugin_l4d2_server/__init__.py,sha256=pMDYYZXvh3d1EzoDjN47MxS3y23VLGQqyhhhgwpc4Fs,16661
|
3
3
|
nonebot_plugin_l4d2_server/command.py,sha256=md0LK2N0OVxWNWf850AT4Iwk_CA2_b8TnioFhaEv4MI,4975
|
4
|
-
nonebot_plugin_l4d2_server/config.py,sha256=
|
4
|
+
nonebot_plugin_l4d2_server/config.py,sha256=rty6HGFS3a5v04kKzSOkBO6lOya_e_HlSqD9TZ-rxDU,3819
|
5
5
|
nonebot_plugin_l4d2_server/data/L4D2/font.ttf,sha256=COzaRqdqO7vgO2IEKRko3ck9ZOdm7_iwOfbe72UATzE,2365520
|
6
6
|
nonebot_plugin_l4d2_server/data/L4D2/image/head/head.png,sha256=Z72PEvp7xF1DZcLDeuWlg2_g6JAfHxtisptWn6BYGN8,158357
|
7
7
|
nonebot_plugin_l4d2_server/data/L4D2/image/header/player1.jpg,sha256=2A_llIi9YVhJs9JOMuF36by7Ewc7P7qOgQS8t5jemNw,405369
|
@@ -35,8 +35,8 @@ nonebot_plugin_l4d2_server/message.py,sha256=7Dx3XLC3Ef2nS1JWNUsOph1mM-XZikGqMri
|
|
35
35
|
nonebot_plugin_l4d2_server/seach.py,sha256=_H21KaSBJ941U8wqE-SRdPuBIYTKE2ogbuUk55B3ME0,1053
|
36
36
|
nonebot_plugin_l4d2_server/txt_to_img.py,sha256=ZaxHYNu8aAZUH4fNALyE1Q_ET7KuWytEiMFZ9loZnqc,2188
|
37
37
|
nonebot_plugin_l4d2_server/utils.py,sha256=_GY9zstxi1iWqDnBxZWzdTqMM-7-eGrl6i_IAvhuA8E,8270
|
38
|
-
README.md,sha256=
|
39
|
-
nonebot_plugin_l4d2_server-0.3.1.
|
40
|
-
nonebot_plugin_l4d2_server-0.3.1.
|
41
|
-
nonebot_plugin_l4d2_server-0.3.1.
|
42
|
-
nonebot_plugin_l4d2_server-0.3.1.
|
38
|
+
README.md,sha256=MGFW2EG_8Y-OnMR-ebBuJwRHjZwNll_vH9Xg_pacXu0,15098
|
39
|
+
nonebot_plugin_l4d2_server-0.3.1.4.dist-info/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
|
40
|
+
nonebot_plugin_l4d2_server-0.3.1.4.dist-info/METADATA,sha256=fj0z0ZosBoMADtgcUaGGBvDEugmOX0zboeVI3FETsA0,16453
|
41
|
+
nonebot_plugin_l4d2_server-0.3.1.4.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
|
42
|
+
nonebot_plugin_l4d2_server-0.3.1.4.dist-info/RECORD,,
|
{nonebot_plugin_l4d2_server-0.3.1.3.dist-info → nonebot_plugin_l4d2_server-0.3.1.4.dist-info}/WHEEL
RENAMED
File without changes
|