mirror of https://github.com/coddrago/Heroku
lavhost restart
parent
81c15fd312
commit
2fb8a80109
|
@ -300,10 +300,6 @@ class UpdaterMod(loader.Module):
|
||||||
|
|
||||||
# await self._db.remote_force_save()
|
# await self._db.remote_force_save()
|
||||||
|
|
||||||
if "LAVHOST" in os.environ:
|
|
||||||
await self.client.send_message("lavhostbot", "🔄 Restart")
|
|
||||||
return
|
|
||||||
|
|
||||||
with contextlib.suppress(Exception):
|
with contextlib.suppress(Exception):
|
||||||
await main.heroku.web.stop()
|
await main.heroku.web.stop()
|
||||||
|
|
||||||
|
@ -316,6 +312,11 @@ class UpdaterMod(loader.Module):
|
||||||
if client is not message.client:
|
if client is not message.client:
|
||||||
await client.disconnect()
|
await client.disconnect()
|
||||||
|
|
||||||
|
if "LAVHOST" in os.environ:
|
||||||
|
await self.client.send_message("lavhostbot", "🔄 Restart")
|
||||||
|
await message.client.disconnect()
|
||||||
|
return
|
||||||
|
|
||||||
await message.client.disconnect()
|
await message.client.disconnect()
|
||||||
restart()
|
restart()
|
||||||
|
|
||||||
|
@ -363,8 +364,6 @@ class UpdaterMod(loader.Module):
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
logger.exception("Req install failed")
|
logger.exception("Req install failed")
|
||||||
|
|
||||||
async def autoupdate(self): pass
|
|
||||||
|
|
||||||
@loader.command()
|
@loader.command()
|
||||||
async def update(self, message: Message):
|
async def update(self, message: Message):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue