Tune-Tastic is a Discord bot designed to bring music to your server. With simple commands, you can play YouTube videos, create playlists, and manage your music queue. This bot enhances the audio experience for all server members, making it easy to listen to your favorite tunes together.
- Play Music: Play YouTube videos directly in your Discord server.
- Add to Playlist: Add videos to a playlist for continuous playback.
- Manage Playback: Skip to the next or previous video, or clear the playlist entirely.
- Queue Display: View the current music queue.
- Help Command: Display a list of available commands.
- !play [YouTube video URL or search query]: Play a video or add it to the queue.
- !add [YouTube video URL or search query]: Add a video to the playlist.
- !next: Play the next video in the playlist.
- !prev: Play the previous video in the playlist.
- !clear: Clear the current playlist.
- !queue: Display the current music queue.
- !help: Show this help message.
The project folder structure is organized as follows:
TUNE-TASTIC
├── src
│ ├── commands
│ │ ├── add.js
│ │ ├── clear.js
│ │ ├── commandHandler.js
│ │ ├── help.js
│ │ ├── next.js
│ │ ├── play.js
│ │ ├── previous.js
│ │ └── queue.js
│ ├── utils
│ │ ├── isURL.js
│ │ ├── playlistManager.js
| |- index.js
├── .env
├── package.json
- Node.js: JavaScript runtime for building the bot.
- Discord.js: Library for interacting with the Discord API.
- @discordjs/voice: Library for handling audio in Discord.
- dotenv: Module to load environment variables.
- play-dl: Module to handle YouTube playback.
- yt-search: Library for searching YouTube videos.
To set up and run the Tune-Tastic bot, follow these steps:
git clone https://github.com/carpodok/tune-tastic.git
cd tune-tastic
npm install
Create a .env file in the root directory and add your Discord bot token:
CLIENT_TOKEN=your_discord_bot_token
To start the bot, use the following command:
npm start
For development purpose with live reload, use:
npm run dev
Feel free to submit issues and enhancement requests.
This project is licensed under the MIT License.