Show HTOP Command

This commit is contained in:
XelXen 2022-06-18 19:24:21 +05:30 committed by GitHub
parent fd1b3aa2c4
commit 220d7c2131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

7
.github/tg.py vendored
View File

@ -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__':