Activity (Process)

Getting your Discord bot's token

To run your bot, you first need its token. Go to https://discord.com/developers/applications and open the application you created earlier. Select the "Bot" section in the left-hand menu and copy the token shown under the bot's username. This token is a secret key that grants full control of your Discord bot, so never share it or store it in plain text. For safety, keep it in an environmental variable so it stays on your local machine and is not exposed once your code is uploaded to a server. See the child node on setting up environmental variables for how to do this.

0

1

Updated 2026-07-20

Tags

Python Programming Language

Data Science