Setup Guide
Follow these steps to get your bot running. No experience needed!
Download Python
Python is the programming language that powers your bot. You need to install it first.
Download PythonRun the Installer
Open the downloaded file. On the first screen, you'll see a checkbox at the bottom.
- Check "Add Python to PATH"
- Click "Install Now" (not Customize)
- Wait for it to finish
- Click "Close" when done
Verify Installation
Open a terminal to check Python installed correctly:
Type this command and press Enter:
> python --version
You should see something like Python 3.12.x. If you see an error, restart your computer and try again.
What are Libraries?
Libraries (also called "packages") are pre-built code that adds features to Python. Your bot needs the discord.py library to talk to Discord.
Think of it like apps on your phone โ Python is the phone, and libraries are the apps you install on it.
Open a Terminal
You install libraries using the terminal (Command Prompt).
- Press Win + R on your keyboard
- Type cmd and press Enter
- A black window will open โ this is your terminal
Install discord.py
Copy and paste this command into the terminal, then press Enter:
> pip install discord.py
Wait until you see Successfully installed. This may take a minute.
How pip Works (Good to Know)
pip is Python's package manager. It downloads and installs libraries for you. Here are some useful commands:
> pip install package_name
> pip uninstall package_name
> pip list
pip list shows all installed libraries โ handy if you want to check what's already installed.
Go to the Discord Developer Portal
Open this link in your browser:
https://discord.com/developers/applications
Log in with your Discord account.
Create a New Application
- Click the "New Application" button (top right)
- Give it any name (e.g. "Nuke Bot")
- Agree to the Terms of Service
- Click "Create"
Create the Bot & Get Token
- Click "Bot" in the left sidebar
- Click "Reset Token" and confirm
- Click "Copy" to copy your bot token
- Paste it into the Bot Token field above
Enable Required Intents
Still on the Bot page, scroll down and enable these toggles:
- Presence Intent
- Server Members Intent
- Message Content Intent
Click "Save Changes" at the bottom.
Invite the Bot to Your Server
- Click "OAuth2" in the left sidebar
- Under "OAuth2 URL Generator", check "bot"
- Under "Bot Permissions", check "Administrator"
- Copy the generated URL at the bottom
- Open the URL in your browser & select your server
- Click "Authorize"
Save Your bot.py File
After generating the bot above, the bot.py file will download to your computer. Save it somewhere easy to find, like your Desktop or a new folder.
Open Terminal in the Bot Folder
You need to navigate your terminal to the folder where bot.py is saved.
Easiest way (Windows):
- Open the folder containing bot.py in File Explorer
- Click the address bar at the top
- Type cmd and press Enter
- A terminal opens in that exact folder!
Or use cd command:
> cd C:\MyBot
Run the Bot
Type this command and press Enter:
> python bot.py
If everything is set up correctly, you'll see:
Starting Nuke Bot...
==================================================
Bot is online as YourBot#1234
Prefix: .
Command: .nuke
==================================================
Troubleshooting
Common issues and how to fix them:
"ModuleNotFoundError: No module named 'discord'"
You didn't install discord.py. Run:
> pip install discord.py
"'python' is not recognized"
Python isn't on your PATH. Try py bot.py instead, or reinstall Python with the PATH option checked.
"Improper token has been passed"
Your bot token is wrong. Go back to the Developer Portal, reset the token, and paste the new one into the builder.
Bot is online but commands don't work
Make sure you enabled Message Content Intent in the Developer Portal (Bot โ Privileged Gateway Intents).