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.
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/PKG-INFO +3 -6
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/README.md +2 -5
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_help/__init__.py +1 -1
- {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
- {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
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/pyproject.toml +1 -1
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/LICENSE +0 -0
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/__init__.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/__main__.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/config.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/data/font/loli.ttf +0 -0
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_help/Help.json +0 -0
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_help/draw.py +0 -0
- {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
- {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
- {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
- {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
- {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
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/__init__.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/convert.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/download.py +0 -0
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- {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
- /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
- {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
- {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
- {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
- {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
- {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
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/model.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_image/vtfs.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_local/__init__.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_local/file.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_request/__init__.py +0 -0
- {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
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/l4_request/utils.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/utils/api/api.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/utils/api/models.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/utils/api/request.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/utils/api/utils.py +0 -0
- {nonebot_plugin_l4d2_server-1.1.2 → nonebot_plugin_l4d2_server-1.1.3}/nonebot_plugin_l4d2_server/utils/database/models.py +0 -0
- {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.
|
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更改部分
|
@@ -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.
|
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
|
-
|
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,
|
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
|