async def _config_autosave(self) -> None:
    (await self.wait_until_ready())
    index = 1
    while (not self.is_closed()):
        (await asyncio.sleep((self.config.saving['period'] * 60)))
        if ((index % self.config.saving['backup']['period']) == 0):
            self.config.backup(const.CONFIG_PATH, const.MARKOV_PATH)
        self.config.save(const.CONFIG_PATH, const.MARKOV_PATH, const.SECRET_CONFIG_PATH)
        index += 1
async def _config_autosave(self) -> None:
    (await self.wait_until_ready())
    index = 1
    while (not self.is_closed()):
        (await asyncio.sleep((self.config.saving['period'] * 60)))
        if ((index % self.config.saving['backup']['period']) == 0):
            self.config.backup(const.CONFIG_PATH, const.MARKOV_PATH)
        self.config.save(const.CONFIG_PATH, const.MARKOV_PATH, const.SECRET_CONFIG_PATH)
        index += 1