diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2022-11-29 12:18:52 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2022-11-29 12:18:52 -0500 |
| commit | fa84fcb7855e552218ac361ff5297c39418eb413 (patch) | |
| tree | dd5d7c7bd285b3959108058db511aa148efaa18a /AudioBackend.js | |
| parent | ef5cf82a64c58e572bbfbf3e45d03152fb96c60a (diff) | |
| download | DLAP-fa84fcb7855e552218ac361ff5297c39418eb413.tar.gz DLAP-fa84fcb7855e552218ac361ff5297c39418eb413.tar.bz2 DLAP-fa84fcb7855e552218ac361ff5297c39418eb413.zip | |
Updated embed
Diffstat (limited to 'AudioBackend.js')
| -rw-r--r-- | AudioBackend.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/AudioBackend.js b/AudioBackend.js index 67d14b0..d92835a 100644 --- a/AudioBackend.js +++ b/AudioBackend.js @@ -147,6 +147,8 @@ export async function playAudio(bot) { playerState = 'Playing'; isAudioStatePaused = false; + let audioFile = audio; + try { const { common, format } = await parseFile('music/' + audio); metadataEmpty = false; @@ -190,12 +192,12 @@ export async function playAudio(bot) { } else { statusEmbed.setTitle('Now Playing'); statusEmbed.addFields( - { name: 'Title', value: audioTitle }, - { name: 'Artist', value: audioArtist }, + { name: 'Title', value: audioTitle, inline: true }, + { name: 'Artist', value: audioArtist, inline: true }, { name: 'Year', value: `${audioYear}` }, { name: 'Duration', value: duration } ); - statusEmbed.setFooter({ text: `${audioAlbum}` }); + statusEmbed.setFooter({ text: `Album: ${audioAlbum} | Filename: ${audioFile}` }); statusEmbed.setColor('#0066ff'); } const channel = bot.channels.cache.get(statusChannel); |
