Skip to content

Commit 87583a5

Browse files
author
James Kerrane
committed
Bring back to wroking condition
1 parent 0a13fdc commit 87583a5

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

commands/help.js

+7-8
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,16 @@ module.exports = {
99
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
1010

1111
for (const file of commandFiles) {
12-
name += `${command.name}`;
13-
desc += `${command.description}`;
12+
const command = require(`./${file}`);
13+
str += `**${command.name}:** ${command.description} \n`;
1414
}
1515

16-
command.forEach(c => {
16+
for (const file of commandFiles) {
1717
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-
});
18+
str += `Name: ${command.name}, Description: ${command.description} \n`;
19+
}
20+
21+
message.channel.send(str);
2322

2423
},
2524
};

0 commit comments

Comments
 (0)