Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/malexion/rhythm-bot
Queue up and play youtube audio over discord voice.
https://github.com/malexion/rhythm-bot
bot discord-js discord-voice youtube
Last synced: 5 days ago
JSON representation
Queue up and play youtube audio over discord voice.
- Host: GitHub
- URL: https://github.com/malexion/rhythm-bot
- Owner: Malexion
- License: mit
- Created: 2016-12-10T21:23:42.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-11T21:27:00.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T12:31:23.386Z (9 months ago)
- Topics: bot, discord-js, discord-voice, youtube
- Language: TypeScript
- Size: 789 KB
- Stars: 200
- Watchers: 17
- Forks: 186
- Open Issues: 33
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rhythm-Bot 2.1.5 Search / Rich Text / Buttons!
- New search command anything after !search will be searched against youtube and return the top 3 results
- Press the thumbs up reaction emoji to add the item to your queue
- Note that you will want to give the bot permission to remove emojis in the text channel, this is the MANAGE_MESSAGES permission
- Node version has updated from 10.x.x to 12.x.x due to discord.js update
- New npm packages to install
- Replaced dependence on manually installing ffmpeg
- Now ffmpeg is installed via npm with ffmpeg-static when you do a simple npm install
- In addition to the reaction button interaction on the search command you can now use buttons for the new playing control![Image](https://imgur.com/B2xLVgU.png)
Note: This is not the bot listed here [https://rythmbot.co/](https://rythmbot.co/)
## Description
Simple little music bot to queue up and play youtube audio over discord voice channels.
## Bot Commands
- Show some helpful info
> `!help`
- Search for a video on YouTube
> `!youtube https://www.youtube.com/watch?v=dQw4w9WgXcQ`
- Join your voice channel
> `!join`
- Start the queue
> `!play`
- Search for a song
> `!search don't stop believin`
- List songs in the queue
> `!list`
- Shuffle the queue
> `!shuffle`
- Clear the queue
> `!clear`
- Move song in queue
> `!move [targetIndex] [up/down/destIndex]`
- Save queue as playlist
> `!playlist save my_awesome_playlist`
- Load playlist to queue
> `!playlist load my_awesome_playlist`
- Delete playlist
> `!playlist delete my_less_awesome_playlist`
- List playlists
> `!playlist list`## Bot Hosting
### Unlisted dependencies
- `Python2.7` This version is required for node-gyp I think?
- `node-gyp` command line tool
- `node.js` version 12.X.X or higher is required
- `typescript` types for javascript, enables easier group collaboration and simple right click to look up definitions### Installation
- Install node latest stable release, this was built with node v12.16.1
- For windows run `npm install --global --production --add-python-to-path windows-build-tools`
- Run `npm install node-gyp -g`
- Run `npm install typescript -g`
- Run `npm install`### Configuration
- Get a token string for your bot from by registering your bot here: [https://discordapp.com/developers](https://discordapp.com/developers)
- Create an invite link like this
`https://discordapp.com/api/oauth2/authorize?client_id={ APPLICATION ID }&permissions=2159044672&scope=bot`
- Open `bot-config.json` and replace the content between the quotes `""` with your bot token.
- In config you can add other settings, to see an example of the settings open `./src/bot/config.ts` and look at `DefaultBotConfig` and `BotConfig` for examples
- Open `bot.log` if you're looking to debug errors### Running the Application
- Run `npm start`