From 92cbc7a2d0148b6e7b355bdff5ef1cca18893bd6 Mon Sep 17 00:00:00 2001 From: un1xx Date: Sat, 9 Mar 2024 02:15:55 +0530 Subject: [PATCH] update restart command --- brahmos.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/brahmos.py b/brahmos.py index 14d5879..bc95411 100644 --- a/brahmos.py +++ b/brahmos.py @@ -177,8 +177,7 @@ class Main(commands.Cog): async def restart(self, ctx: commands.Context, *, id): """restart bot""" await ctx.message.add_reaction("\u2611") - os.system(f"pm2 restart {int(id)}") - await self.bot.close() + os.system(f"pm2 restart {id}") @commands.command(name="git") @commands.is_owner()