Ajout d'un système de signalisation de bugs automatiser et manuel

This commit is contained in:
Mathis 2026-02-07 16:03:16 +01:00
parent 99ab16098f
commit 88aa73cda9
9 changed files with 1345 additions and 7 deletions

14
bot.py
View file

@ -1,17 +1,18 @@
import os
from dotenv import load_dotenv
# Charger les variables d'environnement AVANT tout le reste
load_dotenv()
import discord
from commandes.ticket.utils.permissions import can_access_config
from commandes.ticket.data.storage import get_storage
from discord.ext import commands
import os
import asyncio
from dotenv import load_dotenv
from src.logger import kuby_logger, log_performance
import logging
from src.advanced_logger import AdvancedLogger
# Chargement des variables d'environnement
load_dotenv()
# Récupération et validation de l'ID d'application
application_id_raw = os.getenv("APPLICATION_ID")
kuby_logger.debug(f"Raw APPLICATION_ID: {application_id_raw}")
@ -63,7 +64,8 @@ class MyBot(commands.Bot):
"commandes.modules_security.antiraid",
"commandes.modules_security.logs_manager",
"commandes.modules_security.rules",
"commandes.ticket_whitelist"
"commandes.ticket_whitelist",
"commandes.bug_report"
]
for extension in extensions:

137
commandes/bug_report.py Normal file
View file

@ -0,0 +1,137 @@
import discord
from discord import app_commands
from discord.ext import commands, tasks
from utils.gitlab_client import gitlab_client
import logging
import json
import os
import asyncio
kuby_logger = logging.getLogger("KubyBot")
REPORTS_FILE = "data/gitlab_reports.json"
def save_report(issue_iid, user_id):
os.makedirs("data", exist_ok=True)
try:
if os.path.exists(REPORTS_FILE):
with open(REPORTS_FILE, "r") as f:
data = json.load(f)
else:
data = {}
data[str(issue_iid)] = user_id
with open(REPORTS_FILE, "w") as f:
json.dump(data, f, indent=4)
except Exception as e:
kuby_logger.error(f"Error saving report to JSON: {e}")
class BugReportModal(discord.ui.Modal, title="Signaler un Bug"):
def __init__(self, priority_choice):
super().__init__()
self.priority_choice = priority_choice
bug_title = discord.ui.TextInput(
label="Titre du bug",
placeholder="Décrivez brièvement le problème...",
required=True,
max_length=100
)
description = discord.ui.TextInput(
label="Description détaillée",
style=discord.TextStyle.paragraph,
placeholder="Que s'est-il passé ? Comment reproduire le bug ?",
required=True,
max_length=1000
)
async def on_submit(self, interaction: discord.Interaction):
await interaction.response.send_message("Envoi de votre rapport de bug à GitLab...", ephemeral=True)
description_text = f"**Rapporté par:** {interaction.user} ({interaction.user.id})\n"
description_text += f"**Priorité:** {self.priority_choice.name}\n\n"
description_text += f"**Description:**\n{self.description.value}"
# Mapping des priorités vers des labels GitLab stylisés (Scoped Labels)
labels = ["bug", "manual-report", f"Priority::{self.priority_choice.value}"]
result = await gitlab_client.create_issue(
title=f"[MANUAL] {self.bug_title.value}",
description=description_text,
labels=labels
)
if result:
issue_iid = result.get("iid")
save_report(issue_iid, interaction.user.id)
await interaction.edit_original_response(content=f"✅ Votre bug a été signalé avec succès ! Gameur a bien été averti et le bug sera réglé dans la prochaine mise à jour. [Voir l'issue]({result.get('web_url')})")
else:
await interaction.edit_original_response(content="❌ Une erreur est survenue lors de l'envoi du rapport à GitLab. Veuillez contacter un administrateur.")
class BugReport(commands.Cog):
def __init__(self, bot):
self.bot = bot
self.check_gitlab_issues.start()
def cog_unload(self):
self.check_gitlab_issues.cancel()
@tasks.loop(minutes=30)
async def check_gitlab_issues(self):
"""Vérifie périodiquement si des issues suivies ont été fermées"""
if not os.path.exists(REPORTS_FILE):
return
try:
with open(REPORTS_FILE, "r") as f:
reports = json.load(f)
if not reports:
return
issues_to_remove = []
for issue_iid, user_id in reports.items():
issue = await gitlab_client.get_issue(int(issue_iid))
if issue and issue.get("state") == "closed":
# L'issue est fermée ! On prévient l'utilisateur
user = self.bot.get_user(user_id)
if user:
try:
embed = discord.Embed(
title="🛠️ Bug Résolu !",
description=f"Bonne nouvelle ! Le bug que vous avez signalé (**{issue.get('title')}**) a été marqué comme terminé sur GitLab.",
color=discord.Color.green()
)
embed.add_field(name="Statut", value="Terminé / Résolu")
embed.add_field(name="Prochaine étape", value="La mise à jour arrive prochainement !")
embed.set_footer(text="Merci de votre aide pour améliorer le bot.")
await user.send(embed=embed)
issues_to_remove.append(issue_iid)
except Exception as e:
kuby_logger.error(f"Impossible d'envoyer un MP à {user_id}: {e}")
else:
# On ne peut pas trouver l'user, on retire quand même pour ne pas boucler
issues_to_remove.append(issue_iid)
if issues_to_remove:
for iid in issues_to_remove:
del reports[iid]
with open(REPORTS_FILE, "w") as f:
json.dump(reports, f, indent=4)
except Exception as e:
kuby_logger.error(f"Erreur lors du cycle de vérification GitLab: {e}")
@app_commands.command(name="signaler_bug", description="Signaler un bug aux développeurs")
@app_commands.choices(priority=[
app_commands.Choice(name="Basse", value="Low"),
app_commands.Choice(name="Normale", value="Normal"),
app_commands.Choice(name="Haute", value="High"),
app_commands.Choice(name="Urgente", value="Urgent"),
])
async def signaler_bug(self, interaction: discord.Interaction, priority: app_commands.Choice[str]):
await interaction.response.send_modal(BugReportModal(priority))
async def setup(bot):
await bot.add_cog(BugReport(bot))

4
data/gitlab_reports.json Normal file
View file

@ -0,0 +1,4 @@
{
"4": 971446412690722826,
"5": 971446412690722826
}

View file

