Valarify Music Bot is a feature-rich Discord music bot that allows users to play, download, and manage music directly in their Discord voice channels. With a wide range of commands, users can easily interact with music from YouTube and local sources.
- Download audio from YouTube
- Play music from YouTube URLs
- Play local music files
- Advanced queue management
- Multiple playback controls
Before setting up the bot, ensure you have the following installed:
- Python 3.8+
- FFmpeg
- pip (Python package manager)
- discord.py[voice]
- python-dotenv
- yt-dlp
- asyncio
- python-dotenv
git clone https://github.com/thefznkhan/ValarifyBot.git
cd ValarifyBotpython -m venv venv
source venv/bin/activate # On Windows, use `venv\Scripts\activate`pip install -r requirements.txt- Windows: Download from FFmpeg Official Site and add to PATH
- macOS:
brew install ffmpeg - Linux:
sudo apt-get install ffmpeg
- Go to the Discord Developer Portal
- Create a new application
- Navigate to the "Bot" section and create a bot
- Copy the bot token
Create a .env file in the project root:
BOT_TOKEN=your_discord_bot_token_here
!join: Make the bot join your voice channel!leave: Make the bot leave the voice channel!play <YouTube URL>: Play a song from YouTube!download_audio <YouTube URL>: Download and queue a song!play_local <filename>: Play a local music file
!queueor!q: Show current music queue!nextor!skip: Skip to the next song!previous: Go back to the previous song!clear: Stop music and clear queue!pauseor!stop: Pause current song!resume: Resume paused song
ValarifyBot/
│
├── bot.py # Main bot configuration
├── .env # Environment variables
├── requirements.txt # Python dependencies
│
├── cogs/
│ └── music.py # Music-related commands
│
├── utils/
│ └── queue.py # Music queue management
│
└── music/ # Local music storage
- Ensure bot has proper permissions in Discord
- Check that FFmpeg is correctly installed
- Verify all dependencies are installed
- Check Discord bot token is correct
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE for more information.
Faizan Khan - fkhan20040@gmail.com
Project Link: https://github.com/thefznkhan/ValarifyBot