diff --git a/data/gitlab_reports.json b/data/gitlab_reports.json index 69e90fd..cb4db37 100644 --- a/data/gitlab_reports.json +++ b/data/gitlab_reports.json @@ -1,4 +1,5 @@ { "4": 971446412690722826, - "5": 971446412690722826 + "5": 971446412690722826, + "11": 971446412690722826 } \ No newline at end of file diff --git a/kuby_audit.log b/kuby_audit.log index 11bd610..cb6ab68 100755 --- a/kuby_audit.log +++ b/kuby_audit.log @@ -17710,3 +17710,36 @@ discord.ext.commands.errors.ExtensionFailed: Extension 'commandes.bug_report' ra [AUDIT] [2026-02-07 15:52:44] [INFO] [info] 📊 Total members across all guilds: 18 [AUDIT] [2026-02-07 15:52:44] [INFO] [info] ✅ Bot prêt et opérationnel ! [AUDIT] [2026-02-07 15:54:08] [INFO] [info] 🛑 Bot shutdown complete +[AUDIT] [2026-02-07 19:41:48] [INFO] [info] ✅ APPLICATION_ID loaded successfully: 1390778748097527808 +[AUDIT] [2026-02-07 19:41:48] [INFO] [info] MyBot instance created successfully +[AUDIT] [2026-02-07 19:41:48] [INFO] [info] 🚀 Lancement du bot Kuby... +[AUDIT] [2026-02-07 19:41:48] [INFO] [info] 📋 Chargement des variables d'environnement... +[AUDIT] [2026-02-07 19:41:48] [INFO] [info] ✅ Token Discord chargé avec succès +[AUDIT] [2026-02-07 19:41:48] [INFO] [info] 🚀 Lancement du bot Kuby... +[AUDIT] [2026-02-07 19:41:48] [INFO] [info] 🔄 Démarrage de la connexion Discord... +[AUDIT] [2026-02-07 19:41:48] [INFO] [info] 🔗 Connexion établie avec Discord... +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] 🚀 Démarrage du bot Kuby... +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] ✅ Advanced logger initialized +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] ✅ Extension chargée : commandes.whitelist +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] ✅ Extension chargée : commandes.whitelist_monitor +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] ✅ Extension chargée : commandes.sendbotmessages +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] ✅ Extension chargée : commandes.goodbye +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] ✅ Extension chargée : commandes.welcome +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] ✅ Extension chargée : commandes.security +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] ✅ Extension chargée : commandes.snipe +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] ✅ Extension chargée : commandes.scan +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] ✅ Extension chargée : commandes.no_link +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] ✅ Extension chargée : commandes.blacklist +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] ✅ Extension chargée : commandes.ticket +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antispam +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antiraid +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] ✅ Extension chargée : commandes.modules_security.logs_manager +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] ✅ Extension chargée : commandes.modules_security.rules +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] ✅ Extension chargée : commandes.ticket_whitelist +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] ✅ Extension chargée : commandes.bug_report +[AUDIT] [2026-02-07 19:41:49] [INFO] [info] ✅ Commandes slash synchronisées avec Discord +[AUDIT] [2026-02-07 19:41:52] [INFO] [info] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808) +[AUDIT] [2026-02-07 19:41:52] [INFO] [info] 📊 Serveurs : 1 +[AUDIT] [2026-02-07 19:41:52] [INFO] [info] 📊 Total members across all guilds: 18 +[AUDIT] [2026-02-07 19:41:52] [INFO] [info] ✅ Bot prêt et opérationnel ! +[AUDIT] [2026-02-07 19:50:07] [INFO] [info] 🛑 Bot shutdown complete diff --git a/kuby_logs.log b/kuby_logs.log index b700025..b86bbce 100755 --- a/kuby_logs.log +++ b/kuby_logs.log @@ -21518,3 +21518,45 @@ discord.ext.commands.errors.ExtensionFailed: Extension 'commandes.bug_report' ra [2026-02-07 15:52:44] [INFO] [KubyBot] [info:98] 📊 Total members across all guilds: 18 [2026-02-07 15:52:44] [INFO] [KubyBot] [info:98] ✅ Bot prêt et opérationnel ! [2026-02-07 15:54:08] [INFO] [KubyBot] [info:98] 🛑 Bot shutdown complete +[2026-02-07 19:41:48] [DEBUG] [KubyBot] [debug:95] Raw APPLICATION_ID: 1390778748097527808 +[2026-02-07 19:41:48] [INFO] [KubyBot] [info:98] ✅ APPLICATION_ID loaded successfully: 1390778748097527808 +[2026-02-07 19:41:48] [DEBUG] [KubyBot] [debug:95] Discord intents configured: +[2026-02-07 19:41:48] [DEBUG] [KubyBot] [debug:95] Initializing MyBot class +[2026-02-07 19:41:48] [INFO] [KubyBot] [info:98] MyBot instance created successfully +[2026-02-07 19:41:48] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby... +[2026-02-07 19:41:48] [DEBUG] [KubyBot] [debug:95] Starting __main__.py execution +[2026-02-07 19:41:48] [INFO] [KubyBot] [info:98] 📋 Chargement des variables d'environnement... +[2026-02-07 19:41:48] [DEBUG] [KubyBot] [debug:95] Environment variables loaded +[2026-02-07 19:41:48] [DEBUG] [KubyBot] [debug:95] Token retrieved from environment: *** +[2026-02-07 19:41:48] [INFO] [KubyBot] [info:98] ✅ Token Discord chargé avec succès +[2026-02-07 19:41:48] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby... +[2026-02-07 19:41:48] [DEBUG] [KubyBot] [debug:95] Entering main with args: (), kwargs: {} +[2026-02-07 19:41:48] [INFO] [KubyBot] [info:98] 🔄 Démarrage de la connexion Discord... +[2026-02-07 19:41:48] [DEBUG] [KubyBot] [debug:95] Starting async context manager +[2026-02-07 19:41:48] [INFO] [KubyBot] [info:98] 🔗 Connexion établie avec Discord... +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] 🚀 Démarrage du bot Kuby... +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] ✅ Advanced logger initialized +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist_monitor +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.sendbotmessages +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.goodbye +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.welcome +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.security +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.snipe +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.scan +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.no_link +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.blacklist +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antispam +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antiraid +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.logs_manager +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.rules +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket_whitelist +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.bug_report +[2026-02-07 19:41:49] [INFO] [KubyBot] [info:98] ✅ Commandes slash synchronisées avec Discord +[2026-02-07 19:41:52] [INFO] [KubyBot] [info:98] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808) +[2026-02-07 19:41:52] [INFO] [KubyBot] [info:98] 📊 Serveurs : 1 +[2026-02-07 19:41:52] [DEBUG] [KubyBot] [debug:95] Guild: Omega Kube Bêta Test (ID: 1369669999345537145) - Members: 18 +[2026-02-07 19:41:52] [INFO] [KubyBot] [info:98] 📊 Total members across all guilds: 18 +[2026-02-07 19:41:52] [INFO] [KubyBot] [info:98] ✅ Bot prêt et opérationnel ! +[2026-02-07 19:50:07] [INFO] [KubyBot] [info:98] 🛑 Bot shutdown complete diff --git a/utils/gitlab_client.py b/utils/gitlab_client.py index ce988e6..b2bb7d4 100644 --- a/utils/gitlab_client.py +++ b/utils/gitlab_client.py @@ -13,6 +13,7 @@ class GitLabClient: def __init__(self): self.token = os.getenv("GITLAB_TOKEN") self.project_id = os.getenv("GITLAB_PROJECT_ID") + self.assignee_id = os.getenv("GITLAB_ASSIGNEE_ID") self.base_url = os.getenv("GITLAB_URL", "https://gitlab.com").rstrip("/") # Ensure base_url only contains the schema and domain for the API endpoint if "api/v4" not in self.base_url: @@ -43,6 +44,9 @@ class GitLabClient: "description": description, "labels": ",".join(labels) if labels else "" } + + if self.assignee_id: + data["assignee_ids"] = [self.assignee_id] async with aiohttp.ClientSession() as session: try: