Skip to content

Commit

Permalink
DON'T UPDATE THIS COMMIT! WAIT UNTIL FURTHER NOTICE.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hafitz Setya authored Aug 4, 2021
1 parent 0fb94cb commit 82cb9b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bot/modules/updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 82cb9b2

Please sign in to comment.