🐛 修复下载全部资源没有前缀的问题 (#665)

* Update __init__.py

* Update download_all_resource.py
This commit is contained in:
ishkong 2025-01-01 23:02:09 +08:00 committed by GitHub
parent 0161c241cb
commit 1404dd79f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ from gsuid_core.logger import logger
from ..utils.resource.download_all_resource import download_all_resource
sv_download_config = SV('下载资源', pm=2)
sv_download_config = SV('gs下载资源', pm=2)
@sv_download_config.on_fullmatch(('下载全部资源'))
@ -17,6 +17,6 @@ async def send_download_resource_msg(bot: Bot, ev: Event):
async def startup():
logger.info(
'[资源文件下载] 正在检查与下载缺失的资源文件,可能需要较长时间,请稍等'
'[Genshin资源文件下载] 正在检查与下载缺失的资源文件,可能需要较长时间,请稍等'
)
logger.info(f'[资源文件下载] {await download_all_resource()}')
logger.info(f'[Genshin资源文件下载] {await download_all_resource()}')

View File

@ -8,4 +8,4 @@ async def download_all_resource():
ret = [str(x) for x in ret if x]
if ret:
return '\n'.join(ret)
return '全部资源下载完成!'
return 'Genshin全部资源下载完成!'