Skip to content

ca-l-eb/discord-music-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is a self-hosted, basic music streaming bot for Discord written in C++(17). I've tested and got it working on Linux, macOS, and Windows, but runs best on Linux.

Building

mkdir build
cd build
conan install ..
cmake ..
cmake --build .

Running

Create a bot account here. Use http://localhost for the redirect uri. Select the public bot checkbox and keep the bot's token safe.

Then go to https://discordapp.com/api/oauth2/authorize?client_id=$CLIENT_ID&permissions=36766720&redirect_uri=http%3A%2F%2Flocalhost&scope=bot replacing $CLIENT_ID with your bot's client id to invite the bot to your guild.

Finally ./discord <bot-token> will run the bot.

Using the bot

  • Joining channels :join <channel name>
  • Adding music to queue :add <youtube link>
  • Pausing :pause
  • Playing :play
  • Stopping :stop
  • Skipping song :skip or :next
  • Leaving voice channel :leave

Dependencies

About

Self-hosted music bot for Discord

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published