Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTipo01 committed Sep 8, 2023
1 parent 9da677e commit 7e2011a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
22 changes: 15 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
Yet Another Discord Music Bot - A music bot written in go

# Features
- Supports what [yt-dlp](https://github.com/yt-dlp/yt-dlp) supports, plus spotify playlists (if you configure the required tokens!)

- Supports what [yt-dlp](https://github.com/yt-dlp/yt-dlp) supports, plus spotify playlists (if you configure the
required tokens!)
- Uses slash commands (see [Commands](#commands) for a list of commands)
- Save your favorite songs and playlists with custom commands
- Automatically skips sponsors or moments when there's no music, thanks to the [SponsorBlock API](https://sponsor.ajay.app/)
- Automatically skips sponsors or moments when there's no music, thanks to
the [SponsorBlock API](https://sponsor.ajay.app/)
- Caches songs locally, so the bot doesn't have to download them every time
- Stream songs from the internet, useful for radios
- Blacklist users from using the bot
Expand All @@ -23,18 +26,23 @@ Yet Another Discord Music Bot - A music bot written in go
# Installation

## Natively
See the [wiki](https://github.com/TheTipo01/YADMB/wiki/Tutorial:-install-YADMB-on-Debian-based-distro-(Raspbian,-Ubuntu...))

See
the [wiki](https://github.com/TheTipo01/YADMB/wiki/Tutorial:-install-YADMB-on-Debian-based-distro-(Raspbian,-Ubuntu...))

## Docker

- Clone the repo
- Modify the `example_config.yml`, by adding your discord bot token (see [here](https://github.com/TheTipo01/YADMB/wiki/Creating-and-adding-the-bot-to-your-server) if you don't know how to it)
- Modify the `example_config.yml`, by adding your discord bot token (
see [here](https://github.com/TheTipo01/YADMB/wiki/Creating-and-adding-the-bot-to-your-server) if you don't know how
to it)
- Rename it in `config.yml` and move it in the `data` directory
- Run `docker-compose up -d`
- Enjoy your YADMB instance!


Note: the docker image is available on [Docker hub](https://hub.docker.com/r/thetipo01/yadmb), [Quay.io](https://quay.io/repository/thetipo01/yadmb) and [Github packages](https://github.com/TheTipo01/YADMB/pkgs/container/yadmb).

Note: the docker image is available
on [Docker hub](https://hub.docker.com/r/thetipo01/yadmb), [Quay.io](https://quay.io/repository/thetipo01/yadmb)
and [Github packages](https://github.com/TheTipo01/YADMB/pkgs/container/yadmb).

# Commands

Expand Down
2 changes: 1 addition & 1 deletion youtube/youtube.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (y *YouTube) GetPlaylist(id string) []Video {
ids := make([]string, 0, len(response.Items))
for _, item := range response.Items {
thumbnail := getBestThumbnail(item.Snippet.Thumbnails)

// Check if the video is available and not deleted
if thumbnail != "" && item.Snippet.Description != "This video is unavailable." && item.Snippet.Title != "Deleted video" {
result = append(result, Video{
Expand Down

0 comments on commit 7e2011a

Please sign in to comment.