View the code on Github

Outline

While hanging out with friends in voice channels, I wanted to step away from using other discord bots as the majority of the time the bots either stop being developed and lose some functionality, or have major functions (like listening to music) become a paid feature.

I created a simple, yet effective bot that I am able to host locally in my homelab. The bots function is simply to play music from a Youtube link via a command.

The Bot was created using Python, specically utilizing the discord.py module. As well as other open source programs like FFmpeg, which is used to convert youtube videos into mp3 output.

It includes some other nice-to-have things like;

  • A queue system that tracks songs in the queue
  • Ability to remove songs from the queue according to the songs position
  • Pause/resume commands
  • A ‘,help’ command which lists all commands of the bot