added discription in hikkabackup

pull/2/head
Who? 2024-09-11 23:11:10 +07:00 committed by GitHub
parent 58b4c11d01
commit 17eb80e6af
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 4 deletions

View File

@ -81,6 +81,7 @@ class HikkaBackupMod(loader.Module):
@loader.command()
async def set_backup_period(self, message: Message):
"""[time] | set your backup bd period"""
if (
not (args := utils.get_args_raw(message))
or not args.isdigit()
@ -178,7 +179,7 @@ class HikkaBackupMod(loader.Module):
@loader.command()
async def backupdb(self, message: Message):
"""save backup of your bd"""
"""| save backup of your bd"""
txt = io.BytesIO(json.dumps(self._db).encode())
txt.name = f"db-backup-{datetime.datetime.now():%d-%m-%Y-%H-%M}.json"
await self._client.send_file(
@ -192,7 +193,7 @@ class HikkaBackupMod(loader.Module):
@loader.command()
async def restoredb(self, message: Message):
"""restore your bd"""
"""[reply] | restore your bd"""
if not (reply := await message.get_reply_message()) or not reply.media:
await utils.answer(
message,
@ -218,7 +219,7 @@ class HikkaBackupMod(loader.Module):
@loader.command()
async def backupmods(self, message: Message):
"""save backup of mods"""
"""| save backup of mods"""
mods_quantity = len(self.lookup("Loader").get("loaded_modules", {}))
result = io.BytesIO()
@ -250,7 +251,7 @@ class HikkaBackupMod(loader.Module):
@loader.command()
async def restoremods(self, message: Message):
"""restore your mods"""
"""[reply] | restore your mods"""
if not (reply := await message.get_reply_message()) or not reply.media:
await utils.answer(message, self.strings("reply_to_file"))
return