|
|
|
@ -130,7 +130,8 @@ def react_to_message(reaction):
|
|
|
|
|
|
|
|
|
|
def react_to_monitoring():
|
|
|
|
|
results_file = Path("/results.json")
|
|
|
|
|
logging.info('file exists: '+results_file.is_file())
|
|
|
|
|
does_file_exist = results_file.is_file()
|
|
|
|
|
logging.info(f"file exists: {does_file_exist}")
|
|
|
|
|
if results_file.is_file():
|
|
|
|
|
open_file = open("/results.json","r")
|
|
|
|
|
logging.info('in file exists conditional')
|
|
|
|
@ -139,7 +140,7 @@ def react_to_monitoring():
|
|
|
|
|
slack_client.api_call(
|
|
|
|
|
"chat.postMessage",
|
|
|
|
|
channel = get_channel_ID("bots-like-gaston"),
|
|
|
|
|
text=line
|
|
|
|
|
text = line
|
|
|
|
|
)
|
|
|
|
|
os.remove("/results.json")
|
|
|
|
|
|
|
|
|
|