Skip to content

Commit 9123cee

Browse files
authored
Merge pull request #333 from SK-415/dev
Release v1.5.3.post2
2 parents d6dff37 + a1476eb commit 9123cee

5 files changed

Lines changed: 27 additions & 14 deletions

File tree

haruka_bot/plugins/sub/sub_list.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from ...utils import get_type_id, on_command, permission_check, to_me
66

77
sub_list = on_command("关注列表", aliases={"主播列表"}, rule=to_me(), priority=5)
8-
print(sub_list)
98
sub_list.__doc__ = """关注列表"""
109

1110
sub_list.handle()(permission_check)

haruka_bot/utils/browser.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,7 @@
77

88
from nonebot.log import logger
99
from playwright.__main__ import main
10-
11-
try:
12-
from playwright.async_api import Browser, async_playwright
13-
except ImportError:
14-
raise ImportError(
15-
"加载失败,请先安装 Visual C++ Redistributable: "
16-
"https://aka.ms/vs/17/release/vc_redist.x64.exe"
17-
)
10+
from playwright.async_api import Browser, async_playwright
1811

1912
from .. import config
2013
from .fonts_provider import fill_font

haruka_bot/version.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
from importlib.metadata import version
2-
31
from packaging.version import Version
42

5-
__version__ = version("haruka-bot")
3+
__version__ = "1.5.3.post2"
64
VERSION = Version(__version__)

pdm.lock

Lines changed: 19 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,10 @@ dependencies = [
1919
"bilireq~=0.2",
2020
"packaging~=23.0",
2121
"nonebot-plugin-guild-patch~=0.2",
22+
"msvc-runtime~=14.34; sys_platform == \"win32\"",
2223
]
24+
dynamic = ["version"]
2325
name = "haruka-bot"
24-
version = "1.5.3.post1"
2526
description = "Push dynamics and live informations from bilibili to QQ. Based on nonebot2."
2627
readme = "README.md"
2728
keywords = ["nonebot", "nonebot2", "qqbot", "bilibili", "bot"]
@@ -47,6 +48,10 @@ builtin_plugins = []
4748
[project.scripts]
4849
hb = "haruka_bot.__main__:main"
4950

51+
[tool.pdm.version]
52+
source = "file"
53+
path = "haruka_bot/version.py"
54+
5055
[tool.pdm.build]
5156
# includes = ["haruka_bot/web/build/**/*"]
5257

0 commit comments

Comments
 (0)