Move to human readable format from posting.

master
jowj 4 years ago
parent 63aa44eff0
commit eef1cb68f5

@ -92,10 +92,10 @@ def handle_messages(**payload):
response = "you wouldn't download a car"
elif "arke" in is_command[1]:
response = []
with open("/shared/alerts.log", "r") as json_File:
for line in json_File:
response.append(json.loads(line))
os.remove("/shared/alerts.log")
with open("/shared/state.json", "r") as json_File:
state = json.load(json_File)
for key, value in state.items():
response.append(f"{key}: {value}")
elif "zalgo" in is_command[1]:
# remove zalgo
name_removal = re.sub("^zalgo .*?", "", is_command[1])

Loading…
Cancel
Save