A Discord Bot for playing YouTube music.
- Add this Music Bot to your Discord Server
- Build yourself or Download this Music Bot and extract into
DiscordMusicBot/
- Modify
config.json
- Install .NET Core
- Optionally (Reinstall newer versions):
- Download FFmpeg and place into
DiscordMusicBot/
folder - Download youtube-dl and place into
DiscordMusicBot/
folder - Download Sodium and/or Opus and place them into
DiscordMusicBot/
folder
- Download FFmpeg and place into
- Run
- Open DiscordMusicBot.bat
..\DiscordMusicBot\> dotnet DiscordMusicBot.dll
- Add this Music Bot to your Discord Server
- Build yourself or Download this Music Bot and extract into
DiscordMusicBot/
- Modify
config.json
- Install .NET Core
- Optionally (Reinstall newer versions):
- Download FFmpeg and place into
DiscordMusicBot/
folder - Download youtube-dl: and place into
DiscordMusicBot/
foldersudo curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl sudo chmod a+rx /usr/local/bin/youtube-dl
- Download Sodium and/or Opus and place them into
DiscordMusicBot/
folder
- Download FFmpeg and place into
- Run
$ dotnet DiscordMusicBot.dll
- Get Source files
- Clone Repo:
git clone http://github.com/mrousavy/DiscordMusicBot
- Download ZIP
- Clone Repo:
- Download and Install .NET Core SDK
- Open
DiscordMusicBot/
in any Terminal - Restore NuGet Packages:
dotnet restore
- Build Project:
dotnet build
- Publish:
dotnet publish -c release -r win10-x64
(Find your OS)
- Create your app here
- Create
DiscordMusicBot/config.json
file - Paste this into
config.json
and set your values{ "ClientId": "[app Client ID]", "ClientSecret": "[app secret]", "BotName": "[app name]", "Token": "[app token]", "ServerName": "My Discord Server", "VoiceChannelName": "Lounge 1", "TextChannelName": "general" }
- Enter names into
users.txt
(Name#Id, e.g.: Me#123) - Send DiscordMusicBot
!update
to update Permitted Client List, or restart
!add [url]
... Adds a single Song to Music-queue
!addPlaylist [playlist-url]
... Adds whole playlist to Music-queue
!pause
... Pause the queue and current Song
!play
... Resume the queue and current Song
!queue
... Prints all queued Songs & their User
!clear
... Clear queue and current Song
!setTimeout [timeoutInMilliseconds]
... Timeout between being able to request songs
!help
... Prints available Commands and usage
!come
... Let Bot join your Channel
!update
... Updates the Permitted Clients List from clients.txt
!skip
... Skips the current Song