@ -17271,3 +17271,442 @@ discord.ext.commands.errors.ExtensionFailed: Extension 'commandes.ticket_whiteli
[AUDIT] [2026-01-24 15:04:17] [INFO] [info] 📊 Total members across all guilds: 1782
[AUDIT] [2026-01-24 15:04:17] [INFO] [info] ✅ Bot prêt et opérationnel !
[AUDIT] [2026-01-24 15:13:01] [INFO] [info] 👋 celness joined 📡 | Site Ωmega | SCP WL
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ APPLICATION_ID loaded successfully: 1151495567256584253
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] MyBot instance created successfully
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] 📋 Chargement des variables d'environnement...
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ Token Discord chargé avec succès
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] 🔄 Démarrage de la connexion Discord...
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] 🔗 Connexion établie avec Discord...
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] 🚀 Démarrage du bot Kuby...
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ Advanced logger initialized
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ Extension chargée : commandes.whitelist
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ Extension chargée : commandes.whitelist_monitor
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ Extension chargée : commandes.sendbotmessages
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ Extension chargée : commandes.goodbye
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ Extension chargée : commandes.welcome
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ Extension chargée : commandes.security
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ Extension chargée : commandes.snipe
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ Extension chargée : commandes.scan
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ Extension chargée : commandes.no_link
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ Extension chargée : commandes.blacklist
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ Extension chargée : commandes.ticket
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antispam
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antiraid
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ Extension chargée : commandes.modules_security.logs_manager
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ Extension chargée : commandes.modules_security.rules
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ Extension chargée : commandes.ticket_whitelist
[AUDIT] [2026-02-07 15:12:32] [INFO] [info] ✅ Extension chargée : commandes.bug_report
[AUDIT] [2026-02-07 15:12:33] [INFO] [info] ✅ Commandes slash synchronisées avec Discord
[AUDIT] [2026-02-07 15:12:37] [INFO] [info] 🤖 Bot connecté : Kuby#1241 (ID : 1151495567256584253)
[AUDIT] [2026-02-07 15:12:37] [INFO] [info] 📊 Serveurs : 8
[AUDIT] [2026-02-07 15:12:37] [INFO] [info] 📊 Total members across all guilds: 1264
[AUDIT] [2026-02-07 15:12:37] [INFO] [info] ✅ Bot prêt et opérationnel !
[AUDIT] [2026-02-07 15:12:46] [INFO] [info] 🛑 Bot shutdown complete
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ APPLICATION_ID loaded successfully: 1151495567256584253
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] MyBot instance created successfully
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] 📋 Chargement des variables d'environnement...
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ Token Discord chargé avec succès
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] 🔄 Démarrage de la connexion Discord...
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] 🔗 Connexion établie avec Discord...
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] 🚀 Démarrage du bot Kuby...
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ Advanced logger initialized
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ Extension chargée : commandes.whitelist
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ Extension chargée : commandes.whitelist_monitor
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ Extension chargée : commandes.sendbotmessages
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ Extension chargée : commandes.goodbye
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ Extension chargée : commandes.welcome
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ Extension chargée : commandes.security
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ Extension chargée : commandes.snipe
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ Extension chargée : commandes.scan
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ Extension chargée : commandes.no_link
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ Extension chargée : commandes.blacklist
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ Extension chargée : commandes.ticket
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antispam
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antiraid
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ Extension chargée : commandes.modules_security.logs_manager
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ Extension chargée : commandes.modules_security.rules
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ Extension chargée : commandes.ticket_whitelist
[AUDIT] [2026-02-07 15:16:54] [INFO] [info] ✅ Extension chargée : commandes.bug_report
[AUDIT] [2026-02-07 15:16:55] [ERROR] [error] ❌ Erreur lors de la synchronisation des commandes slash : 403 Forbidden (error code: 20012): You are not authorized to perform this action on this application
Traceback (most recent call last):
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/bot.py", line 124, in setup_hook
await self.tree.sync()
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/app_commands/tree.py", line 1116, in sync
data = await self._http.bulk_upsert_global_commands(self.client.application_id, payload=payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/http.py", line 767, in request
raise Forbidden(response, data)
discord.errors.Forbidden: 403 Forbidden (error code: 20012): You are not authorized to perform this action on this application
[AUDIT] [2026-02-07 15:16:55] [ERROR] [create_issue] GitLab integration is not configured. Missing GITLAB_TOKEN or GITLAB_PROJECT_ID.
[AUDIT] [2026-02-07 15:16:55] [ERROR] [create_issue] GitLab integration is not configured. Missing GITLAB_TOKEN or GITLAB_PROJECT_ID.
[AUDIT] [2026-02-07 15:16:57] [INFO] [info] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[AUDIT] [2026-02-07 15:16:57] [INFO] [info] 📊 Serveurs : 1
[AUDIT] [2026-02-07 15:16:57] [INFO] [info] 📊 Total members across all guilds: 18
[AUDIT] [2026-02-07 15:16:57] [INFO] [info] ✅ Bot prêt et opérationnel !
[AUDIT] [2026-02-07 15:17:09] [INFO] [info] 🛑 Bot shutdown complete
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ APPLICATION_ID loaded successfully: 1390778748097527808
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] MyBot instance created successfully
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] 📋 Chargement des variables d'environnement...
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Token Discord chargé avec succès
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] 🔄 Démarrage de la connexion Discord...
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] 🔗 Connexion établie avec Discord...
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] 🚀 Démarrage du bot Kuby...
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Advanced logger initialized
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Extension chargée : commandes.whitelist
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Extension chargée : commandes.whitelist_monitor
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Extension chargée : commandes.sendbotmessages
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Extension chargée : commandes.goodbye
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Extension chargée : commandes.welcome
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Extension chargée : commandes.security
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Extension chargée : commandes.snipe
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Extension chargée : commandes.scan
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Extension chargée : commandes.no_link
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Extension chargée : commandes.blacklist
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Extension chargée : commandes.ticket
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antispam
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antiraid
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Extension chargée : commandes.modules_security.logs_manager
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Extension chargée : commandes.modules_security.rules
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Extension chargée : commandes.ticket_whitelist
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Extension chargée : commandes.bug_report
[AUDIT] [2026-02-07 15:17:10] [INFO] [info] ✅ Commandes slash synchronisées avec Discord
[AUDIT] [2026-02-07 15:17:13] [INFO] [info] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[AUDIT] [2026-02-07 15:17:13] [INFO] [info] 📊 Serveurs : 1
[AUDIT] [2026-02-07 15:17:13] [INFO] [info] 📊 Total members across all guilds: 18
[AUDIT] [2026-02-07 15:17:13] [INFO] [info] ✅ Bot prêt et opérationnel !
[AUDIT] [2026-02-07 15:18:27] [ERROR] [create_issue] GitLab integration is not configured. Missing GITLAB_TOKEN or GITLAB_PROJECT_ID.
[AUDIT] [2026-02-07 15:18:27] [ERROR] [create_issue] GitLab integration is not configured. Missing GITLAB_TOKEN or GITLAB_PROJECT_ID.
[AUDIT] [2026-02-07 15:19:40] [INFO] [info] 🛑 Bot shutdown complete
[AUDIT] [2026-02-07 15:19:41] [INFO] [info] ✅ APPLICATION_ID loaded successfully: 748097527808
[AUDIT] [2026-02-07 15:19:41] [INFO] [info] MyBot instance created successfully
[AUDIT] [2026-02-07 15:19:41] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:19:41] [INFO] [info] 📋 Chargement des variables d'environnement...
[AUDIT] [2026-02-07 15:19:41] [INFO] [info] ✅ Token Discord chargé avec succès
[AUDIT] [2026-02-07 15:19:41] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:19:41] [INFO] [info] 🔄 Démarrage de la connexion Discord...
[AUDIT] [2026-02-07 15:19:41] [INFO] [info] 🔗 Connexion établie avec Discord...
[AUDIT] [2026-02-07 15:19:42] [INFO] [info] 🚀 Démarrage du bot Kuby...
[AUDIT] [2026-02-07 15:19:42] [INFO] [info] ✅ Advanced logger initialized
[AUDIT] [2026-02-07 15:19:42] [INFO] [info] ✅ Extension chargée : commandes.whitelist
[AUDIT] [2026-02-07 15:19:42] [INFO] [info] ✅ Extension chargée : commandes.whitelist_monitor
[AUDIT] [2026-02-07 15:19:42] [INFO] [info] ✅ Extension chargée : commandes.sendbotmessages
[AUDIT] [2026-02-07 15:19:42] [INFO] [info] ✅ Extension chargée : commandes.goodbye
[AUDIT] [2026-02-07 15:19:42] [INFO] [info] ✅ Extension chargée : commandes.welcome
[AUDIT] [2026-02-07 15:19:42] [INFO] [info] ✅ Extension chargée : commandes.security
[AUDIT] [2026-02-07 15:19:42] [INFO] [info] ✅ Extension chargée : commandes.snipe
[AUDIT] [2026-02-07 15:19:42] [INFO] [info] ✅ Extension chargée : commandes.scan
[AUDIT] [2026-02-07 15:19:42] [INFO] [info] ✅ Extension chargée : commandes.no_link
[AUDIT] [2026-02-07 15:19:42] [INFO] [info] ✅ Extension chargée : commandes.blacklist
[AUDIT] [2026-02-07 15:19:42] [INFO] [info] ✅ Extension chargée : commandes.ticket
[AUDIT] [2026-02-07 15:19:42] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antispam
[AUDIT] [2026-02-07 15:19:42] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antiraid
[AUDIT] [2026-02-07 15:19:42] [INFO] [info] ✅ Extension chargée : commandes.modules_security.logs_manager
[AUDIT] [2026-02-07 15:19:42] [INFO] [info] ✅ Extension chargée : commandes.modules_security.rules
[AUDIT] [2026-02-07 15:19:42] [INFO] [info] ✅ Extension chargée : commandes.ticket_whitelist
[AUDIT] [2026-02-07 15:19:42] [INFO] [info] ✅ Extension chargée : commandes.bug_report
[AUDIT] [2026-02-07 15:19:42] [ERROR] [error] ❌ Erreur lors de la synchronisation des commandes slash : 404 Not Found (error code: 10002): Unknown Application
Traceback (most recent call last):
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/bot.py", line 124, in setup_hook
await self.tree.sync()
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/app_commands/tree.py", line 1116, in sync
data = await self._http.bulk_upsert_global_commands(self.client.application_id, payload=payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/http.py", line 769, in request
raise NotFound(response, data)
discord.errors.NotFound: 404 Not Found (error code: 10002): Unknown Application
[AUDIT] [2026-02-07 15:19:45] [INFO] [info] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[AUDIT] [2026-02-07 15:19:45] [INFO] [info] 📊 Serveurs : 1
[AUDIT] [2026-02-07 15:19:45] [INFO] [info] 📊 Total members across all guilds: 18
[AUDIT] [2026-02-07 15:19:45] [INFO] [info] ✅ Bot prêt et opérationnel !
[AUDIT] [2026-02-07 15:21:00] [INFO] [info] 🛑 Bot shutdown complete
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ APPLICATION_ID loaded successfully: 1390778748097527808
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] MyBot instance created successfully
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] 📋 Chargement des variables d'environnement...
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ Token Discord chargé avec succès
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] 🔄 Démarrage de la connexion Discord...
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] 🔗 Connexion établie avec Discord...
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] 🚀 Démarrage du bot Kuby...
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ Advanced logger initialized
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ Extension chargée : commandes.whitelist
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ Extension chargée : commandes.whitelist_monitor
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ Extension chargée : commandes.sendbotmessages
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ Extension chargée : commandes.goodbye
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ Extension chargée : commandes.welcome
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ Extension chargée : commandes.security
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ Extension chargée : commandes.snipe
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ Extension chargée : commandes.scan
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ Extension chargée : commandes.no_link
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ Extension chargée : commandes.blacklist
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ Extension chargée : commandes.ticket
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antispam
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antiraid
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ Extension chargée : commandes.modules_security.logs_manager
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ Extension chargée : commandes.modules_security.rules
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ Extension chargée : commandes.ticket_whitelist
[AUDIT] [2026-02-07 15:21:02] [INFO] [info] ✅ Extension chargée : commandes.bug_report
[AUDIT] [2026-02-07 15:21:03] [INFO] [info] ✅ Commandes slash synchronisées avec Discord
[AUDIT] [2026-02-07 15:21:05] [INFO] [info] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[AUDIT] [2026-02-07 15:21:05] [INFO] [info] 📊 Serveurs : 1
[AUDIT] [2026-02-07 15:21:05] [INFO] [info] 📊 Total members across all guilds: 18
[AUDIT] [2026-02-07 15:21:05] [INFO] [info] ✅ Bot prêt et opérationnel !
[AUDIT] [2026-02-07 15:22:21] [INFO] [info] 🛑 Bot shutdown complete
[AUDIT] [2026-02-07 15:22:22] [INFO] [info] ✅ APPLICATION_ID loaded successfully: 1390778748097527808
[AUDIT] [2026-02-07 15:22:22] [INFO] [info] MyBot instance created successfully
[AUDIT] [2026-02-07 15:22:22] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:22:22] [INFO] [info] 📋 Chargement des variables d'environnement...
[AUDIT] [2026-02-07 15:22:22] [INFO] [info] ✅ Token Discord chargé avec succès
[AUDIT] [2026-02-07 15:22:22] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:22:22] [INFO] [info] 🔄 Démarrage de la connexion Discord...
[AUDIT] [2026-02-07 15:22:22] [INFO] [info] 🔗 Connexion établie avec Discord...
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] 🚀 Démarrage du bot Kuby...
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] ✅ Advanced logger initialized
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] ✅ Extension chargée : commandes.whitelist
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] ✅ Extension chargée : commandes.whitelist_monitor
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] ✅ Extension chargée : commandes.sendbotmessages
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] ✅ Extension chargée : commandes.goodbye
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] ✅ Extension chargée : commandes.welcome
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] ✅ Extension chargée : commandes.security
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] ✅ Extension chargée : commandes.snipe
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] ✅ Extension chargée : commandes.scan
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] ✅ Extension chargée : commandes.no_link
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] ✅ Extension chargée : commandes.blacklist
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] ✅ Extension chargée : commandes.ticket
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antispam
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antiraid
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] ✅ Extension chargée : commandes.modules_security.logs_manager
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] ✅ Extension chargée : commandes.modules_security.rules
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] ✅ Extension chargée : commandes.ticket_whitelist
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] ✅ Extension chargée : commandes.bug_report
[AUDIT] [2026-02-07 15:22:23] [INFO] [info] ✅ Commandes slash synchronisées avec Discord
[AUDIT] [2026-02-07 15:22:26] [INFO] [info] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[AUDIT] [2026-02-07 15:22:26] [INFO] [info] 📊 Serveurs : 1
[AUDIT] [2026-02-07 15:22:26] [INFO] [info] 📊 Total members across all guilds: 18
[AUDIT] [2026-02-07 15:22:26] [INFO] [info] ✅ Bot prêt et opérationnel !
[AUDIT] [2026-02-07 15:24:33] [INFO] [info] 🛑 Bot shutdown complete
[AUDIT] [2026-02-07 15:24:34] [INFO] [info] ✅ APPLICATION_ID loaded successfully: 1390778748097527808
[AUDIT] [2026-02-07 15:24:34] [INFO] [info] MyBot instance created successfully
[AUDIT] [2026-02-07 15:24:34] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:24:34] [INFO] [info] 📋 Chargement des variables d'environnement...
[AUDIT] [2026-02-07 15:24:34] [INFO] [info] ✅ Token Discord chargé avec succès
[AUDIT] [2026-02-07 15:24:34] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:24:34] [INFO] [info] 🔄 Démarrage de la connexion Discord...
[AUDIT] [2026-02-07 15:24:34] [INFO] [info] 🔗 Connexion établie avec Discord...
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] 🚀 Démarrage du bot Kuby...
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] ✅ Advanced logger initialized
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] ✅ Extension chargée : commandes.whitelist
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] ✅ Extension chargée : commandes.whitelist_monitor
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] ✅ Extension chargée : commandes.sendbotmessages
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] ✅ Extension chargée : commandes.goodbye
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] ✅ Extension chargée : commandes.welcome
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] ✅ Extension chargée : commandes.security
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] ✅ Extension chargée : commandes.snipe
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] ✅ Extension chargée : commandes.scan
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] ✅ Extension chargée : commandes.no_link
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] ✅ Extension chargée : commandes.blacklist
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] ✅ Extension chargée : commandes.ticket
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antispam
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antiraid
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] ✅ Extension chargée : commandes.modules_security.logs_manager
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] ✅ Extension chargée : commandes.modules_security.rules
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] ✅ Extension chargée : commandes.ticket_whitelist
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] ✅ Extension chargée : commandes.bug_report
[AUDIT] [2026-02-07 15:24:35] [INFO] [info] ✅ Commandes slash synchronisées avec Discord
[AUDIT] [2026-02-07 15:24:37] [INFO] [info] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[AUDIT] [2026-02-07 15:24:37] [INFO] [info] 📊 Serveurs : 1
[AUDIT] [2026-02-07 15:24:37] [INFO] [info] 📊 Total members across all guilds: 18
[AUDIT] [2026-02-07 15:24:37] [INFO] [info] ✅ Bot prêt et opérationnel !
[AUDIT] [2026-02-07 15:24:59] [INFO] [info] 🛑 Bot shutdown complete
[AUDIT] [2026-02-07 15:24:59] [INFO] [info] ✅ APPLICATION_ID loaded successfully: 1390778748097527808
[AUDIT] [2026-02-07 15:24:59] [INFO] [info] MyBot instance created successfully
[AUDIT] [2026-02-07 15:24:59] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:24:59] [INFO] [info] 📋 Chargement des variables d'environnement...
[AUDIT] [2026-02-07 15:24:59] [INFO] [info] ✅ Token Discord chargé avec succès
[AUDIT] [2026-02-07 15:24:59] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:24:59] [INFO] [info] 🔄 Démarrage de la connexion Discord...
[AUDIT] [2026-02-07 15:24:59] [INFO] [info] 🔗 Connexion établie avec Discord...
[AUDIT] [2026-02-07 15:25:00] [INFO] [info] 🚀 Démarrage du bot Kuby...
[AUDIT] [2026-02-07 15:25:00] [INFO] [info] ✅ Advanced logger initialized
[AUDIT] [2026-02-07 15:25:00] [INFO] [info] ✅ Extension chargée : commandes.whitelist
[AUDIT] [2026-02-07 15:25:00] [INFO] [info] ✅ Extension chargée : commandes.whitelist_monitor
[AUDIT] [2026-02-07 15:25:00] [INFO] [info] ✅ Extension chargée : commandes.sendbotmessages
[AUDIT] [2026-02-07 15:25:00] [INFO] [info] ✅ Extension chargée : commandes.goodbye
[AUDIT] [2026-02-07 15:25:00] [INFO] [info] ✅ Extension chargée : commandes.welcome
[AUDIT] [2026-02-07 15:25:00] [INFO] [info] ✅ Extension chargée : commandes.security
[AUDIT] [2026-02-07 15:25:00] [INFO] [info] ✅ Extension chargée : commandes.snipe
[AUDIT] [2026-02-07 15:25:00] [INFO] [info] ✅ Extension chargée : commandes.scan
[AUDIT] [2026-02-07 15:25:00] [INFO] [info] ✅ Extension chargée : commandes.no_link
[AUDIT] [2026-02-07 15:25:00] [INFO] [info] ✅ Extension chargée : commandes.blacklist
[AUDIT] [2026-02-07 15:25:00] [INFO] [info] ✅ Extension chargée : commandes.ticket
[AUDIT] [2026-02-07 15:25:00] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antispam
[AUDIT] [2026-02-07 15:25:00] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antiraid
[AUDIT] [2026-02-07 15:25:00] [INFO] [info] ✅ Extension chargée : commandes.modules_security.logs_manager
[AUDIT] [2026-02-07 15:25:00] [INFO] [info] ✅ Extension chargée : commandes.modules_security.rules
[AUDIT] [2026-02-07 15:25:00] [INFO] [info] ✅ Extension chargée : commandes.ticket_whitelist
[AUDIT] [2026-02-07 15:25:00] [INFO] [info] ✅ Extension chargée : commandes.bug_report
[AUDIT] [2026-02-07 15:25:35] [INFO] [info] ✅ Commandes slash synchronisées avec Discord
[AUDIT] [2026-02-07 15:25:37] [INFO] [info] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[AUDIT] [2026-02-07 15:25:37] [INFO] [info] 📊 Serveurs : 1
[AUDIT] [2026-02-07 15:25:37] [INFO] [info] 📊 Total members across all guilds: 18
[AUDIT] [2026-02-07 15:25:37] [INFO] [info] ✅ Bot prêt et opérationnel !
[AUDIT] [2026-02-07 15:26:59] [INFO] [info] 🛑 Bot shutdown complete
[AUDIT] [2026-02-07 15:27:00] [INFO] [info] ✅ APPLICATION_ID loaded successfully: 1390778748097527808
[AUDIT] [2026-02-07 15:27:00] [INFO] [info] MyBot instance created successfully
[AUDIT] [2026-02-07 15:27:00] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:27:00] [INFO] [info] 📋 Chargement des variables d'environnement...
[AUDIT] [2026-02-07 15:27:00] [INFO] [info] ✅ Token Discord chargé avec succès
[AUDIT] [2026-02-07 15:27:00] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:27:00] [INFO] [info] 🔄 Démarrage de la connexion Discord...
[AUDIT] [2026-02-07 15:27:00] [INFO] [info] 🔗 Connexion établie avec Discord...
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] 🚀 Démarrage du bot Kuby...
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] ✅ Advanced logger initialized
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] ✅ Extension chargée : commandes.whitelist
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] ✅ Extension chargée : commandes.whitelist_monitor
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] ✅ Extension chargée : commandes.sendbotmessages
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] ✅ Extension chargée : commandes.goodbye
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] ✅ Extension chargée : commandes.welcome
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] ✅ Extension chargée : commandes.security
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] ✅ Extension chargée : commandes.snipe
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] ✅ Extension chargée : commandes.scan
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] ✅ Extension chargée : commandes.no_link
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] ✅ Extension chargée : commandes.blacklist
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] ✅ Extension chargée : commandes.ticket
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antispam
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antiraid
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] ✅ Extension chargée : commandes.modules_security.logs_manager
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] ✅ Extension chargée : commandes.modules_security.rules
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] ✅ Extension chargée : commandes.ticket_whitelist
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] ✅ Extension chargée : commandes.bug_report
[AUDIT] [2026-02-07 15:27:01] [INFO] [info] ✅ Commandes slash synchronisées avec Discord
[AUDIT] [2026-02-07 15:27:04] [INFO] [info] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[AUDIT] [2026-02-07 15:27:04] [INFO] [info] 📊 Serveurs : 1
[AUDIT] [2026-02-07 15:27:04] [INFO] [info] 📊 Total members across all guilds: 18
[AUDIT] [2026-02-07 15:27:04] [INFO] [info] ✅ Bot prêt et opérationnel !
[AUDIT] [2026-02-07 15:43:08] [INFO] [info] 🛑 Bot shutdown complete
[AUDIT] [2026-02-07 15:43:09] [INFO] [info] ✅ APPLICATION_ID loaded successfully: 1390778748097527808
[AUDIT] [2026-02-07 15:43:09] [INFO] [info] MyBot instance created successfully
[AUDIT] [2026-02-07 15:43:09] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:43:09] [INFO] [info] 📋 Chargement des variables d'environnement...
[AUDIT] [2026-02-07 15:43:09] [INFO] [info] ✅ Token Discord chargé avec succès
[AUDIT] [2026-02-07 15:43:09] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:43:09] [INFO] [info] 🔄 Démarrage de la connexion Discord...
[AUDIT] [2026-02-07 15:43:09] [INFO] [info] 🔗 Connexion établie avec Discord...
[AUDIT] [2026-02-07 15:43:10] [INFO] [info] 🚀 Démarrage du bot Kuby...
[AUDIT] [2026-02-07 15:43:10] [INFO] [info] ✅ Advanced logger initialized
[AUDIT] [2026-02-07 15:43:10] [INFO] [info] ✅ Extension chargée : commandes.whitelist
[AUDIT] [2026-02-07 15:43:10] [INFO] [info] ✅ Extension chargée : commandes.whitelist_monitor
[AUDIT] [2026-02-07 15:43:10] [INFO] [info] ✅ Extension chargée : commandes.sendbotmessages
[AUDIT] [2026-02-07 15:43:10] [INFO] [info] ✅ Extension chargée : commandes.goodbye
[AUDIT] [2026-02-07 15:43:10] [INFO] [info] ✅ Extension chargée : commandes.welcome
[AUDIT] [2026-02-07 15:43:10] [INFO] [info] ✅ Extension chargée : commandes.security
[AUDIT] [2026-02-07 15:43:10] [INFO] [info] ✅ Extension chargée : commandes.snipe
[AUDIT] [2026-02-07 15:43:10] [INFO] [info] ✅ Extension chargée : commandes.scan
[AUDIT] [2026-02-07 15:43:10] [INFO] [info] ✅ Extension chargée : commandes.no_link
[AUDIT] [2026-02-07 15:43:10] [INFO] [info] ✅ Extension chargée : commandes.blacklist
[AUDIT] [2026-02-07 15:43:10] [INFO] [info] ✅ Extension chargée : commandes.ticket
[AUDIT] [2026-02-07 15:43:10] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antispam
[AUDIT] [2026-02-07 15:43:10] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antiraid
[AUDIT] [2026-02-07 15:43:10] [INFO] [info] ✅ Extension chargée : commandes.modules_security.logs_manager
[AUDIT] [2026-02-07 15:43:10] [INFO] [info] ✅ Extension chargée : commandes.modules_security.rules
[AUDIT] [2026-02-07 15:43:10] [INFO] [info] ✅ Extension chargée : commandes.ticket_whitelist
[AUDIT] [2026-02-07 15:43:10] [ERROR] [error] ❌ Erreur lors du chargement de commandes.bug_report : Extension 'commandes.bug_report' raised an error: NameError: name 'discord' is not defined
Traceback (most recent call last):
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/ext/commands/bot.py", line 962, in _load_from_module_spec
spec.loader.exec_module(lib) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/commandes/bug_report.py", line 27, in <module>
class BugReportModal(discord.ui.Modal, title="Signaler un Bug"):
^^^^^^^
NameError: name 'discord' is not defined
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/bot.py", line 73, in setup_hook
await self.load_extension(extension)
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/ext/commands/bot.py", line 1040, in load_extension
await self._load_from_module_spec(spec, name)
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/ext/commands/bot.py", line 965, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.ext.commands.errors.ExtensionFailed: Extension 'commandes.bug_report' raised an error: NameError: name 'discord' is not defined
[AUDIT] [2026-02-07 15:43:10] [INFO] [info] ✅ Commandes slash synchronisées avec Discord
[AUDIT] [2026-02-07 15:43:13] [INFO] [info] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[AUDIT] [2026-02-07 15:43:13] [INFO] [info] 📊 Serveurs : 1
[AUDIT] [2026-02-07 15:43:13] [INFO] [info] 📊 Total members across all guilds: 18
[AUDIT] [2026-02-07 15:43:13] [INFO] [info] ✅ Bot prêt et opérationnel !
[AUDIT] [2026-02-07 15:43:53] [INFO] [info] 🛑 Bot shutdown complete
[AUDIT] [2026-02-07 15:43:53] [INFO] [info] ✅ APPLICATION_ID loaded successfully: 1390778748097527808
[AUDIT] [2026-02-07 15:43:53] [INFO] [info] MyBot instance created successfully
[AUDIT] [2026-02-07 15:43:53] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:43:53] [INFO] [info] 📋 Chargement des variables d'environnement...
[AUDIT] [2026-02-07 15:43:53] [INFO] [info] ✅ Token Discord chargé avec succès
[AUDIT] [2026-02-07 15:43:53] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:43:53] [INFO] [info] 🔄 Démarrage de la connexion Discord...
[AUDIT] [2026-02-07 15:43:53] [INFO] [info] 🔗 Connexion établie avec Discord...
[AUDIT] [2026-02-07 15:43:54] [INFO] [info] 🚀 Démarrage du bot Kuby...
[AUDIT] [2026-02-07 15:43:54] [INFO] [info] ✅ Advanced logger initialized
[AUDIT] [2026-02-07 15:43:54] [INFO] [info] ✅ Extension chargée : commandes.whitelist
[AUDIT] [2026-02-07 15:43:54] [INFO] [info] ✅ Extension chargée : commandes.whitelist_monitor
[AUDIT] [2026-02-07 15:43:54] [INFO] [info] ✅ Extension chargée : commandes.sendbotmessages
[AUDIT] [2026-02-07 15:43:54] [INFO] [info] ✅ Extension chargée : commandes.goodbye
[AUDIT] [2026-02-07 15:43:54] [INFO] [info] ✅ Extension chargée : commandes.welcome
[AUDIT] [2026-02-07 15:43:54] [INFO] [info] ✅ Extension chargée : commandes.security
[AUDIT] [2026-02-07 15:43:54] [INFO] [info] ✅ Extension chargée : commandes.snipe
[AUDIT] [2026-02-07 15:43:54] [INFO] [info] ✅ Extension chargée : commandes.scan
[AUDIT] [2026-02-07 15:43:54] [INFO] [info] ✅ Extension chargée : commandes.no_link
[AUDIT] [2026-02-07 15:43:54] [INFO] [info] ✅ Extension chargée : commandes.blacklist
[AUDIT] [2026-02-07 15:43:54] [INFO] [info] ✅ Extension chargée : commandes.ticket
[AUDIT] [2026-02-07 15:43:54] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antispam
[AUDIT] [2026-02-07 15:43:54] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antiraid
[AUDIT] [2026-02-07 15:43:54] [INFO] [info] ✅ Extension chargée : commandes.modules_security.logs_manager
[AUDIT] [2026-02-07 15:43:54] [INFO] [info] ✅ Extension chargée : commandes.modules_security.rules
[AUDIT] [2026-02-07 15:43:54] [INFO] [info] ✅ Extension chargée : commandes.ticket_whitelist
[AUDIT] [2026-02-07 15:43:54] [INFO] [info] ✅ Extension chargée : commandes.bug_report
[AUDIT] [2026-02-07 15:43:56] [INFO] [info] ✅ Commandes slash synchronisées avec Discord
[AUDIT] [2026-02-07 15:43:58] [INFO] [info] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[AUDIT] [2026-02-07 15:43:58] [INFO] [info] 📊 Serveurs : 1
[AUDIT] [2026-02-07 15:43:58] [INFO] [info] 📊 Total members across all guilds: 18
[AUDIT] [2026-02-07 15:43:58] [INFO] [info] ✅ Bot prêt et opérationnel !
[AUDIT] [2026-02-07 15:52:39] [INFO] [info] 🛑 Bot shutdown complete
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ APPLICATION_ID loaded successfully: 1390778748097527808
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] MyBot instance created successfully
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] 📋 Chargement des variables d'environnement...
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ Token Discord chargé avec succès
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] 🚀 Lancement du bot Kuby...
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] 🔄 Démarrage de la connexion Discord...
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] 🔗 Connexion établie avec Discord...
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] 🚀 Démarrage du bot Kuby...
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ Advanced logger initialized
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ Extension chargée : commandes.whitelist
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ Extension chargée : commandes.whitelist_monitor
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ Extension chargée : commandes.sendbotmessages
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ Extension chargée : commandes.goodbye
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ Extension chargée : commandes.welcome
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ Extension chargée : commandes.security
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ Extension chargée : commandes.snipe
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ Extension chargée : commandes.scan
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ Extension chargée : commandes.no_link
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ Extension chargée : commandes.blacklist
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ Extension chargée : commandes.ticket
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antispam
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ Extension chargée : commandes.modules_security.antiraid
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ Extension chargée : commandes.modules_security.logs_manager
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ Extension chargée : commandes.modules_security.rules
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ Extension chargée : commandes.ticket_whitelist
[AUDIT] [2026-02-07 15:52:40] [INFO] [info] ✅ Extension chargée : commandes.bug_report
[AUDIT] [2026-02-07 15:52:41] [INFO] [info] ✅ Commandes slash synchronisées avec Discord
[AUDIT] [2026-02-07 15:52:44] [INFO] [info] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[AUDIT] [2026-02-07 15:52:44] [INFO] [info] 📊 Serveurs : 1
[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

View file

@ -9660,3 +9660,49 @@ Traceback (most recent call last):
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/ext/commands/bot.py", line 979, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.ext.commands.errors.ExtensionFailed: Extension 'commandes.ticket_whitelist' raised an error: CommandAlreadyRegistered: Command 'ticket' already registered.
[2026-02-07 15:16:55] [ERROR] [KubyBot] [error:104] ❌ Erreur lors de la synchronisation des commandes slash : 403 Forbidden (error code: 20012): You are not authorized to perform this action on this application
Traceback (most recent call last):
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/bot.py", line 124, in setup_hook
await self.tree.sync()
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/app_commands/tree.py", line 1116, in sync
data = await self._http.bulk_upsert_global_commands(self.client.application_id, payload=payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/http.py", line 767, in request
raise Forbidden(response, data)
discord.errors.Forbidden: 403 Forbidden (error code: 20012): You are not authorized to perform this action on this application
[2026-02-07 15:16:55] [ERROR] [KubyBot] [create_issue:20] GitLab integration is not configured. Missing GITLAB_TOKEN or GITLAB_PROJECT_ID.
[2026-02-07 15:16:55] [ERROR] [KubyBot] [create_issue:20] GitLab integration is not configured. Missing GITLAB_TOKEN or GITLAB_PROJECT_ID.
[2026-02-07 15:18:27] [ERROR] [KubyBot] [create_issue:20] GitLab integration is not configured. Missing GITLAB_TOKEN or GITLAB_PROJECT_ID.
[2026-02-07 15:18:27] [ERROR] [KubyBot] [create_issue:20] GitLab integration is not configured. Missing GITLAB_TOKEN or GITLAB_PROJECT_ID.
[2026-02-07 15:19:42] [ERROR] [KubyBot] [error:104] ❌ Erreur lors de la synchronisation des commandes slash : 404 Not Found (error code: 10002): Unknown Application
Traceback (most recent call last):
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/bot.py", line 124, in setup_hook
await self.tree.sync()
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/app_commands/tree.py", line 1116, in sync
data = await self._http.bulk_upsert_global_commands(self.client.application_id, payload=payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/http.py", line 769, in request
raise NotFound(response, data)
discord.errors.NotFound: 404 Not Found (error code: 10002): Unknown Application
[2026-02-07 15:43:10] [ERROR] [KubyBot] [error:104] ❌ Erreur lors du chargement de commandes.bug_report : Extension 'commandes.bug_report' raised an error: NameError: name 'discord' is not defined
Traceback (most recent call last):
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/ext/commands/bot.py", line 962, in _load_from_module_spec
spec.loader.exec_module(lib) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/commandes/bug_report.py", line 27, in <module>
class BugReportModal(discord.ui.Modal, title="Signaler un Bug"):
^^^^^^^
NameError: name 'discord' is not defined
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/bot.py", line 73, in setup_hook
await self.load_extension(extension)
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/ext/commands/bot.py", line 1040, in load_extension
await self._load_from_module_spec(spec, name)
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/ext/commands/bot.py", line 965, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.ext.commands.errors.ExtensionFailed: Extension 'commandes.bug_report' raised an error: NameError: name 'discord' is not defined

View file

@ -20964,3 +20964,557 @@ discord.ext.commands.errors.ExtensionFailed: Extension 'commandes.ticket_whiteli
[2026-01-24 15:04:17] [INFO] [KubyBot] [info:53] 📊 Total members across all guilds: 1782
[2026-01-24 15:04:17] [INFO] [KubyBot] [info:53] ✅ Bot prêt et opérationnel !
[2026-01-24 15:13:01] [INFO] [KubyBot] [info:53] 👋 celness joined 📡 | Site Ωmega | SCP WL
[2026-02-07 15:12:32] [DEBUG] [KubyBot] [debug:95] Raw APPLICATION_ID: 1151495567256584253
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ APPLICATION_ID loaded successfully: 1151495567256584253
[2026-02-07 15:12:32] [DEBUG] [KubyBot] [debug:95] Discord intents configured: <Intents value=53608191>
[2026-02-07 15:12:32] [DEBUG] [KubyBot] [debug:95] Initializing MyBot class
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] MyBot instance created successfully
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:12:32] [DEBUG] [KubyBot] [debug:95] Starting __main__.py execution
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] 📋 Chargement des variables d'environnement...
[2026-02-07 15:12:32] [DEBUG] [KubyBot] [debug:95] Environment variables loaded
[2026-02-07 15:12:32] [DEBUG] [KubyBot] [debug:95] Token retrieved from environment: ***
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ Token Discord chargé avec succès
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:12:32] [DEBUG] [KubyBot] [debug:95] Entering main with args: (), kwargs: {}
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] 🔄 Démarrage de la connexion Discord...
[2026-02-07 15:12:32] [DEBUG] [KubyBot] [debug:95] Starting async context manager
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] 🔗 Connexion établie avec Discord...
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] 🚀 Démarrage du bot Kuby...
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ Advanced logger initialized
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist_monitor
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.sendbotmessages
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.goodbye
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.welcome
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.security
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.snipe
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.scan
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.no_link
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.blacklist
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antispam
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antiraid
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.logs_manager
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.rules
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket_whitelist
[2026-02-07 15:12:32] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.bug_report
[2026-02-07 15:12:33] [INFO] [KubyBot] [info:98] ✅ Commandes slash synchronisées avec Discord
[2026-02-07 15:12:37] [INFO] [KubyBot] [info:98] 🤖 Bot connecté : Kuby#1241 (ID : 1151495567256584253)
[2026-02-07 15:12:37] [INFO] [KubyBot] [info:98] 📊 Serveurs : 8
[2026-02-07 15:12:37] [DEBUG] [KubyBot] [debug:95] Guild: Omega Kube (ID: 1015968420203855883) - Members: 87
[2026-02-07 15:12:37] [DEBUG] [KubyBot] [debug:95] Guild: 🌆 Hostown | Serious RP WL (ID: 1195674638525669446) - Members: 69
[2026-02-07 15:12:37] [DEBUG] [KubyBot] [debug:95] Guild: Victoria's Vice 𝐈𝐈 ™ (Maintenance) (ID: 1277303870657400882) - Members: 325
[2026-02-07 15:12:37] [DEBUG] [KubyBot] [debug:95] Guild: Omega Kube Team (ID: 1313868393513881622) - Members: 9
[2026-02-07 15:12:37] [DEBUG] [KubyBot] [debug:95] Guild: 📡 | Site Ωmega | SCP WL (ID: 1366461904976871565) - Members: 130
[2026-02-07 15:12:37] [DEBUG] [KubyBot] [debug:95] Guild: Omega Kube Bêta Test (ID: 1369669999345537145) - Members: 18
[2026-02-07 15:12:37] [DEBUG] [KubyBot] [debug:95] Guild: Red Dust Redemption [RP WL] (ID: 1370362952938688573) - Members: 426
[2026-02-07 15:12:37] [DEBUG] [KubyBot] [debug:95] Guild: 🦠 • 𝑺𝑪 | SITE CHIMERA ➨ RP SCP (ID: 1394648834189164705) - Members: 200
[2026-02-07 15:12:37] [INFO] [KubyBot] [info:98] 📊 Total members across all guilds: 1264
[2026-02-07 15:12:37] [INFO] [KubyBot] [info:98] ✅ Bot prêt et opérationnel !
[2026-02-07 15:12:46] [INFO] [KubyBot] [info:98] 🛑 Bot shutdown complete
[2026-02-07 15:16:54] [DEBUG] [KubyBot] [debug:95] Raw APPLICATION_ID: 1151495567256584253
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ APPLICATION_ID loaded successfully: 1151495567256584253
[2026-02-07 15:16:54] [DEBUG] [KubyBot] [debug:95] Discord intents configured: <Intents value=53608191>
[2026-02-07 15:16:54] [DEBUG] [KubyBot] [debug:95] Initializing MyBot class
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] MyBot instance created successfully
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:16:54] [DEBUG] [KubyBot] [debug:95] Starting __main__.py execution
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] 📋 Chargement des variables d'environnement...
[2026-02-07 15:16:54] [DEBUG] [KubyBot] [debug:95] Environment variables loaded
[2026-02-07 15:16:54] [DEBUG] [KubyBot] [debug:95] Token retrieved from environment: ***
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ Token Discord chargé avec succès
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:16:54] [DEBUG] [KubyBot] [debug:95] Entering main with args: (), kwargs: {}
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] 🔄 Démarrage de la connexion Discord...
[2026-02-07 15:16:54] [DEBUG] [KubyBot] [debug:95] Starting async context manager
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] 🔗 Connexion établie avec Discord...
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] 🚀 Démarrage du bot Kuby...
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ Advanced logger initialized
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist_monitor
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.sendbotmessages
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.goodbye
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.welcome
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.security
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.snipe
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.scan
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.no_link
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.blacklist
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antispam
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antiraid
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.logs_manager
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.rules
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket_whitelist
[2026-02-07 15:16:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.bug_report
[2026-02-07 15:16:55] [ERROR] [KubyBot] [error:104] ❌ Erreur lors de la synchronisation des commandes slash : 403 Forbidden (error code: 20012): You are not authorized to perform this action on this application
Traceback (most recent call last):
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/bot.py", line 124, in setup_hook
await self.tree.sync()
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/app_commands/tree.py", line 1116, in sync
data = await self._http.bulk_upsert_global_commands(self.client.application_id, payload=payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/http.py", line 767, in request
raise Forbidden(response, data)
discord.errors.Forbidden: 403 Forbidden (error code: 20012): You are not authorized to perform this action on this application
[2026-02-07 15:16:55] [ERROR] [KubyBot] [create_issue:20] GitLab integration is not configured. Missing GITLAB_TOKEN or GITLAB_PROJECT_ID.
[2026-02-07 15:16:55] [ERROR] [KubyBot] [create_issue:20] GitLab integration is not configured. Missing GITLAB_TOKEN or GITLAB_PROJECT_ID.
[2026-02-07 15:16:57] [INFO] [KubyBot] [info:98] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[2026-02-07 15:16:57] [INFO] [KubyBot] [info:98] 📊 Serveurs : 1
[2026-02-07 15:16:57] [DEBUG] [KubyBot] [debug:95] Guild: Omega Kube Bêta Test (ID: 1369669999345537145) - Members: 18
[2026-02-07 15:16:57] [INFO] [KubyBot] [info:98] 📊 Total members across all guilds: 18
[2026-02-07 15:16:57] [INFO] [KubyBot] [info:98] ✅ Bot prêt et opérationnel !
[2026-02-07 15:17:09] [INFO] [KubyBot] [info:98] 🛑 Bot shutdown complete
[2026-02-07 15:17:10] [DEBUG] [KubyBot] [debug:95] Raw APPLICATION_ID: 1390778748097527808
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ APPLICATION_ID loaded successfully: 1390778748097527808
[2026-02-07 15:17:10] [DEBUG] [KubyBot] [debug:95] Discord intents configured: <Intents value=53608191>
[2026-02-07 15:17:10] [DEBUG] [KubyBot] [debug:95] Initializing MyBot class
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] MyBot instance created successfully
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:17:10] [DEBUG] [KubyBot] [debug:95] Starting __main__.py execution
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] 📋 Chargement des variables d'environnement...
[2026-02-07 15:17:10] [DEBUG] [KubyBot] [debug:95] Environment variables loaded
[2026-02-07 15:17:10] [DEBUG] [KubyBot] [debug:95] Token retrieved from environment: ***
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Token Discord chargé avec succès
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:17:10] [DEBUG] [KubyBot] [debug:95] Entering main with args: (), kwargs: {}
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] 🔄 Démarrage de la connexion Discord...
[2026-02-07 15:17:10] [DEBUG] [KubyBot] [debug:95] Starting async context manager
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] 🔗 Connexion établie avec Discord...
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] 🚀 Démarrage du bot Kuby...
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Advanced logger initialized
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist_monitor
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.sendbotmessages
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.goodbye
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.welcome
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.security
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.snipe
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.scan
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.no_link
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.blacklist
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antispam
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antiraid
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.logs_manager
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.rules
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket_whitelist
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.bug_report
[2026-02-07 15:17:10] [INFO] [KubyBot] [info:98] ✅ Commandes slash synchronisées avec Discord
[2026-02-07 15:17:13] [INFO] [KubyBot] [info:98] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[2026-02-07 15:17:13] [INFO] [KubyBot] [info:98] 📊 Serveurs : 1
[2026-02-07 15:17:13] [DEBUG] [KubyBot] [debug:95] Guild: Omega Kube Bêta Test (ID: 1369669999345537145) - Members: 18
[2026-02-07 15:17:13] [INFO] [KubyBot] [info:98] 📊 Total members across all guilds: 18
[2026-02-07 15:17:13] [INFO] [KubyBot] [info:98] ✅ Bot prêt et opérationnel !
[2026-02-07 15:18:27] [ERROR] [KubyBot] [create_issue:20] GitLab integration is not configured. Missing GITLAB_TOKEN or GITLAB_PROJECT_ID.
[2026-02-07 15:18:27] [ERROR] [KubyBot] [create_issue:20] GitLab integration is not configured. Missing GITLAB_TOKEN or GITLAB_PROJECT_ID.
[2026-02-07 15:19:40] [INFO] [KubyBot] [info:98] 🛑 Bot shutdown complete
[2026-02-07 15:19:41] [DEBUG] [KubyBot] [debug:95] Raw APPLICATION_ID: 748097527808
[2026-02-07 15:19:41] [INFO] [KubyBot] [info:98] ✅ APPLICATION_ID loaded successfully: 748097527808
[2026-02-07 15:19:41] [DEBUG] [KubyBot] [debug:95] Discord intents configured: <Intents value=53608191>
[2026-02-07 15:19:41] [DEBUG] [KubyBot] [debug:95] Initializing MyBot class
[2026-02-07 15:19:41] [INFO] [KubyBot] [info:98] MyBot instance created successfully
[2026-02-07 15:19:41] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:19:41] [DEBUG] [KubyBot] [debug:95] Starting __main__.py execution
[2026-02-07 15:19:41] [INFO] [KubyBot] [info:98] 📋 Chargement des variables d'environnement...
[2026-02-07 15:19:41] [DEBUG] [KubyBot] [debug:95] Environment variables loaded
[2026-02-07 15:19:41] [DEBUG] [KubyBot] [debug:95] Token retrieved from environment: ***
[2026-02-07 15:19:41] [INFO] [KubyBot] [info:98] ✅ Token Discord chargé avec succès
[2026-02-07 15:19:41] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:19:41] [DEBUG] [KubyBot] [debug:95] Entering main with args: (), kwargs: {}
[2026-02-07 15:19:41] [INFO] [KubyBot] [info:98] 🔄 Démarrage de la connexion Discord...
[2026-02-07 15:19:41] [DEBUG] [KubyBot] [debug:95] Starting async context manager
[2026-02-07 15:19:41] [INFO] [KubyBot] [info:98] 🔗 Connexion établie avec Discord...
[2026-02-07 15:19:42] [INFO] [KubyBot] [info:98] 🚀 Démarrage du bot Kuby...
[2026-02-07 15:19:42] [INFO] [KubyBot] [info:98] ✅ Advanced logger initialized
[2026-02-07 15:19:42] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist
[2026-02-07 15:19:42] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist_monitor
[2026-02-07 15:19:42] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.sendbotmessages
[2026-02-07 15:19:42] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.goodbye
[2026-02-07 15:19:42] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.welcome
[2026-02-07 15:19:42] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.security
[2026-02-07 15:19:42] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.snipe
[2026-02-07 15:19:42] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.scan
[2026-02-07 15:19:42] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.no_link
[2026-02-07 15:19:42] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.blacklist
[2026-02-07 15:19:42] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket
[2026-02-07 15:19:42] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antispam
[2026-02-07 15:19:42] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antiraid
[2026-02-07 15:19:42] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.logs_manager
[2026-02-07 15:19:42] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.rules
[2026-02-07 15:19:42] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket_whitelist
[2026-02-07 15:19:42] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.bug_report
[2026-02-07 15:19:42] [ERROR] [KubyBot] [error:104] ❌ Erreur lors de la synchronisation des commandes slash : 404 Not Found (error code: 10002): Unknown Application
Traceback (most recent call last):
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/bot.py", line 124, in setup_hook
await self.tree.sync()
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/app_commands/tree.py", line 1116, in sync
data = await self._http.bulk_upsert_global_commands(self.client.application_id, payload=payload)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/http.py", line 769, in request
raise NotFound(response, data)
discord.errors.NotFound: 404 Not Found (error code: 10002): Unknown Application
[2026-02-07 15:19:45] [INFO] [KubyBot] [info:98] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[2026-02-07 15:19:45] [INFO] [KubyBot] [info:98] 📊 Serveurs : 1
[2026-02-07 15:19:45] [DEBUG] [KubyBot] [debug:95] Guild: Omega Kube Bêta Test (ID: 1369669999345537145) - Members: 18
[2026-02-07 15:19:45] [INFO] [KubyBot] [info:98] 📊 Total members across all guilds: 18
[2026-02-07 15:19:45] [INFO] [KubyBot] [info:98] ✅ Bot prêt et opérationnel !
[2026-02-07 15:21:00] [INFO] [KubyBot] [info:98] 🛑 Bot shutdown complete
[2026-02-07 15:21:02] [DEBUG] [KubyBot] [debug:95] Raw APPLICATION_ID: 1390778748097527808
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ APPLICATION_ID loaded successfully: 1390778748097527808
[2026-02-07 15:21:02] [DEBUG] [KubyBot] [debug:95] Discord intents configured: <Intents value=53608191>
[2026-02-07 15:21:02] [DEBUG] [KubyBot] [debug:95] Initializing MyBot class
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] MyBot instance created successfully
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:21:02] [DEBUG] [KubyBot] [debug:95] Starting __main__.py execution
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] 📋 Chargement des variables d'environnement...
[2026-02-07 15:21:02] [DEBUG] [KubyBot] [debug:95] Environment variables loaded
[2026-02-07 15:21:02] [DEBUG] [KubyBot] [debug:95] Token retrieved from environment: ***
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ Token Discord chargé avec succès
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:21:02] [DEBUG] [KubyBot] [debug:95] Entering main with args: (), kwargs: {}
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] 🔄 Démarrage de la connexion Discord...
[2026-02-07 15:21:02] [DEBUG] [KubyBot] [debug:95] Starting async context manager
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] 🔗 Connexion établie avec Discord...
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] 🚀 Démarrage du bot Kuby...
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ Advanced logger initialized
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist_monitor
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.sendbotmessages
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.goodbye
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.welcome
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.security
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.snipe
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.scan
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.no_link
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.blacklist
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antispam
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antiraid
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.logs_manager
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.rules
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket_whitelist
[2026-02-07 15:21:02] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.bug_report
[2026-02-07 15:21:03] [INFO] [KubyBot] [info:98] ✅ Commandes slash synchronisées avec Discord
[2026-02-07 15:21:05] [INFO] [KubyBot] [info:98] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[2026-02-07 15:21:05] [INFO] [KubyBot] [info:98] 📊 Serveurs : 1
[2026-02-07 15:21:05] [DEBUG] [KubyBot] [debug:95] Guild: Omega Kube Bêta Test (ID: 1369669999345537145) - Members: 18
[2026-02-07 15:21:05] [INFO] [KubyBot] [info:98] 📊 Total members across all guilds: 18
[2026-02-07 15:21:05] [INFO] [KubyBot] [info:98] ✅ Bot prêt et opérationnel !
[2026-02-07 15:22:21] [INFO] [KubyBot] [info:98] 🛑 Bot shutdown complete
[2026-02-07 15:22:22] [DEBUG] [KubyBot] [debug:95] Raw APPLICATION_ID: 1390778748097527808
[2026-02-07 15:22:22] [INFO] [KubyBot] [info:98] ✅ APPLICATION_ID loaded successfully: 1390778748097527808
[2026-02-07 15:22:22] [DEBUG] [KubyBot] [debug:95] Discord intents configured: <Intents value=53608191>
[2026-02-07 15:22:22] [DEBUG] [KubyBot] [debug:95] Initializing MyBot class
[2026-02-07 15:22:22] [INFO] [KubyBot] [info:98] MyBot instance created successfully
[2026-02-07 15:22:22] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:22:22] [DEBUG] [KubyBot] [debug:95] Starting __main__.py execution
[2026-02-07 15:22:22] [INFO] [KubyBot] [info:98] 📋 Chargement des variables d'environnement...
[2026-02-07 15:22:22] [DEBUG] [KubyBot] [debug:95] Environment variables loaded
[2026-02-07 15:22:22] [DEBUG] [KubyBot] [debug:95] Token retrieved from environment: ***
[2026-02-07 15:22:22] [INFO] [KubyBot] [info:98] ✅ Token Discord chargé avec succès
[2026-02-07 15:22:22] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:22:22] [DEBUG] [KubyBot] [debug:95] Entering main with args: (), kwargs: {}
[2026-02-07 15:22:22] [INFO] [KubyBot] [info:98] 🔄 Démarrage de la connexion Discord...
[2026-02-07 15:22:22] [DEBUG] [KubyBot] [debug:95] Starting async context manager
[2026-02-07 15:22:22] [INFO] [KubyBot] [info:98] 🔗 Connexion établie avec Discord...
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] 🚀 Démarrage du bot Kuby...
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] ✅ Advanced logger initialized
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist_monitor
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.sendbotmessages
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.goodbye
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.welcome
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.security
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.snipe
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.scan
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.no_link
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.blacklist
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antispam
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antiraid
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.logs_manager
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.rules
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket_whitelist
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.bug_report
[2026-02-07 15:22:23] [INFO] [KubyBot] [info:98] ✅ Commandes slash synchronisées avec Discord
[2026-02-07 15:22:26] [INFO] [KubyBot] [info:98] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[2026-02-07 15:22:26] [INFO] [KubyBot] [info:98] 📊 Serveurs : 1
[2026-02-07 15:22:26] [DEBUG] [KubyBot] [debug:95] Guild: Omega Kube Bêta Test (ID: 1369669999345537145) - Members: 18
[2026-02-07 15:22:26] [INFO] [KubyBot] [info:98] 📊 Total members across all guilds: 18
[2026-02-07 15:22:26] [INFO] [KubyBot] [info:98] ✅ Bot prêt et opérationnel !
[2026-02-07 15:24:33] [INFO] [KubyBot] [info:98] 🛑 Bot shutdown complete
[2026-02-07 15:24:34] [DEBUG] [KubyBot] [debug:95] Raw APPLICATION_ID: 1390778748097527808
[2026-02-07 15:24:34] [INFO] [KubyBot] [info:98] ✅ APPLICATION_ID loaded successfully: 1390778748097527808
[2026-02-07 15:24:34] [DEBUG] [KubyBot] [debug:95] Discord intents configured: <Intents value=53608191>
[2026-02-07 15:24:34] [DEBUG] [KubyBot] [debug:95] Initializing MyBot class
[2026-02-07 15:24:34] [INFO] [KubyBot] [info:98] MyBot instance created successfully
[2026-02-07 15:24:34] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:24:34] [DEBUG] [KubyBot] [debug:95] Starting __main__.py execution
[2026-02-07 15:24:34] [INFO] [KubyBot] [info:98] 📋 Chargement des variables d'environnement...
[2026-02-07 15:24:34] [DEBUG] [KubyBot] [debug:95] Environment variables loaded
[2026-02-07 15:24:34] [DEBUG] [KubyBot] [debug:95] Token retrieved from environment: ***
[2026-02-07 15:24:34] [INFO] [KubyBot] [info:98] ✅ Token Discord chargé avec succès
[2026-02-07 15:24:34] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:24:34] [DEBUG] [KubyBot] [debug:95] Entering main with args: (), kwargs: {}
[2026-02-07 15:24:34] [INFO] [KubyBot] [info:98] 🔄 Démarrage de la connexion Discord...
[2026-02-07 15:24:34] [DEBUG] [KubyBot] [debug:95] Starting async context manager
[2026-02-07 15:24:34] [INFO] [KubyBot] [info:98] 🔗 Connexion établie avec Discord...
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] 🚀 Démarrage du bot Kuby...
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] ✅ Advanced logger initialized
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist_monitor
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.sendbotmessages
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.goodbye
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.welcome
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.security
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.snipe
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.scan
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.no_link
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.blacklist
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antispam
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antiraid
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.logs_manager
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.rules
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket_whitelist
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.bug_report
[2026-02-07 15:24:35] [INFO] [KubyBot] [info:98] ✅ Commandes slash synchronisées avec Discord
[2026-02-07 15:24:37] [INFO] [KubyBot] [info:98] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[2026-02-07 15:24:37] [INFO] [KubyBot] [info:98] 📊 Serveurs : 1
[2026-02-07 15:24:37] [DEBUG] [KubyBot] [debug:95] Guild: Omega Kube Bêta Test (ID: 1369669999345537145) - Members: 18
[2026-02-07 15:24:37] [INFO] [KubyBot] [info:98] 📊 Total members across all guilds: 18
[2026-02-07 15:24:37] [INFO] [KubyBot] [info:98] ✅ Bot prêt et opérationnel !
[2026-02-07 15:24:59] [INFO] [KubyBot] [info:98] 🛑 Bot shutdown complete
[2026-02-07 15:24:59] [DEBUG] [KubyBot] [debug:95] Raw APPLICATION_ID: 1390778748097527808
[2026-02-07 15:24:59] [INFO] [KubyBot] [info:98] ✅ APPLICATION_ID loaded successfully: 1390778748097527808
[2026-02-07 15:24:59] [DEBUG] [KubyBot] [debug:95] Discord intents configured: <Intents value=53608191>
[2026-02-07 15:24:59] [DEBUG] [KubyBot] [debug:95] Initializing MyBot class
[2026-02-07 15:24:59] [INFO] [KubyBot] [info:98] MyBot instance created successfully
[2026-02-07 15:24:59] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:24:59] [DEBUG] [KubyBot] [debug:95] Starting __main__.py execution
[2026-02-07 15:24:59] [INFO] [KubyBot] [info:98] 📋 Chargement des variables d'environnement...
[2026-02-07 15:24:59] [DEBUG] [KubyBot] [debug:95] Environment variables loaded
[2026-02-07 15:24:59] [DEBUG] [KubyBot] [debug:95] Token retrieved from environment: ***
[2026-02-07 15:24:59] [INFO] [KubyBot] [info:98] ✅ Token Discord chargé avec succès
[2026-02-07 15:24:59] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:24:59] [DEBUG] [KubyBot] [debug:95] Entering main with args: (), kwargs: {}
[2026-02-07 15:24:59] [INFO] [KubyBot] [info:98] 🔄 Démarrage de la connexion Discord...
[2026-02-07 15:24:59] [DEBUG] [KubyBot] [debug:95] Starting async context manager
[2026-02-07 15:24:59] [INFO] [KubyBot] [info:98] 🔗 Connexion établie avec Discord...
[2026-02-07 15:25:00] [INFO] [KubyBot] [info:98] 🚀 Démarrage du bot Kuby...
[2026-02-07 15:25:00] [INFO] [KubyBot] [info:98] ✅ Advanced logger initialized
[2026-02-07 15:25:00] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist
[2026-02-07 15:25:00] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist_monitor
[2026-02-07 15:25:00] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.sendbotmessages
[2026-02-07 15:25:00] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.goodbye
[2026-02-07 15:25:00] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.welcome
[2026-02-07 15:25:00] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.security
[2026-02-07 15:25:00] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.snipe
[2026-02-07 15:25:00] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.scan
[2026-02-07 15:25:00] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.no_link
[2026-02-07 15:25:00] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.blacklist
[2026-02-07 15:25:00] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket
[2026-02-07 15:25:00] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antispam
[2026-02-07 15:25:00] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antiraid
[2026-02-07 15:25:00] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.logs_manager
[2026-02-07 15:25:00] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.rules
[2026-02-07 15:25:00] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket_whitelist
[2026-02-07 15:25:00] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.bug_report
[2026-02-07 15:25:35] [INFO] [KubyBot] [info:98] ✅ Commandes slash synchronisées avec Discord
[2026-02-07 15:25:37] [INFO] [KubyBot] [info:98] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[2026-02-07 15:25:37] [INFO] [KubyBot] [info:98] 📊 Serveurs : 1
[2026-02-07 15:25:37] [DEBUG] [KubyBot] [debug:95] Guild: Omega Kube Bêta Test (ID: 1369669999345537145) - Members: 18
[2026-02-07 15:25:37] [INFO] [KubyBot] [info:98] 📊 Total members across all guilds: 18
[2026-02-07 15:25:37] [INFO] [KubyBot] [info:98] ✅ Bot prêt et opérationnel !
[2026-02-07 15:26:59] [INFO] [KubyBot] [info:98] 🛑 Bot shutdown complete
[2026-02-07 15:27:00] [DEBUG] [KubyBot] [debug:95] Raw APPLICATION_ID: 1390778748097527808
[2026-02-07 15:27:00] [INFO] [KubyBot] [info:98] ✅ APPLICATION_ID loaded successfully: 1390778748097527808
[2026-02-07 15:27:00] [DEBUG] [KubyBot] [debug:95] Discord intents configured: <Intents value=53608191>
[2026-02-07 15:27:00] [DEBUG] [KubyBot] [debug:95] Initializing MyBot class
[2026-02-07 15:27:00] [INFO] [KubyBot] [info:98] MyBot instance created successfully
[2026-02-07 15:27:00] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:27:00] [DEBUG] [KubyBot] [debug:95] Starting __main__.py execution
[2026-02-07 15:27:00] [INFO] [KubyBot] [info:98] 📋 Chargement des variables d'environnement...
[2026-02-07 15:27:00] [DEBUG] [KubyBot] [debug:95] Environment variables loaded
[2026-02-07 15:27:00] [DEBUG] [KubyBot] [debug:95] Token retrieved from environment: ***
[2026-02-07 15:27:00] [INFO] [KubyBot] [info:98] ✅ Token Discord chargé avec succès
[2026-02-07 15:27:00] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:27:00] [DEBUG] [KubyBot] [debug:95] Entering main with args: (), kwargs: {}
[2026-02-07 15:27:00] [INFO] [KubyBot] [info:98] 🔄 Démarrage de la connexion Discord...
[2026-02-07 15:27:00] [DEBUG] [KubyBot] [debug:95] Starting async context manager
[2026-02-07 15:27:00] [INFO] [KubyBot] [info:98] 🔗 Connexion établie avec Discord...
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] 🚀 Démarrage du bot Kuby...
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] ✅ Advanced logger initialized
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist_monitor
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.sendbotmessages
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.goodbye
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.welcome
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.security
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.snipe
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.scan
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.no_link
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.blacklist
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antispam
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antiraid
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.logs_manager
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.rules
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket_whitelist
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.bug_report
[2026-02-07 15:27:01] [INFO] [KubyBot] [info:98] ✅ Commandes slash synchronisées avec Discord
[2026-02-07 15:27:04] [INFO] [KubyBot] [info:98] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[2026-02-07 15:27:04] [INFO] [KubyBot] [info:98] 📊 Serveurs : 1
[2026-02-07 15:27:04] [DEBUG] [KubyBot] [debug:95] Guild: Omega Kube Bêta Test (ID: 1369669999345537145) - Members: 18
[2026-02-07 15:27:04] [INFO] [KubyBot] [info:98] 📊 Total members across all guilds: 18
[2026-02-07 15:27:04] [INFO] [KubyBot] [info:98] ✅ Bot prêt et opérationnel !
[2026-02-07 15:43:08] [INFO] [KubyBot] [info:98] 🛑 Bot shutdown complete
[2026-02-07 15:43:09] [DEBUG] [KubyBot] [debug:95] Raw APPLICATION_ID: 1390778748097527808
[2026-02-07 15:43:09] [INFO] [KubyBot] [info:98] ✅ APPLICATION_ID loaded successfully: 1390778748097527808
[2026-02-07 15:43:09] [DEBUG] [KubyBot] [debug:95] Discord intents configured: <Intents value=53608191>
[2026-02-07 15:43:09] [DEBUG] [KubyBot] [debug:95] Initializing MyBot class
[2026-02-07 15:43:09] [INFO] [KubyBot] [info:98] MyBot instance created successfully
[2026-02-07 15:43:09] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:43:09] [DEBUG] [KubyBot] [debug:95] Starting __main__.py execution
[2026-02-07 15:43:09] [INFO] [KubyBot] [info:98] 📋 Chargement des variables d'environnement...
[2026-02-07 15:43:09] [DEBUG] [KubyBot] [debug:95] Environment variables loaded
[2026-02-07 15:43:09] [DEBUG] [KubyBot] [debug:95] Token retrieved from environment: ***
[2026-02-07 15:43:09] [INFO] [KubyBot] [info:98] ✅ Token Discord chargé avec succès
[2026-02-07 15:43:09] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:43:09] [DEBUG] [KubyBot] [debug:95] Entering main with args: (), kwargs: {}
[2026-02-07 15:43:09] [INFO] [KubyBot] [info:98] 🔄 Démarrage de la connexion Discord...
[2026-02-07 15:43:09] [DEBUG] [KubyBot] [debug:95] Starting async context manager
[2026-02-07 15:43:09] [INFO] [KubyBot] [info:98] 🔗 Connexion établie avec Discord...
[2026-02-07 15:43:10] [INFO] [KubyBot] [info:98] 🚀 Démarrage du bot Kuby...
[2026-02-07 15:43:10] [INFO] [KubyBot] [info:98] ✅ Advanced logger initialized
[2026-02-07 15:43:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist
[2026-02-07 15:43:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist_monitor
[2026-02-07 15:43:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.sendbotmessages
[2026-02-07 15:43:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.goodbye
[2026-02-07 15:43:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.welcome
[2026-02-07 15:43:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.security
[2026-02-07 15:43:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.snipe
[2026-02-07 15:43:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.scan
[2026-02-07 15:43:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.no_link
[2026-02-07 15:43:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.blacklist
[2026-02-07 15:43:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket
[2026-02-07 15:43:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antispam
[2026-02-07 15:43:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antiraid
[2026-02-07 15:43:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.logs_manager
[2026-02-07 15:43:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.rules
[2026-02-07 15:43:10] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket_whitelist
[2026-02-07 15:43:10] [ERROR] [KubyBot] [error:104] ❌ Erreur lors du chargement de commandes.bug_report : Extension 'commandes.bug_report' raised an error: NameError: name 'discord' is not defined
Traceback (most recent call last):
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/ext/commands/bot.py", line 962, in _load_from_module_spec
spec.loader.exec_module(lib) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap_external>", line 995, in exec_module
File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/commandes/bug_report.py", line 27, in <module>
class BugReportModal(discord.ui.Modal, title="Signaler un Bug"):
^^^^^^^
NameError: name 'discord' is not defined
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/bot.py", line 73, in setup_hook
await self.load_extension(extension)
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/ext/commands/bot.py", line 1040, in load_extension
await self._load_from_module_spec(spec, name)
File "/home/gameurpro12/Documents/Mes_projets/Discord_bot/backup_kuby/venv/lib/python3.12/site-packages/discord/ext/commands/bot.py", line 965, in _load_from_module_spec
raise errors.ExtensionFailed(key, e) from e
discord.ext.commands.errors.ExtensionFailed: Extension 'commandes.bug_report' raised an error: NameError: name 'discord' is not defined
[2026-02-07 15:43:10] [INFO] [KubyBot] [info:98] ✅ Commandes slash synchronisées avec Discord
[2026-02-07 15:43:13] [INFO] [KubyBot] [info:98] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[2026-02-07 15:43:13] [INFO] [KubyBot] [info:98] 📊 Serveurs : 1
[2026-02-07 15:43:13] [DEBUG] [KubyBot] [debug:95] Guild: Omega Kube Bêta Test (ID: 1369669999345537145) - Members: 18
[2026-02-07 15:43:13] [INFO] [KubyBot] [info:98] 📊 Total members across all guilds: 18
[2026-02-07 15:43:13] [INFO] [KubyBot] [info:98] ✅ Bot prêt et opérationnel !
[2026-02-07 15:43:53] [INFO] [KubyBot] [info:98] 🛑 Bot shutdown complete
[2026-02-07 15:43:53] [DEBUG] [KubyBot] [debug:95] Raw APPLICATION_ID: 1390778748097527808
[2026-02-07 15:43:53] [INFO] [KubyBot] [info:98] ✅ APPLICATION_ID loaded successfully: 1390778748097527808
[2026-02-07 15:43:53] [DEBUG] [KubyBot] [debug:95] Discord intents configured: <Intents value=53608191>
[2026-02-07 15:43:53] [DEBUG] [KubyBot] [debug:95] Initializing MyBot class
[2026-02-07 15:43:53] [INFO] [KubyBot] [info:98] MyBot instance created successfully
[2026-02-07 15:43:53] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:43:53] [DEBUG] [KubyBot] [debug:95] Starting __main__.py execution
[2026-02-07 15:43:53] [INFO] [KubyBot] [info:98] 📋 Chargement des variables d'environnement...
[2026-02-07 15:43:53] [DEBUG] [KubyBot] [debug:95] Environment variables loaded
[2026-02-07 15:43:53] [DEBUG] [KubyBot] [debug:95] Token retrieved from environment: ***
[2026-02-07 15:43:53] [INFO] [KubyBot] [info:98] ✅ Token Discord chargé avec succès
[2026-02-07 15:43:53] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:43:53] [DEBUG] [KubyBot] [debug:95] Entering main with args: (), kwargs: {}
[2026-02-07 15:43:53] [INFO] [KubyBot] [info:98] 🔄 Démarrage de la connexion Discord...
[2026-02-07 15:43:53] [DEBUG] [KubyBot] [debug:95] Starting async context manager
[2026-02-07 15:43:53] [INFO] [KubyBot] [info:98] 🔗 Connexion établie avec Discord...
[2026-02-07 15:43:54] [INFO] [KubyBot] [info:98] 🚀 Démarrage du bot Kuby...
[2026-02-07 15:43:54] [INFO] [KubyBot] [info:98] ✅ Advanced logger initialized
[2026-02-07 15:43:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist
[2026-02-07 15:43:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist_monitor
[2026-02-07 15:43:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.sendbotmessages
[2026-02-07 15:43:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.goodbye
[2026-02-07 15:43:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.welcome
[2026-02-07 15:43:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.security
[2026-02-07 15:43:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.snipe
[2026-02-07 15:43:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.scan
[2026-02-07 15:43:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.no_link
[2026-02-07 15:43:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.blacklist
[2026-02-07 15:43:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket
[2026-02-07 15:43:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antispam
[2026-02-07 15:43:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antiraid
[2026-02-07 15:43:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.logs_manager
[2026-02-07 15:43:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.rules
[2026-02-07 15:43:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket_whitelist
[2026-02-07 15:43:54] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.bug_report
[2026-02-07 15:43:56] [INFO] [KubyBot] [info:98] ✅ Commandes slash synchronisées avec Discord
[2026-02-07 15:43:58] [INFO] [KubyBot] [info:98] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[2026-02-07 15:43:58] [INFO] [KubyBot] [info:98] 📊 Serveurs : 1
[2026-02-07 15:43:58] [DEBUG] [KubyBot] [debug:95] Guild: Omega Kube Bêta Test (ID: 1369669999345537145) - Members: 18
[2026-02-07 15:43:58] [INFO] [KubyBot] [info:98] 📊 Total members across all guilds: 18
[2026-02-07 15:43:58] [INFO] [KubyBot] [info:98] ✅ Bot prêt et opérationnel !
[2026-02-07 15:52:39] [INFO] [KubyBot] [info:98] 🛑 Bot shutdown complete
[2026-02-07 15:52:40] [DEBUG] [KubyBot] [debug:95] Raw APPLICATION_ID: 1390778748097527808
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ APPLICATION_ID loaded successfully: 1390778748097527808
[2026-02-07 15:52:40] [DEBUG] [KubyBot] [debug:95] Discord intents configured: <Intents value=53608191>
[2026-02-07 15:52:40] [DEBUG] [KubyBot] [debug:95] Initializing MyBot class
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] MyBot instance created successfully
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:52:40] [DEBUG] [KubyBot] [debug:95] Starting __main__.py execution
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] 📋 Chargement des variables d'environnement...
[2026-02-07 15:52:40] [DEBUG] [KubyBot] [debug:95] Environment variables loaded
[2026-02-07 15:52:40] [DEBUG] [KubyBot] [debug:95] Token retrieved from environment: ***
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ Token Discord chargé avec succès
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] 🚀 Lancement du bot Kuby...
[2026-02-07 15:52:40] [DEBUG] [KubyBot] [debug:95] Entering main with args: (), kwargs: {}
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] 🔄 Démarrage de la connexion Discord...
[2026-02-07 15:52:40] [DEBUG] [KubyBot] [debug:95] Starting async context manager
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] 🔗 Connexion établie avec Discord...
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] 🚀 Démarrage du bot Kuby...
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ Advanced logger initialized
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.whitelist_monitor
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.sendbotmessages
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.goodbye
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.welcome
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.security
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.snipe
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.scan
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.no_link
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.blacklist
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antispam
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.antiraid
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.logs_manager
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.modules_security.rules
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.ticket_whitelist
[2026-02-07 15:52:40] [INFO] [KubyBot] [info:98] ✅ Extension chargée : commandes.bug_report
[2026-02-07 15:52:41] [INFO] [KubyBot] [info:98] ✅ Commandes slash synchronisées avec Discord
[2026-02-07 15:52:44] [INFO] [KubyBot] [info:98] 🤖 Bot connecté : Kuby Alpha#6731 (ID : 1390778748097527808)
[2026-02-07 15:52:44] [INFO] [KubyBot] [info:98] 📊 Serveurs : 1
[2026-02-07 15:52:44] [DEBUG] [KubyBot] [debug:95] Guild: Omega Kube Bêta Test (ID: 1369669999345537145) - Members: 18
[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

View file

@ -1,3 +1,4 @@
discord.py>=2.3.0
python-dotenv>=1.0.0
Pillow>=10.0.0
aiohttp>=3.8.0

View file

@ -45,7 +45,52 @@ class KubyLogger:
)
audit_handler.setFormatter(audit_formatter)
self.logger.addHandler(audit_handler)
# GitLab handler for automated error reporting
try:
from utils.gitlab_client import gitlab_client
class GitLabHandler(logging.Handler):
def __init__(self, client):
super().__init__()
self.client = client
self.last_errors = {}
self.cooldown = 3600 # 1 hour cooldown per unique error
def emit(self, record):
if record.levelno >= logging.ERROR:
# Extract message and first line of traceback if available
msg = record.getMessage()
error_key = msg
if record.exc_info:
error_key += str(record.exc_info[1])
current_time = time.time()
if error_key in self.last_errors and current_time - self.last_errors[error_key] < self.cooldown:
return # Skip if same error within cooldown
self.last_errors[error_key] = current_time
# Create issue (Fire and forget, we don't want to block logging)
description = f"**Type:** {record.levelname}\n"
description += f"**Message:** {msg}\n"
description += f"**Source:** {record.name}.{record.funcName}:{record.lineno}\n\n"
if record.exc_info:
description += f"**Traceback:**\n```python\n{traceback.format_exc()}\n```"
title = f"[AUTO] Error: {msg[:50]}..."
loop = asyncio.get_event_loop()
if loop.is_running():
loop.create_task(self.client.create_issue(title, description, labels=["bug", "auto-report"]))
else:
# Fallback if loop is not running (rare for this bot)
pass
gitlab_handler = GitLabHandler(gitlab_client)
gitlab_handler.setLevel(logging.ERROR)
self.logger.addHandler(gitlab_handler)
except Exception as e:
self.logger.error(f"Failed to initialize GitLabHandler: {e}")
def debug(self, message, **kwargs):
self.logger.debug(message, **kwargs)

110
utils/gitlab_client.py Normal file
View file

@ -0,0 +1,110 @@
import aiohttp
import os
import logging
from datetime import datetime, timedelta
from typing import Optional, List
# Use a separate logger to avoid infinite loops if GitLab reporting fails
gitlab_internal_logger = logging.getLogger("GitLabClient")
gitlab_internal_logger.setLevel(logging.INFO)
# We don't add handlers here, it will just log to console through hierarchy or be silent if needed
class GitLabClient:
def __init__(self):
self.token = os.getenv("GITLAB_TOKEN")
self.project_id = os.getenv("GITLAB_PROJECT_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:
parts = self.base_url.split("/")
api_base = "/".join(parts[:3]) # Gets https://gitlab.com
self.api_url = f"{api_base}/api/v4/projects/{self.project_id}/issues"
else:
self.api_url = f"{self.base_url}/projects/{self.project_id}/issues"
async def create_issue(self, title: str, description: str, labels: Optional[List[str]] = None) -> Optional[dict]:
"""
Creates an issue on GitLab.
"""
if not self.token or not self.project_id:
# Use a print or a lower level log to avoid triggering the GitLab logger itself
# which could cause an infinite loop if this were an ERROR log.
if not hasattr(self, '_config_warned'):
print("⚠️ GitLab integration is not configured. GitLab issues will not be created.")
self._config_warned = True
return None
headers = {
"PRIVATE-TOKEN": self.token
}
data = {
"title": title,
"description": description,
"labels": ",".join(labels) if labels else ""
}
async with aiohttp.ClientSession() as session:
try:
async with session.post(self.api_url, headers=headers, data=data) as response:
if response.status == 201:
result = await response.json()
gitlab_internal_logger.info(f"✅ GitLab issue created: {result.get('web_url')}")
return result
else:
error_text = await response.text()
gitlab_internal_logger.error(f"❌ Failed to create GitLab issue: {response.status} - {error_text}")
return None
except Exception as e:
gitlab_internal_logger.error(f"❌ Error connecting to GitLab API: {e}")
return None
async def get_closed_issues(self) -> List[dict]:
"""
Fetches recently closed issues.
"""
if not self.token or not self.project_id:
return []
headers = {"PRIVATE-TOKEN": self.token}
params = {
"state": "closed",
"updated_after": (datetime.now() - timedelta(days=1)).isoformat()
}
async with aiohttp.ClientSession() as session:
try:
async with session.get(self.api_url, headers=headers, params=params) as response:
if response.status == 200:
return await response.json()
else:
error_text = await response.text()
gitlab_internal_logger.error(f"❌ Failed to fetch closed issues: {response.status} - {error_text}")
return []
except Exception as e:
gitlab_internal_logger.error(f"❌ Error connecting to GitLab API: {e}")
return []
async def get_issue(self, issue_iid: int) -> Optional[dict]:
"""
Fetches a specific issue by its internal ID (IID).
"""
if not self.token or not self.project_id:
return None
headers = {"PRIVATE-TOKEN": self.token}
url = f"{self.base_url}/api/v4/projects/{self.project_id}/issues/{issue_iid}"
async with aiohttp.ClientSession() as session:
try:
async with session.get(url, headers=headers) as response:
if response.status == 200:
return await response.json()
else:
return None
except Exception as e:
gitlab_internal_logger.error(f"❌ Error connecting to GitLab API: {e}")
return None
# Instance unique
gitlab_client = GitLabClient()