diff --git a/commandes/bug_report.py b/commandes/bug_report.py index 3504473..5d0d7b5 100644 --- a/commandes/bug_report.py +++ b/commandes/bug_report.py @@ -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): diff --git a/requirements.txt b/requirements.txt index fe0a75a..98b9f13 100755 --- a/requirements.txt +++ b/requirements.txt @@ -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