Learn Before
Concept

Getting your bot's token

In order to run your bot you first need to get the token for your application. Go to https://discord.com/developers/applications and find your previously created application. Navigate to the "bot" section in the left hand menu and copy the token found under the bot's username.

The token is a very secret key that allows you to control your Discord bot so make sure that no one else has access to it! To ensure that it is safe we will use environmental variables to store the token. This will ensure that your token remains only on your local machine and is not present in plain text once uploaded to a server. Refer to the following child node on how to get environmental variables set up.

0

1

Updated 2021-07-17

Tags

Python Programming Language

Data Science

Learn After