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.
mkdir build
cd build
conan install ..
cmake ..
cmake --build .
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.
- 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