From 17fffde8c5443fff87c84737e80b73d892799280 Mon Sep 17 00:00:00 2001 From: jowj Date: Tue, 28 Jan 2020 16:15:01 -0600 Subject: [PATCH] Remove the file once I've read it out. --- mojo-rtm/mojo-rtm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mojo-rtm/mojo-rtm.py b/mojo-rtm/mojo-rtm.py index f1c5e3c..e87a9b4 100644 --- a/mojo-rtm/mojo-rtm.py +++ b/mojo-rtm/mojo-rtm.py @@ -95,6 +95,7 @@ def handle_messages(**payload): with open("/shared/state.json", "r") as json_File: for line in json_File: response.append(json.loads(line)) + os.remove("/shared/state.json") elif "zalgo" in is_command[1]: # remove zalgo name_removal = re.sub("^zalgo .*?", "", is_command[1])