diff --git a/update_diffs.py b/update_diffs.py
index 114a996..3b9ba87 100644
--- a/update_diffs.py
+++ b/update_diffs.py
@@ -85,10 +85,9 @@ def get_file_diff(file_path, base_commit):
def is_module_file(file_path):
"""Check if file is a Python module in a modules directory"""
# Check if it's a .py file and in a modules-like directory
- return file_path.endswith('.py') and any(
- part in file_path.lower() for part in [
- 'modules', 'mods', 'ftg', 'hikka'
- ]
+ dir_depth = len(Path(file_path).parts)
+ return file_path.endswith('.py') and (
+ dir_depth := len(Path(file_path).parts) >= 2
)
def extract_module_name(file_path):
@@ -135,6 +134,7 @@ async def main():
diff_url = f"https://github.com/MuRuLOSE/limoka/compare/{old_hash}...{new_hash}.diff"
message = (
f"🪼 Module {module_name} changes approved\n\n"
+ # f"🪼 Module {module_name} by ueban123 changes approved\n\n"
f"File URL | "
f"Diff URL"
)