aboutsummaryrefslogtreecommitdiff
path: root/AudioBackend.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-11-29 12:18:52 -0500
committerAndrew Lee <alee14498@protonmail.com>2022-11-29 12:18:52 -0500
commitfa84fcb7855e552218ac361ff5297c39418eb413 (patch)
treedd5d7c7bd285b3959108058db511aa148efaa18a /AudioBackend.js
parentef5cf82a64c58e572bbfbf3e45d03152fb96c60a (diff)
downloadDLAP-fa84fcb7855e552218ac361ff5297c39418eb413.tar.gz
DLAP-fa84fcb7855e552218ac361ff5297c39418eb413.tar.bz2
DLAP-fa84fcb7855e552218ac361ff5297c39418eb413.zip
Updated embed
Diffstat (limited to 'AudioBackend.js')
-rw-r--r--AudioBackend.js8
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);