# simple-musicbot.djs

> Simple Music JS Created for Discord Bots

Latest version **0.0.7** (published 2020-11-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-musicbot.djs
pnpm add simple-musicbot.djs
yarn add simple-musicbot.djs
bun add simple-musicbot.djs
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.7 |
| Published | 2020-11-06 |
| First published | 2020-11-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 22.2 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Kino#7916 |
| Maintainers | kino-leref-abandoned-child |
| Keywords | node, npm, music, discordmusic |

## Links

- npm: https://www.npmjs.com/package/simple-musicbot.djs
- Repository: https://github.com/Kino7916/simplified-musicbot
- Homepage: https://github.com/Kino7916/simplified-musicbot#readme
- Issues: https://github.com/Kino7916/simplified-musicbot/issues
- npm.io page: https://npm.io/package/simple-musicbot.djs

## Dependencies (7)

- [ffmpeg](https://npm.io/package/ffmpeg.md) 0.0.4
- [yt-search](https://npm.io/package/yt-search.md) ^2.4.2
- [ytdl-core](https://npm.io/package/ytdl-core.md) ^4.0.3
- [discord.js](https://npm.io/package/discord.js.md) ^12.4.1
- [ffmpeg-static](https://npm.io/package/ffmpeg-static.md) ^4.2.7
- [@discordjs/opus](https://npm.io/package/@discordjs/opus.md) ^0.3.3
- [format-duration](https://npm.io/package/format-duration.md) ^1.3.1

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.0.7 (latest) — 2020-11-06
- 0.0.6 — 2020-11-05
- 0.0.5 — 2020-11-05
- 0.0.4 — 2020-11-05
- 0.0.3 — 2020-11-05
- 0.0.2 — 2020-11-05

## README

# simple-musicbot.djs
A simple Music JS for Discord Music Bots
### Simple, no need to be complicated.

## How to use? Simple!
#### Install using NPM Package
```npm install simple-musicbot.djs```

#### Start operating your bot by Login in to Discord
```js
const simple-music-bot = require('simple-musicbot.djs')
const bot = new simple-music-bot.Bot({token: "TOKEN", prefix: "!", RespondBot: false}) // RespondBot is to decide if the bot will respond to Bots or no
```
# Availabe Functions
- play(song name, download rate, cookie) Cookie Needed, Your bot could get status Code 429 Error.
- skip() Skip the current to play the next song
- queue() Shows a list of songs in line
- nowplaying() Shows the current Playing Song
- remove(number) Removes a song from the queue
- join() Order the bot to join the Voice Channel
- leave() Order the bot to leave the Voice Channel
- volume(number) Change the current volume of song
- loop() Repeats the current Song to play again after it ends
- stop() Pause the current song from playing
- resume() Resume the current paused song
# How to use the Functions? Simple!
```js
// The code before
bot.onMessage()
bot.command({name:"play", aliases:["play"], code: (client, message, args) => { // We provided client, message, args to use for creating your awesome command
bot.play("Tokyovania", 200) // You can add cookie if you don't want to get status Code 429, if that happens you need to wait 3-5 days for it to be able to use again.
}})
```
## How to get Youtube Cookie
- Navigate to YouTube in a web browser
- Open up dev tools (opt+cmd+j on mac)
- Go to the network tab
- Click on a request on the left
- Scroll down to "Request Headers"
- Find the "cookie" header and copy its entire contents
- Source how to get cookie was from [here](https://github.com/fent/node-ytdl-core/blob/master/example/cookies.js)
# Discord Server
[Join our Server](https://discord.gg/wSpn8Bs7uh)

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