Créer un bot Discord avec Python [GUIDE COMPLET 2021]

Опубликовано: 15 Февраль 2026
на канале: Docstring
110,549
3.4k

NOUVEAU : Certifie tes compétences avec ton CPF et notre programme TOSA :
https://bit.ly/4dRF2MQ

Dans cette formation d'une heure, je vous montre comment créer un bot Discord de A à Z avec Python.

🔗 Article complet détaillé sur Docstring :
https://www.docstring.fr/blog/creer-u...

🔗 Le code source
https://github.com/ThibH/DocBot

🔗 Le module discord.py sur PyPi :
https://pypi.org/project/discord.py/

🔗 Le module python-dotenv sur PyPi :
https://pypi.org/project/python-dotenv/

🔗 La documentation de discord.py :
https://discordpy.readthedocs.io/en/l...

🔗 Le portail des développeurs de Discord :
  / discord  

🔗 La formation complète Python sur Udemy (+60h de formation)
● https://bit.ly/3iGZu9a

🔖 Les formules d'abonnement à Docstring
● https://www.docstring.fr/checkout/?ut...

👨💻 Apprends Python
● https://www.docstring.fr/formations/?...

📖 Les articles du blog
● https://www.docstring.fr/blog/?utm_so...

🎙Écoute le Podcast
● https://www.docstring.fr/podcast/?utm...

💬 Rejoins le serveur Discord
● https://www.docstring.fr/discord/?utm...

======== CHAPITRES ========
00:00 Introduction
00:10 Les prérequis pour suivre la formation
01:20 Pourquoi créer un bot ?
03:43 La différence entre Application et Bot
06:07 Les prérequis
10:03 Création du bot
15:36 Ajouter le bot à un serveur
18:15 Connecter le bot
21:11 L'événement 'on_ready'
24:42 Réagir à des messages
31:38 Réagir à l'arrivée d'un membre
39:55 Gérer une commande avec le client
43:26 Créer une commande avec un bot
47:47 Masquer le token
52:50 Créer une classe pour le bot
56:50 Aller plus loin