aboutsummaryrefslogtreecommitdiff
path: root/commands/list.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2022-04-03 16:43:47 -0400
committerAndrew Lee <alee14498@protonmail.com>2022-04-03 16:43:47 -0400
commita555449001cbe87503e5ffe9b311aceb59592c63 (patch)
treebf2920c4532ca65b5837d459e46bbe53c893de76 /commands/list.js
parentdaf3c1735513bb252614a0047116088e242f7984 (diff)
downloadDLAP-a555449001cbe87503e5ffe9b311aceb59592c63.tar.gz
DLAP-a555449001cbe87503e5ffe9b311aceb59592c63.tar.bz2
DLAP-a555449001cbe87503e5ffe9b311aceb59592c63.zip
Audio states on control; Control can be ran once; Ping update, etc
Diffstat (limited to 'commands/list.js')
-rw-r--r--commands/list.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/list.js b/commands/list.js
index 247e060..2d7c5aa 100644
--- a/commands/list.js
+++ b/commands/list.js
@@ -29,7 +29,9 @@ export default {
.setName('list')
.setDescription('Lists the available audio tracks'),
async execute(interaction) {
+ //If someone figures out how to either split the list or make pages when the max character reaches, please do so and make a pull request.
+
const beats = readdirSync(musicFolder).join('\n');
- await interaction.reply(`Listing the available audio tracks...\`\`\`${beats}\`\`\``);
+ await interaction.reply(`Listing the available audio tracks...\n\`\`\`\n${beats}\n\`\`\``);
},
}; \ No newline at end of file