FIRST INSTALL (LINUX)

First time setting things up?

šŸ“Œ 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

  • 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:

apt update && apt upgrade -y
apt install -y python3 python3-pip python3-venv screen
pip3 install --upgrade pip

Now install all required Python modules:

pip3 install disnake mysql-connector-python requests pytz matplotlib

========================================================================

šŸ“Œ Step 6: Start the Bot āž” Start a screen session and run your bot:

screen -S BOTNAME python3 bot.py

āž” The bot is now running in the background! āž” To detach from the screen: CTRL + A, then D āž” To reattach the session: screen -r BOTNAME

šŸŽ‰ Your bot is now online and running 24/7! šŸš€ šŸ’¬ Need help? Feel free to open a ticket

Last updated