nonebot-plugin-l4d2-server 0.4.4__py3-none-any.whl → 0.4.5__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 CHANGED
@@ -113,7 +113,7 @@ _✨Nonebot & Left 4 Dead 2 server操作✨_
113
113
  <summary>展开/收起</summary>
114
114
 
115
115
 
116
- ### 0.4.4--2022.4.9
116
+ ### 0.4.5--2022.4.9
117
117
 
118
118
  - 修bug(恼)
119
119
 
@@ -47,7 +47,7 @@ else:
47
47
  driver = get_driver()
48
48
 
49
49
 
50
- __version__ = "0.4.3"
50
+ __version__ = "0.4.5"
51
51
  __plugin_meta__ = PluginMetadata(
52
52
  name="求生之路小助手",
53
53
  description='群内对有关求生之路的查询和操作',
@@ -139,6 +139,7 @@ async def _(matcher: Matcher):
139
139
  async def _(bot:Bot,event: MessageEvent,matcher: Matcher):
140
140
  name_vpk = []
141
141
  map_path = Path(l4_file[CHECK_FILE],vpk_path)
142
+ print
142
143
  name_vpk = get_vpk(name_vpk,map_path)
143
144
  logger.info("获取文件列表成功")
144
145
  mes = "当前服务器下有以下vpk文件"
@@ -39,11 +39,13 @@ async def get_file(url: str, down_file: Path):
39
39
  return None
40
40
 
41
41
 
42
- def get_vpk(path: Path, file_: str = '.vpk') -> List[str]:
42
+ def get_vpk(vpk_list: List[str], map_path: Path, file_: str = '.vpk') -> List[str]:
43
43
  '''
44
- 获取所有vpk文件
44
+ 获取路径下所有vpk文件名,并存入vpk_list列表中
45
45
  '''
46
- return [file for file in os.listdir(path) if file.endswith(file_)]
46
+ vpk_list.extend([file for file in os.listdir(str(map_path)) if file.endswith(file_)])
47
+ return vpk_list
48
+
47
49
 
48
50
 
49
51
  def mes_list(mes: str, name_list: List[str]) -> str:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nonebot-plugin-l4d2-server
3
- Version: 0.4.4
3
+ Version: 0.4.5
4
4
  Summary: L4D2 server related operations plugin for NoneBot2
5
5
  Home-page: https://github.com/Agnes4m/nonebot_plugin_l4d2_server
6
6
  License: GPLv3
@@ -160,7 +160,7 @@ _✨Nonebot & Left 4 Dead 2 server操作✨_
160
160
  <summary>展开/收起</summary>
161
161
 
162
162
 
163
- ### 0.4.4--2022.4.9
163
+ ### 0.4.5--2022.4.9
164
164
 
165
165
  - 修bug(恼)
166
166
 
@@ -1,5 +1,5 @@
1
1
  LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
2
- nonebot_plugin_l4d2_server/__init__.py,sha256=q4dKx9enHwe47XT1ZNbu_A6c4VVC3-wz9y_1SCGQyOk,16815
2
+ nonebot_plugin_l4d2_server/__init__.py,sha256=8fhqEKL1mZy-1ux0cPID-H0jNFkGKlsygzw416DgT0k,16826
3
3
  nonebot_plugin_l4d2_server/command.py,sha256=BkzjLJ8sfyk7mASBz_DPE2FJSzZWwwJI0V3yqbT94Oo,8027
4
4
  nonebot_plugin_l4d2_server/config.py,sha256=puYEwIzTgxYaMuWAH_7WkXStt0PQkpLiFYrhfWaigWQ,4965
5
5
  nonebot_plugin_l4d2_server/data/L4D2/image/head/head.png,sha256=Z72PEvp7xF1DZcLDeuWlg2_g6JAfHxtisptWn6BYGN8,158357
@@ -42,9 +42,9 @@ nonebot_plugin_l4d2_server/l4d2_web/webUI.py,sha256=d96qS2ox0zsG43HcOP8wkoJjWumR
42
42
  nonebot_plugin_l4d2_server/message.py,sha256=x_ts0HaW3SNOma-baEG0oaeozKE5Nh_fybnRH6VE8i0,1678
43
43
  nonebot_plugin_l4d2_server/seach.py,sha256=dsusYogKH9pGeLxZz9BTheQwtJ3wAO3tfbePYdcaIuA,1025
44
44
  nonebot_plugin_l4d2_server/txt_to_img.py,sha256=evJeuKWSHbg8EWnUdeqHoNbxE5yOORVWXJwMWO1PKTo,2166
45
- nonebot_plugin_l4d2_server/utils.py,sha256=pY8e94zAms98oaiqx6ZWzrSIMTTc7vuWHHkaxt3BBIA,8189
46
- README.md,sha256=1UlbEiueAyvOAS0HcNQAqidpMqQRnaZZTFLlAdUP5Kk,10903
47
- nonebot_plugin_l4d2_server-0.4.4.dist-info/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
48
- nonebot_plugin_l4d2_server-0.4.4.dist-info/METADATA,sha256=gbPM84prJUqkYhaAJoGT1AA_sTg_bKwTyv3DKh0A50I,12573
49
- nonebot_plugin_l4d2_server-0.4.4.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
50
- nonebot_plugin_l4d2_server-0.4.4.dist-info/RECORD,,
45
+ nonebot_plugin_l4d2_server/utils.py,sha256=OywrH2CQHZo-OMkLxFZV70qN5_KpvZ-Ox3IlizVUENo,8297
46
+ README.md,sha256=hRhs-1x5oJ0EHspxKVVqJbqfwZgnoTC83kJrZlL3QQI,10903
47
+ nonebot_plugin_l4d2_server-0.4.5.dist-info/LICENSE,sha256=IwGE9guuL-ryRPEKi6wFPI_zOhg7zDZbTYuHbSt_SAk,35823
48
+ nonebot_plugin_l4d2_server-0.4.5.dist-info/METADATA,sha256=-ZGVrLgAIfz293b1s65CpdOpO0AVGApLzuLuaNEK3CI,12573
49
+ nonebot_plugin_l4d2_server-0.4.5.dist-info/WHEEL,sha256=vVCvjcmxuUltf8cYhJ0sJMRDLr1XsPuxEId8YDzbyCY,88
50
+ nonebot_plugin_l4d2_server-0.4.5.dist-info/RECORD,,