Ajout des commandes de gestion du niveau, d'une logique XP, et de nouvelles fonctionnalités bot dans discord_integration.

This commit is contained in:
mrtoine 2025-12-18 14:38:31 +01:00
parent ad6600e4f6
commit 3f90cfa339
7 changed files with 166 additions and 4 deletions

View file

@ -0,0 +1,14 @@
import discord
from discord import app_commands
intents = discord.Intents.default()
intents.members = True
intents.message_content = True
class Bot(discord.Client):
def __init__(self, *, intents: discord.Intents):
super().__init__(intents=intents)
self.tree = app_commands.CommandTree(self)
async def setup_hook(self):
await self.tree.sync()