{"id":16513961,"url":"https://github.com/twin/discord-music-bot","last_synced_at":"2025-09-03T06:37:21.530Z","repository":{"id":47375703,"uuid":"266435270","full_name":"TwiN/discord-music-bot","owner":"TwiN","description":"Minimal Discord music bot in Go","archived":false,"fork":false,"pushed_at":"2023-08-31T18:00:59.000Z","size":3084,"stargazers_count":27,"open_issues_count":4,"forks_count":12,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-03T19:01:33.484Z","etag":null,"topics":["bot","discord","discord-bot","discord-music-bot","docker","music","music-bot"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TwiN.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["TwiN"]}},"created_at":"2020-05-23T23:15:59.000Z","updated_at":"2024-11-08T18:08:13.000Z","dependencies_parsed_at":"2024-06-19T02:07:01.348Z","dependency_job_id":null,"html_url":"https://github.com/TwiN/discord-music-bot","commit_stats":null,"previous_names":["twinproduction/discord-music-bot"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/TwiN/discord-music-bot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwiN%2Fdiscord-music-bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwiN%2Fdiscord-music-bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwiN%2Fdiscord-music-bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwiN%2Fdiscord-music-bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TwiN","download_url":"https://codeload.github.com/TwiN/discord-music-bot/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TwiN%2Fdiscord-music-bot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273403950,"owners_count":25099299,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","discord","discord-bot","discord-music-bot","docker","music","music-bot"],"created_at":"2024-10-11T16:10:59.469Z","updated_at":"2025-09-03T06:37:21.504Z","avatar_url":"https://github.com/TwiN.png","language":"Go","funding_links":["https://github.com/sponsors/TwiN"],"categories":[],"sub_categories":[],"readme":"# discord-music-bot\n[![Docker pulls](https://img.shields.io/docker/pulls/twinproduction/discord-music-bot)](https://cloud.docker.com/repository/docker/twinproduction/discord-music-bot)\n\nThis is a minimal music bot for Discord that support streaming to multiple servers concurrently.  \n\nIt uses [yt-dlp](https://github.com/yt-dlp/yt-dlp), a fork of youtube-dl, to search and download the video as well as `ffmpeg` to convert and stream the audio.\n\n\n## Usage\n| Environment variable              | Description                                                                                   | Required | Default |\n|:----------------------------------|:----------------------------------------------------------------------------------------------|:---------|:--------|\n| DISCORD_BOT_TOKEN                 | Discord bot token                                                                             | yes      | `\"\"`    |\n| COMMAND_PREFIX                    | Character prepending all bot commands. Must be exactly 1 character, or it will default to `!` | no       | `!`     |\n| MAXIMUM_AUDIO_DURATION_IN_SECONDS | Maximum duration of audio clips in second                                                     | no       | `480`   |\n| MAXIMUM_QUEUE_SIZE                | Maximum number of medias that can be queued up per server/guild                               | no       | `10`    |\n| BOT_ADMINS                        | Comma-separated list of user ids                                                              | no       | `\"\"`    |\n\n\n## Getting started\n### Discord\n1. Create an application\n2. Add a bot in your application\n3. Save the bot's token and set it as the `DISCORD_BOT_TOKEN` environment variable\n4. Go to `https://discordapp.com/oauth2/authorize?client_id=\u003cYOUR_BOT_CLIENT_ID\u003e\u0026scope=bot\u0026permissions=3222592`\n5. Add music bot to server\n\n\n### Bot commands\nAssuming `COMMAND_PREFIX` is not defined or is set to `!`.\n\n| Command                    | Description                                      | Example            |\n|:---------------------------|:-------------------------------------------------|:-------------------|\n| `!youtube`, `!yt`, `!play` | Add a song to the queue                          | `!yt what is love` |\n| `!skip`                    | Skip the current song                            |\n| `!stop`                    | Skip all songs in the queue                      |\n| `!help`                    | Display all commands                             |\n| `!health`                  | Provides information about the health of the bot |\n| `!info`                    | Provides general information about the bot       |\n| `!restart`                 | Restarts the bot. Must be admin.                 |\n\n\n## Prerequisites\nIf you want to run it locally, you'll need the following applications:\n- [yt-dlp](https://github.com/yt-dlp/yt-dlp)\n- ffmpeg\n\n\n## Docker\n### Pulling from Docker Hub\n```\ndocker pull twinproduction/discord-music-bot\n```\n\n### Building image locally\nBuilding the Docker image is done as following:\n```\ndocker build . -t twinproduction/discord-music-bot\n```\nYou can then run the container with the following command:\n```\ndocker run -e DISCORD_BOT_TOKEN=secret --name discord-music-bot twinproduction/discord-music-bot\n```\n\n\n## FAQ\n### How do I add my bot to a new server?\nSee step 4 of the [Discord](#discord) section.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwin%2Fdiscord-music-bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftwin%2Fdiscord-music-bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftwin%2Fdiscord-music-bot/lists"}