Contents
In this tutorial we will be using discord.py, a library which allows us to interact with the Discord API in Python. We’ll be using Python 3.6.5 in this tutorial.
Checkout this video:
Introduction
Discord is a chatting software for gamers. It’s similar to Slack and can be used for chatting, voice and video calls, and sharing files. You can use it on your phone, computer, or gaming console.
Discord bots are small programs that you can write in Python that will automatically do tasks for you. For example, you could write a bot that welcome new members to your Discord server, or a bot that posts updates about your game.
There are two ways to make a Discord bot: using the online IDE (Integrated Development Environment) or using the command line interface. The online IDE is easier to use, but the command line interface is more powerful.
##Heading: Using The Online IDE
##Expansion:
1. Go to the Discord Developer Portal: https://discordapp.com/developers/applications/
2. Log in with your Discord account.
3. Click “Create an application”.
4. Enter an name for your application and click “Create”.

5. On the next page, click “Bot” on the left hand side menu.

6 .Click “Add Bot”.
.
Once you have installed the CLI, you can create a new Heroku application by running the following command:
heroku create
This will create a new folder in your current directory called “heroku” with all of the files needed to run your bot on Heroku. You can then push your code to Heroku with the following command:
git push heroku master
Your bot should now be up and running on Heroku!
Adding Your Bot to Your Discord Server
Before we get to the good stuff, we need to make sure our bot is squared away and ready to go. To do this, we need to add it to our Discord server.
To do this, simply click on the “Add Bot” button on your application page, and select your server from the dropdown menu. Once you’ve done this, your bot should appear online in your server!
Common Commands for Your Bot
Discord bots can make life a lot easier for users of the gaming-centric online chat application. Not only can bots reduce the amount of tedious work that needs to be done on Discord, but they can also help you moderate your server and keep it running smoothly.
If you’re thinking about creating a Discord bot, you’ll need to know how to use the Discord API andAgreeing to the Developer Agreement and Creating a Bot Account are required in order to create a bot for Discord. After that, you’ll need to choose a programming language for your bot. While there are many different languages that can be used to create a Discord bot, we’ll be using Python in this tutorial.
Once you’ve chosen and installed the language of your choice, you’ll need to install the discord.py library in order to communicate with the Discord API. With that done, you should have everything you need to get started!
Now that we have everything set up, let’s go over some of the most common commands that you’ll use with your Discord bot. These commands will allow you to do things like:
-Set up automated messages when people join or leave your server
-Send messages to specific channels or users
-Respond to user commands
-Create profile cards for users on your server
-And much more!
Conclusion
This is it! You have now learned how to make a Discord bot in Python. We hope that this guide has been helpful to you and that you can now go out and make some amazing discord bots of your own. If you have any questions or comments, feel free to leave them below.