Discord bot project under development. Kaam kinda bhari rn tho fr icl
A feature-rich Discord music bot built with discord.py and wavelink that allows users to play music in voice channels.
- Play music from various sources
- Queue management
- Volume control
- Skip, pause, and resume functionality
- Slash commands support
- Python 3.8 or higher
- Java 11 or higher (for Lavalink server)
- A Discord bot token
- A Discord application with bot permissions
- Clone this repository:
git clone <repository-url>
cd <repository-name>- Install Python dependencies:
pip install -r requirements.txt- Create a
.envfile in the root directory with the following content:
DISCORD_CLIENT_ID=your_discord_client_id
DISCORD_CLIENT_TOKEN=your_discord_bot_token
- Download and set up Lavalink:
- The repository includes Lavalink.jar and
application.yml - Make sure Java 11 or higher is installed
- The Lavalink server will run on port 4400
- The repository includes Lavalink.jar and
- Start the Lavalink server:
java -jar Lavalink.jar- In a separate terminal, start the Discord bot:
python bot.pyThe bot uses slash commands. Here are the main commands:
/play <query>- Play a song or add it to the queue/skip- Skip the current song/stop- Stop playing and clear the queue/pause- Pause the current song/resume- Resume the paused song/queue- Show the current queue/volume <0-100>- Adjust the volume
├── bot.py # Main bot file
├── cogs/ # Command modules
│ └── music.py # Music-related commands
├── Lavalink.jar # Lavalink server
├── application.yml # Lavalink configuration
├── requirements.txt # Python dependencies
└── .env # Environment variables (create this)
- discord.py >= 2.3.2
- python-dotenv >= 1.0.0
- wavelink >= 3.2.0
Feel free to submit issues and enhancement requests!
This project is licensed under the MIT License - see the LICENSE file for details.