chore: nettoyage .gitignore - retrait venv, __pycache__, .env, data, logs, modèles du tracking

This commit is contained in:
Lowei 2026-06-16 20:40:37 +02:00
parent 7333a22bcd
commit 604a5affe0
9231 changed files with 1244 additions and 1601201 deletions

View file

@ -2,16 +2,16 @@ import discord
import logging
from typing import Dict
logger = logging.getLogger('Superviseur')
logger = logging.getLogger('Beta')
class ActionRouter:
"""Routs generated AI semantic actions to the physical Discord moderative or administrative commands."""
class ActionExecutor:
"""Routes generated AI semantic actions to Discord administrative commands."""
def __init__(self, bot):
self.bot = bot
self._module_cache = {}
async def execute_action(self, action: str, params: Dict, message: discord.Message) -> (bool, str):
async def execute(self, action: str, params: Dict, message: discord.Message) -> (bool, str):
"""Execute an action from LLM response."""
# Normalize action name: replace spaces with underscores, uppercase
@ -82,8 +82,12 @@ class ActionRouter:
# --- PRIVACY ACTIONS ---
if action == 'FORGET_USER':
from brain.memoire import delete_user_memory
delete_user_memory(message.author.id)
from brain.memory import delete_user_memory
guild_name = message.guild.name if message.guild else None
if guild_name:
from .utils import sanitize_guild_name
guild_name = sanitize_guild_name(guild_name)
delete_user_memory(message.author.id, guild_name)
return True, None
# --- PERMISSION ENFORCEMENT (ADMIN ONLY) ---