From 2fb8a8010989f0eddd5ca68bd46de7daa060d45d Mon Sep 17 00:00:00 2001 From: "ZetGo | Aleksej K." Date: Mon, 25 Aug 2025 11:46:10 +0300 Subject: [PATCH] lavhost restart --- heroku/modules/updater.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/heroku/modules/updater.py b/heroku/modules/updater.py index d9f9c29..e086cdb 100644 --- a/heroku/modules/updater.py +++ b/heroku/modules/updater.py @@ -300,10 +300,6 @@ class UpdaterMod(loader.Module): # await self._db.remote_force_save() - if "LAVHOST" in os.environ: - await self.client.send_message("lavhostbot", "🔄 Restart") - return - with contextlib.suppress(Exception): await main.heroku.web.stop() @@ -316,6 +312,11 @@ class UpdaterMod(loader.Module): if client is not message.client: await client.disconnect() + if "LAVHOST" in os.environ: + await self.client.send_message("lavhostbot", "🔄 Restart") + await message.client.disconnect() + return + await message.client.disconnect() restart() @@ -363,8 +364,6 @@ class UpdaterMod(loader.Module): except subprocess.CalledProcessError: logger.exception("Req install failed") - async def autoupdate(self): pass - @loader.command() async def update(self, message: Message): try: