Discord Bot Examples (DBE) is a repository containing well-documented and easy-to-learn examples involving the use of discord.py library.
A more organized version of the doc-strings can be found on the DBE documentation: https://dbe.readthedocs.io/en/latest/ (not ready yet!)
Welcome to DBE! Have you ever wondered how to create your own discord bot? Here you can learn to create a personalized discord bot from scratch. DBE utilizes the programming language Python and the discord.py library
- Help new discord developers start using the discord.py API
- Step by step guide programmers through developing a working discord bot
- Give examples of various functionalities that discord.py is capable of
- Address the common FAQ regarding discord.py
Continue to Fist Step when you're ready to begin.
- Go to Discord Developer Page and login or register an Discord User Account (you can login with your personal discord account)
- Go to My Apps
- Click on New App
- Fill in "App Name" with your bot's name (this will be your bot name, it cannot be changed)
- Fill in the optional "App Description" with the description and upload a bot avatar for "App Icon"
- Click on "Create App" (note: All previously added details are changeable)
- Go to My Apps and select the bot you just created
- Scroll down to the "Bot" section, click "Create a Bot User", and conform your choice ("click Yes, do it!")
- Click on the check mark for "Public Bot"
- Click on "Token: click to reveal", keep note of the generated token (DO NOT SHARE THE TOKEN WITH ANYONE)
- You're done at creating the bot!
- Go to the Python Download Page and download a version of Python 3
- Follow the installation setup (if you're on Windows, check "add python to PATH" in the setup script)
- Python is now installed on your system
Choose a version of discord.py, there are currently 2 major versions, rewrite (v1.0) and async (v0.16.x).
- Rewrite is a newly developed version of discord.py, it's fully usable but it's still in active development
- Async is the stable version of discord.py
- If you are uncertain about which version to choose, rewrite has more functionalities than async
Rewrite and async is not compatible.
After you chose the version you want to use, go to the directory in this GitHub repo with the version name.
The rest of the dependencies installation tutorial will be in the README.rtf
of that directory.
The rest of the introduction will continue in the README.rst
of the rewrite or async directories.
Discord Bot Examples (DBE) is not affiliated in any way with the discord.py library or the development of discord.py. DBE is an example/tutorial repository developed by Taku. Read the LICENSE file for more information.