Discord → YouTube playlists

Every link your server shares, spun into one playlist.

Trawl reads the music posted in a Discord channel and turns it into a single YouTube playlist — with one slash command.

Free & open source One slash command JSON export
Trawl app icon
youtu.be/dQw4…
added to playlist

How it works

From a channel full of links to a finished playlist in three steps.

1Invite

Add the bot

Invite Trawl to your server. It only needs Send Messages and Read Message History.

2Run

Point it at a channel

Run /makeplaylists with your music channel. It scans every media message and collects the links.

3Done

Get your playlist

Links are pushed straight into your YouTube playlist — or saved as a clean JSON file you can keep.

Commands

Copy, paste, run.

In DiscordBuild a playlist from a channel

slash command · #music-share
/makeplaylists input_channel:#music-share output_channel:#debug_out save_json:True
input_channel
The channel to read media links from.
output_channel
Where the bot posts its progress & results.
save_json
Set True to also export a JSON file of every media message.

Self-hostRun your own instance

bash · install & deploy
$ npm i
$ node deploy_discord_commands.js  # register slash commands
$ node start_discord_bot.js        # keep running for commands to work
bash · push to YouTube
$ node add_to_youtube_playlist.js  # adds the saved links to your playlist

One-time setup

What you'll need before the first run.

1Discord

Invite the bot

Use the invite button — it requests Send Messages and Read Message History, and enables the slash command.

2YouTube

Connect the API

Authorize the YouTube Data API v3 once and set your YOUTUBE_PLAYLIST_ID so the bot knows where to add tracks.

3Go

Run /makeplaylists

Re-run any time to catch new links — your playlist stays current with whatever the server shares.

Trawl icon

Give your server a playlist that builds itself.

Add Trawl in under a minute and turn months of shared links into one playlist everyone can hit play on.

Invite the bot