Merge branch 'dev' into 'main'
Correction des derniers bugs recensés See merge request Omega_Kube/kuby!8
This commit is contained in:
commit
7fa2b1819a
2 changed files with 3 additions and 8 deletions
|
|
@ -251,17 +251,11 @@ class BugReport(commands.Cog):
|
||||||
app_commands.Choice(name="Haute", value="High"),
|
app_commands.Choice(name="Haute", value="High"),
|
||||||
app_commands.Choice(name="Urgente", value="Urgent"),
|
app_commands.Choice(name="Urgente", value="Urgent"),
|
||||||
])
|
])
|
||||||
async def signaler_bug(self, interaction: discord.Interaction, priority: app_commands.Choice[str], mot_de_passe: str):
|
async def signaler_bug(self, interaction: discord.Interaction, priority: app_commands.Choice[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
|
|
||||||
await interaction.response.send_modal(BugReportModal(priority))
|
await interaction.response.send_modal(BugReportModal(priority))
|
||||||
|
|
||||||
@app_commands.command(name="suggerer_fonctionnalite", description="Proposer une nouvelle fonctionnalité pour le bot")
|
@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):
|
async def suggerer_fonctionnalite(self, interaction: discord.Interaction):
|
||||||
if mot_de_passe != "01thisma":
|
|
||||||
await interaction.response.send_message("❌ Mot de passe incorrect.", ephemeral=True)
|
|
||||||
return
|
|
||||||
await interaction.response.send_modal(FeatureSuggestionModal())
|
await interaction.response.send_modal(FeatureSuggestionModal())
|
||||||
|
|
||||||
async def setup(bot):
|
async def setup(bot):
|
||||||
|
|
|
||||||
|
|
@ -3,3 +3,4 @@ python-dotenv>=1.0.0
|
||||||
Pillow>=10.0.0
|
Pillow>=10.0.0
|
||||||
aiohttp>=3.8.0
|
aiohttp>=3.8.0
|
||||||
flask>=3.0.0
|
flask>=3.0.0
|
||||||
|
requests>=2.31.0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue