FIRST INSTALL (LINUX)
First time setting things up?
Last updated
First time setting things up?
Last updated
Step 1: Download the Bot Files
ā” You will receive the bot files (bot.py
, config.py
, etc.).
ā” Extract the files on your PC.
========================================================================
Step 2: Upload the Bot Files to Your Server
ā” Use WinSCP (or scp
via command line) to upload the bot files to your server.
ā” Place the files inside /home/yourbot/
(or any directory you prefer).
========================================================================
Step 3: Create a Discord Bot in the Developer Portal
Go to .
Click "New Application", enter a name, and click "Create".
Go to Installation > Open the Install link dropdown > Select None > Confirm.
Go to Bot > Deselect both Public Bot points > select all Privileged Gateway Intents > Confirm.
Copy the Bot Token (You will need this for config.py
).
Go to OAuth2 > URL Generator, select "bot" and "applications.commands".
Below that, select "Administrator" and copy the invite link.
Open the link and add the bot to your server.
========================================================================
Step 4: Edit config.py
ā” Open config.py
using Visual Studio Code (VSC) or nano
:nano /home/yourbot/config.py
ā” Replace Token, GuildID, and other settings as needed.
Save: CTRL + X
, then Y
, then ENTER
.
========================================================================
Step 5: Install Required Software & Dependencies Run the following command to install everything needed for your bot:
Now install all required Python modules:
========================================================================
ā” The bot is now running in the background!
ā” To detach from the screen:
CTRL + A
, then D
ā” To reattach the session:
screen -r BOTNAME
Step 6: Start the Bot ā” Start a screen session and run your bot:
Your bot is now online and running 24/7! Need help? Feel free to open a