Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/misa198/misa-bot-discord

Play Music in Discord.
https://github.com/misa198/misa-bot-discord

chatbot discord-bot discord-js nodejs soundcloud typescript

Last synced: 3 months ago
JSON representation

Play Music in Discord.

Awesome Lists containing this project

README

        

# Misabot




Play Music in Discord

## Overview

Misabot is a Discord bot that plays music in voice channel. The bot is built on Discord.js v13.


For Discord.js v12, see [here](https://github.com/Misabot/misabot-discord/tree/v1)

## Requirements

- Node.js v16.6.0 or higher

## Using

- Setup permissions
- Scopes: `bot`, `application.commands`
- Bot permissions: `Send Messages`, `Embed Links`, `Use Slash Commands`, `Connect`, `Speak`
- ```bash
git clone https://github.com/Misabot/misabot-discord.git && \
cd misabot-discord
```
- Create .env file in root directory includes your Discord bot token. `TOKEN = `

- ```bash
yarn && \
yarn build && \
yarn start
```

- Invite the bot to the server, then join a voice channel. Send `!deploy` to deploy the slash command for bot in the server

## Deploy to Heroku

The bot can run continuously on Heroku without sleep. You need to setup 2 `Config Vars` in your Heroku app.

- `TOKEN = `
- `APP_URL = `

## Docs

| ID | Name | Description | Usage |
| --- | ---------- | ----------------------------------------------------------------- | ------------------------ |
| 1 | play | Plays a song or playlist on Youtube with the given name or url | /play {link/query} |
| 2 | soundcloud | Plays a song or playlist on SoundCloud with the given name or url | /soundcloud {link/query} |
| 3 | pause | Pause current song | /pause |
| 4 | resume | Resume current song | /resume |
| 5 | skip | Skip current song | /skip |
| 6 | nowplaying | Get current song info | /nowplaying |
| 7 | shuffle | Shuffle the queue | /shuffle |
| 8 | queue | View songs in queue | /queue |
| 9 | jump | Jump to song in queue by position | /jump {position} |
| 10 | remove | Remove song in queue by position | /remove {position} |
| 11 | ping | See the ping to server | /ping |
| 12 | leave | Stop and leave audio channel | /leave |
| 13 | help | See the help for this bot | /help |

## License

[MIT](https://choosealicense.com/licenses/mit/)