From 236ed23ee2d6471547ffb908634d92a0d2465f95 Mon Sep 17 00:00:00 2001 From: levina <82658782+levina-lab@users.noreply.github.com> Date: Tue, 25 Jan 2022 21:52:20 +0700 Subject: [PATCH] none --- program/updater.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/program/updater.py b/program/updater.py index 4dfe00b..5fdf9d2 100644 --- a/program/updater.py +++ b/program/updater.py @@ -15,6 +15,7 @@ from git.exc import InvalidGitRepositoryError from config import UPSTREAM_REPO, BOT_USERNAME + def gen_chlog(repo, diff): upstream_repo_url = Repo().remotes[0].config_reader.get("url").replace(".git", "") ac_br = repo.active_branch.name @@ -64,7 +65,7 @@ async def update_repo(_, message: Message): system("git pull -f && pip3 install --no-cache-dir -r requirements.txt") execle(sys.executable, sys.executable, "main.py", environ) return - await msg.edit("bot is **up-to-date** with [main](https://github.com/levina-lab/video-stream/tree/main)", disable_web_page_preview=True) + await msg.edit(f"bot is **up-to-date** with [main]({UPSTREAM_REPO}/tree/main)", disable_web_page_preview=True) @Client.on_message(command(["restart", f"restart@{BOT_USERNAME}"]) & ~filters.edited)