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()