Documentation
Setup guides, configuration references, and tips for every bot in the 4PID collection.
Prerequisites
Before setting up any bot, make sure you have the following ready:
- A Discord account and a server where you have administrator permissions
- Basic familiarity with the command line / terminal
- D4PID: Python 3.10+ and FFmpeg
- M4PID & R4PID: Node.js 16+
- A Discord Bot Token (for D4PID) or Discord User Token (for M4PID / R4PID)
- A Groq API Key (for M4PID only)
Installation Overview
All three bots share the same general installation workflow:
- Download the ZIP file from the product page
- Extract the contents to a directory on your server or local machine
-
Install dependencies (
pip install -r requirements.txtornpm install) - Configure environment variables or a config file
- Start the bot
D4PID
Music streaming bot — Python, FFmpeg, YouTube search, queue system
M4PID
AI conversation bot — Node.js, Groq Llama 3, custom personality
R4PID
Bump automation bot — Node.js, live dashboard, Socket.IO
D4PID — Setup Guide
D4PID is a Python-based music bot that streams audio from YouTube into Discord voice channels.
ffmpeg.exe in
bin/ffmpeg/ or add it to your system PATH.
Step-by-Step
- Download and extract D4PID ZIP
-
Open a terminal in the project directory and run:
pip install -r requirements.txt -
Create a Discord Bot at the
Discord Developer Portal:
- Click New Application, name it
- Go to the Bot tab, click Reset Token, then Copy
Keep your token private. Anyone with it has full control of your bot. -
Under OAuth2 → URL Generator:
-
Scopes: check
botandapplications.commands -
Bot Permissions: check
Administrator
-
Scopes: check
-
Create a
.envfile in the project directory:DISCORD_TOKEN=your_token_here -
Start the bot:
py bot.py# or python bot.py
Commands
All commands use Discord's slash command system — no prefix needed:
/play <query>
# Search YouTube and play or queue a song/skip
# Skip the current song/pause
# Pause playback/resume
# Resume playback/stop
# Stop, clear queue, and disconnect
Configuration
D4PID uses a .env file. The only required variable is
DISCORD_TOKEN.
DISCORD_TOKEN=your_token_here
# Required# Optional variables may be added for# default volume, voice channel, etc.
Notes
- The bot stays connected between songs — new tracks can be queued without it leaving the channel.
- Audio streams at 96kbps Opus for low-latency playback.
M4PID — Setup Guide
M4PID is a Node.js-based AI self-bot powered by Groq's Llama 3 model. It responds to mentions and replies with context-aware conversations.
Getting Your Discord User Token
- Open Discord in your browser (not the app)
- Press
F12and go to the Network tab - Send any message in a channel, then filter the requests by
messages - Click a request, find Request Headers, and copy the
Authorizationvalue
Step-by-Step
- Download and extract M4PID ZIP
-
Install dependencies:
npm install -
Create a
.envfile:DISCORD_TOKEN=your_user_token_here
GROQ_API_KEY=your_groq_api_key_here - Configure the bot's personality in
config.js -
Start the bot:
npm start
Configuration
M4PID's behavior is controlled through config.js. Key
options:
systemPrompt
# Defines personality and behaviormodel
# Groq model (default: llama3-70b-8192)maxTokens
# Max response lengthhistoryLimit
# Messages remembered per channelreplyOnly
# true = only respond to mentions/replies (recommended)
24/7 Hosting with PM2
M4PID includes a PM2 configuration for production. To keep it running 24/7:
npm install -g pm2
# Install PM2 globallypm2 start
# Start with auto-restartpm2 stop
# Stop the botpm2 restart
# Restart the botpm2 logs
# View live logspm2 monit
# Monitor dashboardpm2 save
# Save process listpm2 startup
# Auto-start on system boot
R4PID — Setup Guide
R4PID is a Node.js-based bump self-bot with a browser dashboard for real-time monitoring and control. It monitors Discord channels for FIBO bot bump reminders and responds automatically with randomized delays.
Getting Your Discord User Token
- Open Discord in your browser (not the app)
- Press
F12and go to the Network tab - Send any message in a channel, then filter the requests by
messages - Click a request, find Request Headers, and copy the
Authorizationvalue
Step-by-Step
- Download and extract R4PID ZIP
-
Install dependencies:
npm install -
Start the bot and dashboard:
npm start -
Open the dashboard in your browser:
http://localhost:3000 - Go to Configuration, enter your Discord User Token and one or more Bump Channel IDs, then click Save Changes
- Switch to the Dashboard tab and click Start Bot
R4PID will begin watching for FIBO reminders and bump automatically. All settings are stored in your browser's localStorage, so they persist between sessions.
Configuration
All settings are managed from the dashboard's Configuration panel:
- Discord User Token — Your Discord account token for authentication
- Bump Channel IDs — One or more channel IDs the bot should watch and bump in
- Min Delay (seconds) — Minimum wait time before sending a bump
- Max Delay (seconds) — Maximum wait time before sending a bump
Dashboard Features
The dashboard runs locally and updates in real-time via Socket.IO. You can monitor:
- Live Status — Whether the bot is running or stopped
- Bump Counter — Total bumps performed since starting
- Activity Log — Timestamped events displayed in the dashboard
- Start / Stop Controls — Control the bot from the dashboard
Project Structure
R4PID/├── bot.js
# Core bot logic and Discord client├── server.js
# Express server and Socket.IO setup└── public/ ├── index.html
# Dashboard interface ├── css/ │ └── styles.css └── js/ └── app.js
# Client-side dashboard logic
Stack
Runtime Node.jsServer ExpressDiscord discord.js-selfbot-v13Realtime Socket.IOFrontend Vanilla JS