nonebot-plugin-l4d2-server 1.1.2__tar.gz → 1.1.3__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.
Files changed (56) hide show
  1. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/PKG-INFO +3 -6
  2. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/README.md +2 -5
  3. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_help/__init__.py +1 -1
  4. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/html_img.py +8 -2
  5. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/template/normal.html +0 -2
  6. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/pyproject.toml +1 -1
  7. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/LICENSE +0 -0
  8. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/__init__.py +0 -0
  9. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/__main__.py +0 -0
  10. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/config.py +0 -0
  11. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/data/font/loli.ttf +0 -0
  12. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_help/Help.json +0 -0
  13. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_help/draw.py +0 -0
  14. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_help/texture2d/badge.png +0 -0
  15. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_help/texture2d/banner.png +0 -0
  16. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_help/texture2d/bg.jpg +0 -0
  17. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_help/texture2d/button.png +0 -0
  18. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_help/texture2d/icon.png +0 -0
  19. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/__init__.py +0 -0
  20. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/convert.py +0 -0
  21. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/download.py +0 -0
  22. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/image_tools.py +0 -0
  23. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/anne/anne.html +0 -0
  24. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/anne/back.png +0 -0
  25. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/anne/back1.jpg +0 -0
  26. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/anne/group_ip.html +0 -0
  27. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/anne/ip.html +0 -0
  28. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/back_img/background.jpg +0 -0
  29. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/head/head.png +0 -0
  30. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/header/logo.png +0 -0
  31. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/header/player1.jpg +0 -0
  32. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/template/HYPixel11pxU-2.ttf +0 -0
  33. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/template/Tutumianhuatang-Bold-2.ttf +0 -0
  34. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/template/bilibili.svg +0 -0
  35. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/template/github.svg +0 -0
  36. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/template/l.svg +0 -0
  37. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/template/m.svg +0 -0
  38. /nonebot_plugin_l4d2_server-1.1.2/nonebot_plugin_l4d2_server/l4_image/img/template/normal_.html → /nonebot_plugin_l4d2_server-1.1.3/nonebot_plugin_l4d2_server/l4_image/img/template/normal_old.html +0 -0
  39. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/template/style.css +0 -0
  40. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/template/vac.png +0 -0
  41. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/template/vac_white.png +0 -0
  42. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/template/vue.css +0 -0
  43. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/img/template/w.svg +0 -0
  44. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/model.py +0 -0
  45. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/vtfs.py +0 -0
  46. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_local/__init__.py +0 -0
  47. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_local/file.py +0 -0
  48. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_request/__init__.py +0 -0
  49. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_request/draw_msg.py +0 -0
  50. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_request/utils.py +0 -0
  51. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/utils/api/api.py +0 -0
  52. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/utils/api/models.py +0 -0
  53. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/utils/api/request.py +0 -0
  54. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/utils/api/utils.py +0 -0
  55. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/utils/database/models.py +0 -0
  56. {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/utils/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nonebot-plugin-l4d2-server
3
- Version: 1.1.2
3
+ Version: 1.1.3
4
4
  Summary: L4D2 server related operations plugin for NoneBot2
5
5
  Keywords: steam,game,l4d2,nonebot2,plugin
6
6
  Author-Email: Agnes_Digital <Z735803792@163.com>
@@ -158,11 +158,8 @@ conda install nonebot-plugin-l4d2-server
158
158
  l4_players = 4
159
159
  """查询总图的时候展示的用户数量"""
160
160
  l4_style = "default"
161
- """图片风格,可选包括以下,默认简洁
162
- - 暗风格
163
- - 孤独摇滚
164
- - 电玩像素
165
- - 缤纷彩虹
161
+ """图片风格,可选包括以下
162
+ - 简洁
166
163
  """
167
164
 
168
165
  ## 和0.x.x更改部分
@@ -119,11 +119,8 @@ conda install nonebot-plugin-l4d2-server
119
119
  l4_players = 4
120
120
  """查询总图的时候展示的用户数量"""
121
121
  l4_style = "default"
122
- """图片风格,可选包括以下,默认简洁
123
- - 暗风格
124
- - 孤独摇滚
125
- - 电玩像素
126
- - 缤纷彩虹
122
+ """图片风格,可选包括以下
123
+ - 简洁
127
124
  """
128
125
 
129
126
  ## 和0.x.x更改部分
@@ -10,7 +10,7 @@ from ..l4_image.convert import core_font
10
10
  from ..l4_image.model import PluginHelp
11
11
  from .draw import get_help
12
12
 
13
- __version__ = "1.1.2"
13
+ __version__ = "1.1.3"
14
14
  TEXT_PATH = Path(__file__).parent / "texture2d"
15
15
  HELP_DATA = Path(__file__).parent / "Help.json"
16
16
 
@@ -1,9 +1,10 @@
1
1
  from pathlib import Path
2
+ import re
2
3
  from typing import List, Optional
3
4
 
4
5
  import jinja2
5
6
  from nonebot.log import logger
6
- from nonebot_plugin_htmlrender import html_to_pic
7
+ from nonebot_plugin_htmlrender import html_to_pic, template_to_html, template_to_pic
7
8
 
8
9
  from ..config import config
9
10
  from ..utils.api.models import OutServer
@@ -69,7 +70,12 @@ async def server_ip_pic(server_dict: List[OutServer]):
69
70
 
70
71
  async def get_server_img(plugins: List[OutServer]) -> Optional[bytes]:
71
72
  try:
72
- template = env.get_template("normal.html")
73
+ if config.l4_style == "default":
74
+
75
+
76
+ template = env.get_template("normal.html")
77
+ else:
78
+ template = env.get_template("normal_old.html")
73
79
  content = await template.render_async(
74
80
  servers=plugins,
75
81
  max_count=config.l4_players,
@@ -93,8 +93,6 @@
93
93
  <img src="vac.png" alt="VAC保护">
94
94
  </span>
95
95
  {% endif %}
96
- <span class="ping-value">
97
- {{ (server.server.ping * 1000)|round(1) }} ms
98
96
  </span>
99
97
  </span>
100
98
  </div>
@@ -46,7 +46,7 @@ classifiers = [
46
46
  "Operating System :: OS Independent",
47
47
  ]
48
48
  readme = "README.md"
49
- version = "1.1.2"
49
+ version = "1.1.3"
50
50
 
51
51
  [project.license]
52
52
  text = "GPLv3"