You can use the Discord API to build your own bots.

And in this tutorial, @GabrielTanner14 shows you how to create a music bot.

You'll set up your bot, learn about various commands, and build out basic functionality - in both v13 and v12.5.3.