nonebot-plugin-mccheck 0.3.2__tar.gz → 0.3.4__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 (17) hide show
  1. {nonebot_plugin_mccheck-0.3.2 → nonebot_plugin_mccheck-0.3.4}/PKG-INFO +1 -1
  2. {nonebot_plugin_mccheck-0.3.2 → nonebot_plugin_mccheck-0.3.4}/nonebot_plugin_mccheck/configs.py +1 -1
  3. nonebot_plugin_mccheck-0.3.4/nonebot_plugin_mccheck/templates/Mojangles.ttf +0 -0
  4. {nonebot_plugin_mccheck-0.3.2 → nonebot_plugin_mccheck-0.3.4}/nonebot_plugin_mccheck/templates/default.html +3 -5
  5. {nonebot_plugin_mccheck-0.3.2 → nonebot_plugin_mccheck-0.3.4}/nonebot_plugin_mccheck/templates/main.css +15 -6
  6. nonebot_plugin_mccheck-0.3.4/nonebot_plugin_mccheck/templates/unifont-17.0.04.otf +0 -0
  7. {nonebot_plugin_mccheck-0.3.2 → nonebot_plugin_mccheck-0.3.4}/nonebot_plugin_mccheck/utils.py +1 -1
  8. {nonebot_plugin_mccheck-0.3.2 → nonebot_plugin_mccheck-0.3.4}/pyproject.toml +1 -1
  9. nonebot_plugin_mccheck-0.3.2/nonebot_plugin_mccheck/templates/Minecraft_AE.ttf +0 -0
  10. {nonebot_plugin_mccheck-0.3.2 → nonebot_plugin_mccheck-0.3.4}/LICENSE +0 -0
  11. {nonebot_plugin_mccheck-0.3.2 → nonebot_plugin_mccheck-0.3.4}/README.md +0 -0
  12. {nonebot_plugin_mccheck-0.3.2 → nonebot_plugin_mccheck-0.3.4}/nonebot_plugin_mccheck/__init__.py +0 -0
  13. {nonebot_plugin_mccheck-0.3.2 → nonebot_plugin_mccheck-0.3.4}/nonebot_plugin_mccheck/language.json +0 -0
  14. {nonebot_plugin_mccheck-0.3.2 → nonebot_plugin_mccheck-0.3.4}/nonebot_plugin_mccheck/templates/README.md +0 -0
  15. {nonebot_plugin_mccheck-0.3.2 → nonebot_plugin_mccheck-0.3.4}/nonebot_plugin_mccheck/templates/background.png +0 -0
  16. {nonebot_plugin_mccheck-0.3.2 → nonebot_plugin_mccheck-0.3.4}/nonebot_plugin_mccheck/templates/imagelesshoverbg.png +0 -0
  17. {nonebot_plugin_mccheck-0.3.2 → nonebot_plugin_mccheck-0.3.4}/nonebot_plugin_mccheck/templates/no_favicon.png +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nonebot-plugin-mccheck
3
- Version: 0.3.2
3
+ Version: 0.3.4
4
4
  Summary: Minecraft服务器状态查询的nonebot插件,支持IPv6/Minecraft server status query plugin for nonebot, IPv6 supported
5
5
  License: GPL-3.0
6
6
  License-File: LICENSE
@@ -28,4 +28,4 @@ def readInfo(file: str) -> dict:
28
28
  message_type = config.type
29
29
  lang = config.language
30
30
  lang_data = readInfo("language.json")
31
- VERSION = "0.3.2"
31
+ VERSION = "0.3.4"
@@ -19,9 +19,7 @@
19
19
  <div class="content">
20
20
  <label> {{ data["lang"]["version"] }}{{ data["version"] }} </label>
21
21
  <label> {{ data["lang"]["motd"] }}{{ data["motd"]|safe }} </label>
22
- <label>
23
- {{ data["lang"]["protocol_version"] }}{{ data["protocol_version"]}}
24
- </label>
22
+ <label> {{ data["lang"]["protocol_version"] }}{{ data["protocol_version"]}} </label>
25
23
  <label> {{ data["lang"]["address"] }}{{ data["address"] }} </label>
26
24
  <label> {{ data["lang"]["delay"] }}{{ data["delay"]}} </label>
27
25
  {% if data["gamemode"] %}
@@ -35,7 +33,7 @@
35
33
  {% endif %}
36
34
  </div>
37
35
  <div class="watermark">
38
- nonebot_plugin_mccheck v{{ data["VERSION"] }} by molanp.
36
+ zhenxun_plugin_mccheck v{{ data["VERSION"] }} by molanp.
39
37
  </div>
40
38
  </div>
41
39
  <script>
@@ -163,4 +161,4 @@
163
161
  });
164
162
  </script>
165
163
  </body>
166
- </html>
164
+ </html>
@@ -1,10 +1,20 @@
1
1
  @font-face {
2
- src: url(Minecraft_AE.ttf);
3
- font-family: "Minecraft_AE";
2
+ src: url(Mojangles.ttf);
3
+ font-family: "Mojangles";
4
+ unicode-range: U+0021-007E, U+00A0-FFFF;
5
+ }
6
+
7
+ @font-face {
8
+ src: url(unifont-17.0.04.otf);
9
+ font-family: "unifont-17.0.04";
10
+ size-adjust: 80%;
11
+ ascent-override: 90%;
12
+ descent-override: 10%;
4
13
  }
5
14
 
6
15
  * {
7
- font-family: "Minecraft_AE";
16
+ font-family: "Mojangles", "unifont-17.0.04", monospace;
17
+ font-size: 20px;
8
18
  }
9
19
 
10
20
  body {
@@ -22,7 +32,7 @@ body {
22
32
 
23
33
  .content label {
24
34
  display: block;
25
- margin-bottom: 10px;
35
+ margin-bottom: 5px;
26
36
  }
27
37
 
28
38
  ::-webkit-scrollbar {
@@ -58,11 +68,10 @@ body {
58
68
  .watermark {
59
69
  position: absolute;
60
70
  font-weight: bold;
61
- font-size: 1px;
71
+ font-size: 8px;
62
72
  bottom: 0.5px;
63
73
  right: 0;
64
74
  color: #888888;
65
- font-size: 8px;
66
75
  opacity: 0.1;
67
76
  z-index: 1000;
68
77
  pointer-events: none;
@@ -54,7 +54,7 @@ async def build_result(
54
54
  """
55
55
  favicon = getattr(ms, "icon", None)
56
56
  delay = round(ms.latency)
57
- version = f"{ms.version.name} " + getattr(ms, "map_name", "")
57
+ version = f"{ms.version.name} " + (getattr(ms, "map_name", None) or "")
58
58
  protocol_version = ms.version.protocol
59
59
  gamemode = getattr(ms, "gamemode", None)
60
60
  players = f"{ms.players.online}/{ms.players.max}"
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "nonebot-plugin-mccheck"
3
- version = "0.3.2"
3
+ version = "0.3.4"
4
4
  description = "Minecraft服务器状态查询的nonebot插件,支持IPv6/Minecraft server status query plugin for nonebot, IPv6 supported"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.9"