From 63aa44eff0dbc4e5df9d08ca4ccb23d1282a5db8 Mon Sep 17 00:00:00 2001 From: jowj Date: Tue, 28 Jan 2020 16:27:19 -0600 Subject: [PATCH] Fix file pointer to look at alerts.log (oops) --- mojo-rtm/mojo-rtm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mojo-rtm/mojo-rtm.py b/mojo-rtm/mojo-rtm.py index e87a9b4..ead259c 100644 --- a/mojo-rtm/mojo-rtm.py +++ b/mojo-rtm/mojo-rtm.py @@ -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/state.json", "r") as json_File: + with open("/shared/alerts.log", "r") as json_File: for line in json_File: response.append(json.loads(line)) - os.remove("/shared/state.json") + os.remove("/shared/alerts.log") elif "zalgo" in is_command[1]: # remove zalgo name_removal = re.sub("^zalgo .*?", "", is_command[1])