

Go back to the OAuth2 tab, and click on Bot, then below, check all the permissions you want to have. Click, Yes, do it.įrom here, you're gonna need the token, so go ahead and click on copy, and keep it somewhere for now until we use it.

Now, it should automatically redirect you to your bot page. Here you are going to log in with your account, and click on New Application on the top right. Head back to the browser, and go to the Discord developer portal. Now you are ready to write your Discord bot! #Get your Bot token You can follow the pip docs here to install it correctly. If you run into any issues, make sure pip is installed and set up correctly.

This will fetch the latest version of both packages from PyPI. Python3 -m pip install -U discord.py python-dotenv
