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:
parent
ad6600e4f6
commit
3f90cfa339
7 changed files with 166 additions and 4 deletions
14
discord_integration/core/BotClass.py
Normal file
14
discord_integration/core/BotClass.py
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue