diff options
Diffstat (limited to 'commands')
| -rw-r--r-- | commands/list.js | 4 | ||||
| -rw-r--r-- | commands/status.js | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/commands/list.js b/commands/list.js index 8f2010b..7101e16 100644 --- a/commands/list.js +++ b/commands/list.js @@ -33,9 +33,7 @@ export default { const beats = readdirSync(musicFolder).join('\n'); readdir(musicFolder, async(err, files) => { - await interaction.reply( - `Listing ${files.length} audio tracks...\n\`\`\`\n${beats}\n\`\`\`` - ); + await interaction.reply(`Listing ${files.length} audio tracks...\n\`\`\`\n${beats}\n\`\`\``); if (err) { console.error(err); } diff --git a/commands/status.js b/commands/status.js index c78e736..e135113 100644 --- a/commands/status.js +++ b/commands/status.js @@ -21,7 +21,7 @@ import { SlashCommandBuilder } from '@discordjs/builders'; import { MessageEmbed } from 'discord.js'; -import { audio, audioArray, currentTrack, playerState } from '../AudioBackend.js'; +import { audio, audioArray, currentTrack, files, playerState } from '../AudioBackend.js'; export default { data: new SlashCommandBuilder() @@ -37,6 +37,7 @@ export default { const controlEmbed = new MessageEmbed() .setAuthor({ name: `${bot.user.username} Status`, iconURL: bot.user.avatarURL() }) .addField('State', playerState) + .addField('Tracks', `${audioID}/${files.length}`) .addField('Currently Playing', audio) .addField('Up Next', audioName) .setColor('#0066ff'); |
