From 82cb9b22121d14cb8728f14a922e0775f32a919e Mon Sep 17 00:00:00 2001 From: Hafitz Setya Date: Wed, 4 Aug 2021 13:48:16 +0700 Subject: [PATCH] DON'T UPDATE THIS COMMIT! WAIT UNTIL FURTHER NOTICE. --- bot/modules/updates.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot/modules/updates.py b/bot/modules/updates.py index e61d793..5d15cd0 100644 --- a/bot/modules/updates.py +++ b/bot/modules/updates.py @@ -20,6 +20,7 @@ REPO_ = UPSTREAM_REPO BRANCH_ = UPSTREAM_BRANCH + # Update Command @app.on_message(filters.command([BotCommands.UpdateCommand, f'{BotCommands.UpdateCommand}@{bot.username}']) & filters.user(OWNER_ID)) @@ -56,6 +57,7 @@ async def update_it(client, message): ups_rem.pull(UPSTREAM_BRANCH) except GitCommandError: repo.git.reset("--hard", "FETCH_HEAD") + subprocess.run(["pip3", "install", "--no-cache-dir", "-r", "requirements"]) await msg_.edit("`Updated Sucessfully! Give Me Some Time To Restart!`") with open("./aria.sh", 'rb') as file: script = file.read()