From 433adac5f8d9256cca614650d3796f068b70da9f Mon Sep 17 00:00:00 2001 From: AkriliksKotya Date: Thu, 27 Nov 2025 18:14:23 +0500 Subject: [PATCH] update command changes --- c/update.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/c/update.py b/c/update.py index 8303792..3ba6918 100644 --- a/c/update.py +++ b/c/update.py @@ -21,14 +21,15 @@ class Update(commands.Cog): channel = self.bot.get_channel(int(res)) await channel.send('restarting...') try: - subprocess.run(["git", "pull", "--rebase", "origin", "main"],capture_output=True) + subprocess.run([],capture_output=True) + subprocess.run(["git", "pull", "origin", "main"],capture_output=True) except: await channel.send('restart fail') return python = sys.executable os.execv(python, [python] + sys.argv) - + await channel.send('restart successful') @commands.Cog.listener() async def on_ready(self):