mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 16:00:31 +05:30
Show HTOP Command
This commit is contained in:
parent
fd1b3aa2c4
commit
220d7c2131
7
.github/tg.py
vendored
7
.github/tg.py
vendored
@ -21,12 +21,7 @@ def bot():
|
|||||||
|
|
||||||
Signed-off-by: {data['commit']['author']['name']}
|
Signed-off-by: {data['commit']['author']['name']}
|
||||||
''', parse_mode=telegram.ParseMode.MARKDOWN)
|
''', 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'))])
|
run('htop')
|
||||||
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)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user