Implement ProtonDB command integration in Discord bot

- Replaced the deprecated ProtonDB command handling with a new slash command and context menu for improved user experience.
- Updated moderation command descriptions to reflect the new ProtonDB functionalities.
- Introduced a new module for ProtonDB interactions, enhancing the bot's capability to search and display game compatibility information.
This commit is contained in:
2026-05-03 14:48:16 +02:00
parent 2b8b725bbb
commit f901db1a7d
3 changed files with 138 additions and 102 deletions
+3 -3
View File
@@ -910,9 +910,9 @@ async def handle_staff_help_command(message: Message, bot):
if ConfigurationHelper().getValue('proton_db_enable_enable'):
public_commands.append(
"**🎮 ProtonDB**\n"
"• `!protondb nom du jeu` ou `!pdb nom du jeu`\n"
"Recherche un jeu sur ProtonDB pour vérifier sa compatibilité Linux\n"
"Ex: `!pdb Elden Ring`"
"• `/protondb` — recherche par nom de jeu\n"
"• Clic droit sur un message → Applications → **Rechercher sur ProtonDB**\n"
"Ex. `/protondb` avec le paramètre *jeu* : Elden Ring"
)
from database.models import Commande