add return

This commit is contained in:
qwerdvd 2023-10-12 08:51:22 +08:00
parent 4b5d3bdd85
commit 50707a8373
2 changed files with 3 additions and 2 deletions

View File

@ -12,8 +12,8 @@ sv_sr_download_config = SV('sr下载资源', pm=1)
@sv_sr_download_config.on_fullmatch(f'{PREFIX}下载全部资源')
async def send_download_resource_msg(bot: Bot, ev: Event):
await bot.send('sr正在开始下载~可能需要较久的时间!')
await check_use()
await bot.send('sr全部资源下载完成!')
im = await check_use()
await bot.send(im)
async def startup():

View File

@ -104,6 +104,7 @@ async def check_use():
)
if tag == '[cos]':
await download_all_file_from_cos()
return 'sr全部资源下载完成!'
async def download_all_file_from_cos():