We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a13fdc commit 87583a5Copy full SHA for 87583a5
commands/help.js
@@ -9,17 +9,16 @@ module.exports = {
9
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
10
11
for (const file of commandFiles) {
12
- name += `${command.name}`;
13
- desc += `${command.description}`;
+ const command = require(`./${file}`);
+ str += `**${command.name}:** ${command.description} \n`;
14
}
15
16
- command.forEach(c => {
+ for (const file of commandFiles) {
17
const command = require(`./${file}`);
18
- const embed = new Discord.RichEmbed();
19
- embed.setColor("GREEN");
20
- embed.addField(name, desc)
21
- return message.channel.send({ embed });
22
- });
+ str += `Name: ${command.name}, Description: ${command.description} \n`;
+ }
+
+ message.channel.send(str);
23
24
},
25
};
0 commit comments