Install Local

Want Support Related The Product? Click Here To Join Discord or Click Here To Mail Us!

💻 Installation on Local / VPS / Other Hosting

  1. Clone or Download the Project

    git clone https://github.com/YOUR_REPO/discord-code-bot.git
    cd discord-code-bot
  2. Install Dependencies

    pip install -r requirements.txt
  3. Configure the Bot

    • Open bot.py and replace placeholders:

      • YOUR_BOT_TOKEN_HERE → Your bot token

      • YOUR_GUILD_ID → Your server ID

      • YOUR_CODES_CHANNEL_ID → Channel ID for codes

      • YOUR_LOG_CHANNEL_ID → Channel ID for logs

    ⚡ Alternatively, you can store these values in a .env file and load them with python-dotenv.

  4. Run the Bot

    python bot.py
  5. Keep it Running (for VPS or dedicated servers)

    • Use screen or tmux to keep it running in the background:

      screen -S discordbot
      python bot.py

      (Press CTRL + A + D to detach the session.)

Last updated