From cabb6a47a69832bb96980b1698472592699042a8 Mon Sep 17 00:00:00 2001 From: kry008 Date: Thu, 23 May 2024 22:27:07 +0200 Subject: [PATCH] Add templates.file to .gitignore and update help command to send all commands --- .gitignore | 1 + commands/help.js | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index f71925a..197efce 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ config.json +templates.file node_modules package-lock.json \ No newline at end of file diff --git a/commands/help.js b/commands/help.js index 0113a62..4109174 100644 --- a/commands/help.js +++ b/commands/help.js @@ -89,7 +89,8 @@ module.exports = { const command = getCommand(args[0]); if(command === null) { - message.channel.send('Command not found'); + //send all commands + const commands = allCommandsNames(); return; } message.channel.send('Name: ' + command.name + '\nDescription: ' + command.description + '\nHelp: ' + command.help); @@ -98,7 +99,9 @@ module.exports = { const command = getCommand(interaction.options.getString('command')); if(command === null) { - interaction.reply('Command not found'); + //send all commands + const commands = allCommandsNames(); + interaction.reply(commands); return; } interaction.reply('Name: ' + command.name + '\nDescription: ' + command.description + '\nHelp: ' + command.help);