Quickstart Guide
What We Will Build
- A Custom Music Status Tag (
!np) that displays live song progress and volume. - A Smart Song Suggestion Trigger (
suggest) that recommends songs dynamically from YouTube Music. - A Custom Audio Tuner Trigger (
slowed) that slows down the track and adds low-pass reverb.
Step 1: Create a Music HUD Tag
Letβs build a clean !np command that shows whatβs currently playing, artist information, and a live progress bar.
Tag Template Code:
{cooldown(3)}{embed(title):π Now Playing}{embed(description):{if({player.playing}==true):πΆ **Track:** [{track.title}]({track.uri})π€ **Artist:** {track.author}β±οΈ **Progress:** {player.positionFormatted} / {track.durationFormatted} *(Remaining: {player.remainingTime})*π **Volume:** {player.volume}% | π **Loop Mode:** {player.loop}π **Queue:** {player.queueSize} tracks ({player.queueDuration})|β No music is currently playing in this server.}}{embed(thumbnail):{track.thumbnail}}{embed(color):0x5865F2}{embed(footer.text):Requested by {user.username}}How It Works:
{cooldown(3)}: Prevents users from spamming the tag more than once every 3 seconds.{if({player.playing}==true):...|...}: If a song is playing, it outputs the song details; otherwise, it tells the user no song is active.{embed(...)}: Formats the response into a sleek Discord Embed.
Step 2: Create a Live Suggestion Trigger
Now letβs create a trigger that runs whenever someone types suggest in any channel.
Trigger Template Code:
{cooldown(5)}{embed(title):{if({player.playing}==true):π΅ Dynamic Song Recommendation|π΅ Song Suggestion}}{embed(description):{if({player.playing}==true):Currently Playing: **[{track.title}]({track.uri})** by **{track.author}**
π§ **Recommended next for {user.username}:**π {suggest}|No music is currently playing, {user}! Here is a recommended song:π {suggest}}}{embed(thumbnail):{track.thumbnail}}{embed(color):0x5865F2}{embed(footer.text):Live recommendations via YouTube Music}What Happens in Discord:
- When a user types
suggest, Eruptor looks at the currently playing artist ({track.author}). - It performs a live search on YouTube Music behind the scenes.
- It filters out the current song and returns a new song recommendation with a clickable link.
Step 3: Create a Custom Audio Filter Trigger
Letβs build a trigger named slowed that alters the speed and acoustic frequency of the song in real time!
Trigger Template Code:
{cooldown(5)}{tune:speed=0.85, pitch=0.85, lowpass=20}{embed(title):π Slowed + Reverb Activated}{embed(description):Applied custom audio tuning to **[{track.title}]({track.uri})**:\nβ’ **Speed:** `0.85x`\nβ’ **Pitch:** `0.85x`\nβ’ **LowPass Cutoff:** `20`}{embed(thumbnail):{track.thumbnail}}{embed(color):0x9B59B6}{embed(footer.text):Tuned for {user.username}}Continue Reading
Learn the core syntax rules in the Syntax & Anatomy Guide.