Skip to content

RafiBG/DiscordMusicBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Made with C# on .NET 9.0 and libraries: DSharpPlus, DsharpPlus.CommandsNext, DsharpPlus.Interactivity, DsharpPlus.Lavalink, Newtonsoft.Json, DSharpPlus.SlashCommands

How to use it

Go to Discord developer portal link: https://discord.com/developers/applications. Make your own discord bot and get the token that will be used in config.json. Before you leave the website go to Bot and turn on the ones that you see on the image. PrivilegedGeteway Now the Bot Permissions are shown in the image that you must check to work. Permissions

In folder Config there is config.json add your Discord token then copy the whole file config.json and go to MusicBotDiscord\MusicBotDiscord\bin\Debug\net9.0 and paste it there also there is your MusicBotDiscord.exe to start the program.

If you get in the console this error: [Crit ] Failed to connect to Lavalink change the config.json server or create one.
Link: https://lavalink.darrennathanael.com/SSL/lavalink-with-ssl/#tunnelbroker-guide

New slash commands

/play (name or YouTube link)
/pause
/resume
/stop - it will leave the voice chat
/volume (number)

Old commands (they still work just not active)

!help - Shows all the commands
!play (name or YouTube link)
!pause
!resume
!stop - it will leave the voice chat
!volume (number)

To make the old commands work uncomment this line in Program.cs //Commands.RegisterCommands(); //register commands with prefix symbol !

Contributors

Languages