🐛 Fix backup and recovery command not working

This commit is contained in:
Sam 2022-02-05 22:50:59 +08:00 committed by GitHub
parent c3a3794bd0
commit 47edb3a40f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -43,7 +43,7 @@ def un_tar_gz(filename, dirs):
return False return False
@listener(is_plugin=True, outgoing=True, owners_only=True, command=alias_command("backup"), @listener(is_plugin=True, outgoing=True, command=alias_command("backup"),
description=lang('back_des')) description=lang('back_des'))
async def backup(context): async def backup(context):
await context.edit(lang('backup_process')) await context.edit(lang('backup_process'))
@ -78,7 +78,7 @@ async def backup(context):
await context.edit(lang("backup_success")) await context.edit(lang("backup_success"))
@listener(is_plugin=True, outgoing=True, owners_only=True, command=alias_command("recovery"), @listener(is_plugin=True, outgoing=True, command=alias_command("recovery"),
description=lang('recovery_des')) description=lang('recovery_des'))
async def recovery(context): async def recovery(context):
message = await context.get_reply_message() message = await context.get_reply_message()