mirror of https://github.com/kry008/Bot-2.0.git
Add templates.file to .gitignore and update help command to send all commands
parent
8515157c57
commit
cabb6a47a6
|
@ -1,3 +1,4 @@
|
||||||
config.json
|
config.json
|
||||||
|
templates.file
|
||||||
node_modules
|
node_modules
|
||||||
package-lock.json
|
package-lock.json
|
|
@ -89,7 +89,8 @@ module.exports = {
|
||||||
const command = getCommand(args[0]);
|
const command = getCommand(args[0]);
|
||||||
if(command === null)
|
if(command === null)
|
||||||
{
|
{
|
||||||
message.channel.send('Command not found');
|
//send all commands
|
||||||
|
const commands = allCommandsNames();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
message.channel.send('Name: ' + command.name + '\nDescription: ' + command.description + '\nHelp: ' + command.help);
|
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'));
|
const command = getCommand(interaction.options.getString('command'));
|
||||||
if(command === null)
|
if(command === null)
|
||||||
{
|
{
|
||||||
interaction.reply('Command not found');
|
//send all commands
|
||||||
|
const commands = allCommandsNames();
|
||||||
|
interaction.reply(commands);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
interaction.reply('Name: ' + command.name + '\nDescription: ' + command.description + '\nHelp: ' + command.help);
|
interaction.reply('Name: ' + command.name + '\nDescription: ' + command.description + '\nHelp: ' + command.help);
|
||||||
|
|
Loading…
Reference in New Issue