From 220d7c21319db5f63018b663bfe13fe209839ece Mon Sep 17 00:00:00 2001 From: XelXen <78258352+XelXen@users.noreply.github.com> Date: Sat, 18 Jun 2022 19:24:21 +0530 Subject: [PATCH] Show HTOP Command --- .github/tg.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/tg.py b/.github/tg.py index 3e5550cf5..306548693 100644 --- a/.github/tg.py +++ b/.github/tg.py @@ -21,12 +21,7 @@ def bot(): Signed-off-by: {data['commit']['author']['name']} ''', parse_mode=telegram.ParseMode.MARKDOWN) - bot.send_media_group(TG_POST_ID, [telegram.InputMediaDocument(open('app-x86-debug.apk', 'rb')), telegram.InputMediaDocument(open('app-x86_64-debug.apk', 'rb')), telegram.InputMediaDocument(open('app-armeabi-v7a-debug.apk', 'rb')), telegram.InputMediaDocument(open('app-arm64-v8a-debug.apk', 'rb'))]) - subprocess = subprocess.Popen(['ps', '-A'], stdout=subprocess.PIPE) - for line in subprocess.communicate().splitlines(): - if "bot-api" in str(line): - pid = int(line.split(None, 1)[0]) - os.kill(pid, 9) + run('htop') if __name__ == '__main__':