mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
Keep API open
This commit is contained in:
parent
8b3b6dc649
commit
18eae5f2d9
4
.github/tg.py
vendored
4
.github/tg.py
vendored
@ -22,10 +22,6 @@ 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'))])
|
||||
for line in os.popen("ps ax | grep bot-api | grep -v grep"):
|
||||
fields = line.split()
|
||||
pid = fields[0]
|
||||
os.kill(int(pid), signal.SIGKILL)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
x
Reference in New Issue
Block a user