mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
950937f6e9
We don't need these anymore.
14 lines
331 B
Python
14 lines
331 B
Python
from json import load
|
|
from os import system
|
|
|
|
with open("commit.json", "r") as f:
|
|
data = load(f)["commit"]["message"]
|
|
|
|
if "\n\n" in data:
|
|
if data.split("\n\n", 1)[-1].split()[0] == "[SILENT]":
|
|
system("killall -9 python")
|
|
else:
|
|
print("Silence not found")
|
|
else:
|
|
print("Empty Description")
|