-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:Lavaclient/lavadeno
- Loading branch information
Showing
7 changed files
with
77 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
node_modules/ | ||
|
||
yarn.lock | ||
yarn-error.log | ||
yarn-error.log | ||
|
||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,42 @@ | ||
<img align="center" src="./assets/banner.png" alt="lavadeno banner"> | ||
<h1 align="center">Lavadeno</h1> | ||
<hr /> | ||
<blockquote> | ||
A powerful lavalink client built on the <strong>Deno</strong> Runtime | ||
<p><a href="https://discord.gg/vuJxnYk">Discord Server</a> • <a href="https://github.com/lavaclient/lavadeno">Github</a></p> | ||
</blockquote> | ||
|
||
A powerful lavalink client built on the [Deno](https://deno.land/) Runtime | ||
- **Flexible**: Lavadeno is not restricted to a specific discord library. Meaning you only need a connection to the discord gateway for it to work. | ||
- **Easy-to-Use**: Lavadeno has a neat and user-friendly promise-based api. | ||
- **Lightweight**: Designed to be small and performant, it's a great choice for any sized project. | ||
|
||
|
||
<h2 align="center">Setup</h2> | ||
|
||
- Deno 1.3.x | ||
- Lavalink | ||
- [Official](https://github.com/frederikam/lavalink) | ||
- [With Filters (Unofficial)](https://github.com/melike2d/lavalink/) | ||
- Connection to the Discord Gateway. | ||
|
||
```ts | ||
import { Manager } from "https://deno.land/x/lavadeno/mod.ts"; | ||
|
||
const nodes = [ | ||
{ | ||
id: "main", | ||
host: "localhost", | ||
port: 2333, | ||
password: "youshallnotpass" | ||
} | ||
] | ||
|
||
const manager = new Manager(nodes, { | ||
send(id, payload) { | ||
sendPayloadToDiscord(); | ||
} | ||
}); | ||
``` | ||
|
||
--- | ||
|
||
<p align="center"><a href="https://melike2d.me">melike2d</a> © 2020</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export * from "./src/@types/track.d.ts"; | ||
export * from "./src/@types/player.d.ts"; | ||
export type { Track, TrackInfo, LoadTracksException, LoadTracksResponse, LoadType } from "./src/@types/track.d.ts"; | ||
export type { PlayTrack, PlayerEvent, PlayerEventType, PlayerRequest, PlayerState, PlayerUpdate } from "./src/@types/player.d.ts"; | ||
export * from "./src/api/Socket.ts"; | ||
export * from "./src/api/Player.ts"; | ||
export * from "./src/Manager.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters