mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 06:40:30 +05:30
18 lines
359 B
Python
18 lines
359 B
Python
from json import load
|
|
from os import system
|
|
|
|
f = open('commit.json')
|
|
data = load(f)
|
|
f.close()
|
|
|
|
message = data['commit']['message']
|
|
|
|
if "\n\n" in message:
|
|
if message.split("\n\n",1)[-1].split()[0] == "[SILENT]":
|
|
system('killall -9 python')
|
|
else:
|
|
print("Silence not found")
|
|
else:
|
|
print("Empty Description")
|
|
|