From b47c13503b01360a3b091789ba31ea320b8f591a Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Thu, 2 Oct 2025 13:37:17 -0700 Subject: [PATCH] Update filemon.py --- modules/filemon.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/filemon.py b/modules/filemon.py index 6bd9abf..9ea1914 100644 --- a/modules/filemon.py +++ b/modules/filemon.py @@ -46,7 +46,7 @@ def write_news(content, append=False): return False async def watch_file(): - + # Watch the file for changes and return the new content when it changes if not os.path.exists(file_monitor_file_path): return None else: @@ -64,6 +64,7 @@ async def watch_file(): await asyncio.sleep(1) # Check every def call_external_script(message, script="script/runShell.sh"): + # Call an external script with the message as an argument this is a example only try: # Debugging: Print the current working directory and resolved script path current_working_directory = os.getcwd()