Plugins & bots
Where the plugins come from
Section titled “Where the plugins come from”DisTube ships no music source. Every service is a plugin, and the plugins live outside the library.
The three kinds of plugin
Section titled “The three kinds of plugin”| 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.
Finding a plugin
Section titled “Finding a plugin”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.
The bots
Section titled “The bots”| Bot | Description |
|---|---|
| DisTube Bot | An example bot with a simple command handler. |
Adding yours
Section titled “Adding yours”Open a pull request on the website repository and add your bot to the table above.