déplacement du chargement des extensions
This commit is contained in:
parent
ce601feb40
commit
d579d0e1e3
1 changed files with 9 additions and 8 deletions
17
main.py
17
main.py
|
@ -9,17 +9,18 @@ from tokens import token_discord as token
|
|||
|
||||
client = commands.Bot(command_prefix = ".", case_insensitive = True, intents = discord.Intents.all())
|
||||
|
||||
print("Chargement des extensions & librairie...")
|
||||
client.load_extension("cogs.help")
|
||||
client.load_extension("cogs.utils")
|
||||
client.load_extension("cogs.internet")
|
||||
client.load_extension("cogs.music")
|
||||
client.load_extension("cogs.games")
|
||||
client.load_extension("cogs.fun")
|
||||
client.load_extension("cogs.autopublish")
|
||||
|
||||
@client.event
|
||||
async def on_connect():
|
||||
print(f"Connecté avec le token : {token}.")
|
||||
print("Chargement des extensions & librairie...")
|
||||
client.load_extension("cogs.help")
|
||||
client.load_extension("cogs.utils")
|
||||
client.load_extension("cogs.internet")
|
||||
client.load_extension("cogs.music")
|
||||
client.load_extension("cogs.games")
|
||||
client.load_extension("cogs.fun")
|
||||
client.load_extension("cogs.autopublish")
|
||||
|
||||
@client.event
|
||||
async def on_ready():
|
||||
|
|
Reference in a new issue