mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2025-01-19 01:18:21 +08:00
没啥用,妈的兼容性
This commit is contained in:
parent
cc15f60fd9
commit
9234e6d392
@ -27,7 +27,7 @@ async def load_plugins():
|
|||||||
for installed_plugin in installed_plugins:
|
for installed_plugin in installed_plugins:
|
||||||
if not check_for_package(installed_plugin.module_name):
|
if not check_for_package(installed_plugin.module_name):
|
||||||
nonebot.logger.error(
|
nonebot.logger.error(
|
||||||
f"插件 {installed_plugin.module_name} 仍在加载列表中但未安装。"
|
f"加载列表中的 {installed_plugin.module_name} 插件无法安装,可能是是未找到插件。"
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
nonebot.load_plugin(installed_plugin.module_name)
|
nonebot.load_plugin(installed_plugin.module_name)
|
||||||
|
@ -783,7 +783,7 @@ async def _(
|
|||||||
else result.options[arg].args
|
else result.options[arg].args
|
||||||
)
|
)
|
||||||
if (
|
if (
|
||||||
(_vlu := result.options[arg].value) is None
|
((_vlu := result.options[arg].value) is None)
|
||||||
or isinstance(_vlu, EllipsisType)
|
or isinstance(_vlu, EllipsisType)
|
||||||
)
|
)
|
||||||
else _vlu
|
else _vlu
|
||||||
@ -925,13 +925,16 @@ async def _(
|
|||||||
|
|
||||||
await linglun_convert.send(UniMessage.text(ulang.get("convert.start")))
|
await linglun_convert.send(UniMessage.text(ulang.get("convert.start")))
|
||||||
|
|
||||||
try:
|
progress_bar_style = (
|
||||||
|
Musicreater.ProgressBarStyle(**_args["progress-bar"])
|
||||||
progress_bar_style = (
|
if (
|
||||||
Musicreater.ProgressBarStyle(**_args["progress-bar"])
|
_args["progress-bar"]
|
||||||
if _args["progress-bar"]
|
and ("base_s" in _args["progress-bar"] and _args["progress-bar"]["base_s"])
|
||||||
else None
|
|
||||||
)
|
)
|
||||||
|
else None
|
||||||
|
)
|
||||||
|
|
||||||
|
try:
|
||||||
|
|
||||||
all_files: dict[str, dict[str, dict[str, int | tuple | str | list]]] = {}
|
all_files: dict[str, dict[str, dict[str, int | tuple | str | list]]] = {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user