Skip to content

Plugins & bots

DisTube ships no music source. Every service is a plugin, and the plugins live outside the library.

Kind Extract the info Search Play
ExtractorPlugin ✅ ✅ ✅
InfoExtractorPlugin ✅ ✅ ❌
PlayableExtractorPlugin ✅ ❌ ✅

A plugin that only knows the metadata declares playable: false, and DisTube looks for a playable version of the song with the other plugins. The plugin system guide explains how to write one.

A plugin publishes the identifiers of its source, so you can find it back in the registry of the plugins:

distube.getPlugin("my-source");

Look for a plugin in the place where you publish your own work: the registry of your package manager, and the topics of the community. The DisTube Discord server is the other place to ask.

Bot Description
DisTube Bot An example bot with a simple command handler.

Open a pull request on the website repository and add your bot to the table above.