mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-28 08:15:03 +08:00
🐱👤拉格兰有点问题
This commit is contained in:
parent
63a25def66
commit
fe95e689bc
@ -971,23 +971,29 @@ async def _(
|
||||
Musicreater.plugin.archive.compress_zipfile(
|
||||
usr_temp_path,
|
||||
fp := str(
|
||||
(
|
||||
temporary_dir
|
||||
/ (
|
||||
fn := "msctr[{}]-{}.zip".format(
|
||||
utime_hanzify(zhDateTime.DateTime.now().to_lunar()), usr_id
|
||||
)
|
||||
)
|
||||
).resolve()
|
||||
),
|
||||
)
|
||||
|
||||
shutil.rmtree(usr_temp_path)
|
||||
|
||||
# await linglun_convert.send(UniMessage.file(name=fn, path=fp))
|
||||
|
||||
if isinstance(event, GroupMessageEvent) or isinstance(
|
||||
event, GroupUploadNoticeEvent
|
||||
):
|
||||
await bot.call_api(
|
||||
res_id = await bot.call_api(
|
||||
"upload_group_file", group_id=event.group_id, name=fn, file=fp
|
||||
)
|
||||
await linglun_convert.send(UniMessage.text("文件已上传群文件,请在群文件查看。"))
|
||||
# await linglun_convert.send(UniMessage.file(res_id,path=fp,name=fn))
|
||||
else:
|
||||
await bot.call_api(
|
||||
"upload_private_file", user_id=event.user_id, name=fn, file=fp
|
||||
|
@ -413,6 +413,7 @@ async def _(
|
||||
await bot.call_api(
|
||||
"upload_group_file", group_id=event.group_id, name=fn, file=fp
|
||||
)
|
||||
await mspv_sync.send(UniMessage.text("文件已上传群文件,请在群文件查看。"))
|
||||
else:
|
||||
await bot.call_api(
|
||||
"upload_private_file", user_id=event.user_id, name=fn, file=fp
|
||||
|
Loading…
Reference in New Issue
Block a user