#How to Create a Discord Bot Account In order to work with the Python library and the Discord API, we must first create a Discord Bot account.
Here are the step to creating a Discord Bot account.
-
Make sure you’re logged on to the Discord website.
-
Navigate to the application page.
-
Click on the “New Application” button.
- Give the application a name and click “Create”.
- Go to the “Bot” tab and then click “Add Bot”. You will have to confirm by clicking "Yes, do it!"
Keep the default settings for Public Bot (checked) and Require OAuth2 Code Grant (unchecked).
Your bot has been created. The next step is to copy the token.
This token is your bot's password so don't share it with anybody. It could allow someone to log in to your bot and do all sorts of bad things.
You can regenerate the token if it accidentally gets shared.
How to Invite Your Bot to Join a Server Now you have to get your Bot User into a server. To do this, you should create an invite URL for it.
Go to the "OAuth2" tab. Then select "bot" under the "scopes" section.