# divish

> An easy lavalink client base on erelajs.

Latest version **1.2.4** (published 2022-07-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install divish
pnpm add divish
yarn add divish
bun add divish
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.4 |
| Published | 2022-07-09 |
| First published | 2022-07-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 51 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ronstufer |
| Maintainers | ronstufer |
| Keywords | divish |

## Links

- npm: https://www.npmjs.com/package/divish
- Repository: https://github.com/ronstufer/divish
- Issues: https://github.com/ronstufer/divish
- npm.io page: https://npm.io/package/divish

## Dependencies (3)

- [ws](https://npm.io/package/ws.md) ^8.8.0
- [petitio](https://npm.io/package/petitio.md) ^1.4.0
- [@discordjs/collection](https://npm.io/package/@discordjs/collection.md) ^0.7.0

## Recent versions

- 1.2.4 (latest) — 2022-07-09
- 1.2.3 — 2022-07-09
- 1.2.1 — 2022-07-09
- 1.2.0 — 2022-07-09
- 1.1.2 — 2022-07-09
- 1.2.2 — 2022-07-09
- 1.0.2 — 2022-07-03
- 1.0.1 — 2022-07-03
- 0.0.2 — 2022-07-03
- 0.0.1 — 2022-07-02

## README

# 📦 Divish

# example for discord.js
```js
const { Manager } = require("divish");

client.music = new Manager({
nodes: [{
host: "localhost",
port: 2333, 
password: "youshallnotpass",
secure: false
}],
send(id, payload) {
    let guild = client.guilds.cache.get(id);
    if (guild) guild.shard.send(payload);
  },
});

const music = client.music;
music.on("nodeConnect", node => console.log(`Node ${node.options.identifier} connected`))
music.on("nodeError", (node, error) => console.log(`Node ${node.options.identifier} had an error: ${error.message}`))
music.on("trackStart", (player, track) => {
client.channels.cache.get(player.textChannel)?.send(`NowPlaying ${track.title}`);
})
music.on("queueEnd", (player) => {
client.channels.cache.get(player.textChannel)?.send("Queue has ended.");
});
```

# Spotify plugin
[plugin](https://www.npmjs.com/package/divish-avance)

# notice
This package is base on erelajs but provide more features. so you can use it as advance version of erelajs

# update
[+] Fix voice lag.
[+] Add typescript options.
[+] YouTube music search is available.


made by ronstufer with 💖 and dedication.

---
_Source: https://npm.io/package/divish · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
