feat: Add debug logging for blocked shell commands in Teto AI
This commit is contained in:
parent
90c024acce
commit
9054471707
@ -102,6 +102,7 @@ class TetoCog(commands.Cog):
|
||||
command_lower = command.lower()
|
||||
for pattern in dangerous_patterns:
|
||||
if re.search(pattern, command_lower):
|
||||
print(f"[TETO DEBUG] Blocked command '{command}' due to matching pattern: '{pattern}'")
|
||||
return True
|
||||
return False
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user