Merge branch 'dev' into 'main'

Correction des derniers bugs recensés

See merge request Omega_Kube/kuby!8
This commit is contained in:
Lucas Durand 2026-03-14 22:52:24 +01:00
commit 7fa2b1819a
2 changed files with 3 additions and 8 deletions

View file

@ -251,17 +251,11 @@ class BugReport(commands.Cog):
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], mot_de_passe: str):
if mot_de_passe != "01thisma":
await interaction.response.send_message("❌ Mot de passe incorrect. Vous n'êtes pas autorisé à signaler un bug.", ephemeral=True)
return
async def signaler_bug(self, interaction: discord.Interaction, priority: app_commands.Choice[str]):
await interaction.response.send_modal(BugReportModal(priority))
@app_commands.command(name="suggerer_fonctionnalite", description="Proposer une nouvelle fonctionnalité pour le bot")
async def suggerer_fonctionnalite(self, interaction: discord.Interaction, mot_de_passe: str):
if mot_de_passe != "01thisma":
await interaction.response.send_message("❌ Mot de passe incorrect.", ephemeral=True)
return
async def suggerer_fonctionnalite(self, interaction: discord.Interaction):
await interaction.response.send_modal(FeatureSuggestionModal())
async def setup(bot):

View file

@ -3,3 +3,4 @@ python-dotenv>=1.0.0
Pillow>=10.0.0
aiohttp>=3.8.0
flask>=3.0.0
requests>=2.31.0