update restart command

This commit is contained in:
un1xx committed 2024-03-09 02:15:55 +05:30
1 parent bd6963d0cf
commit 92cbc7a2d0
1 file changed
+1 -2
+1 -2
View File
@@ -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()