[!WARNING]
Support for Lavalink Version 3 is planned, but not confirmed to be done.
Table of Contents
-
About
-
Getting Started
- Example Usage
- Contributing
- License
About
Seamlessly connect to LavaLink nodes for high-quality audio streaming in your applications. HarmonyLink offers a reliable and easy-to-use interface, perfect for building music bots and audio applications with superior performance.
(back to top)
Demo:
(back to top)
Getting Started
Here is how to install HarmonyLink on your project.
Installation
npm install harmonylink
yarn add harmonylink
(back to top)
Example Usage
import { DJSLibrary } from "HarmonyLink";
import { Client } from "discord.js"
const client = new Client();
const config: HarmonyLinkConfiguration = {
nodes: [
{
name: "Example Node",
host: "example.com",
port: 2333,
password: "youshallnotpass",
secure: false
}
]
library: new DJSLibrary(client),
};
const HarmonyLink = new HarmonyLink(config)
await HarmonyLink.createPlayer()
For more examples, please refer to the Documentation
(back to top)
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement".
Don't forget to give the project a star! Thanks again!
- Fork the Project
- 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
(back to top)
License
Distributed under the MIT License. See LICENSE
for more information.
(back to top)