Melody is an open-source music bot built with NodeJS and TypeScript. It utilizes Lavalink for audio streaming and Sakulink for handling YouTube links and other music-related functionalities.
- 🎶 Play music from various sources
- 🔊 Support for playlists
- 🎧 Real-time voice channel management
- 🎵 Easy integration with Discord.js and Sapphire
- 🌐 Open-source and actively maintained
Before you begin, ensure you have met the following requirements:
- Node.js (version LTS or higher)
- Lavalink server (refer to Lavalink setup guide)
- Clone the repository
git clone https://github.com/JirayuSrisawat-Github/melody.git
cd melody
- Install dependencies
npm install
- Config by put your token in config.ts
import { NodeOptions } from "sakulink";
export const token: string = "xxx";
export const defaultSearchPlatform: string = "youtube music";
export const defaultVolume: number = 75;
export const nodes: NodeOptions[] = [
{
identifier: "Jirayu_V4",
host: "lavalink.jirayu.net",
port: 13592,
password: "youshallnotpass",
},
];
- Build
npm run build
- Start your bot
npm run start
- Invite the bot to your server using the OAuth2 URL generated in the Discord Developer Portal.
- Use commands to play, pause, skip, and manage your music queue.
/play query:<string>
- Play a song./stop
- Stop the music./skip
- Skip current song.
We welcome contributions! Please read our Contributing Guide for details on how to get started.