mirror of
https://github.com/ION606/selmerBot.git
synced 2026-06-05 23:06:14 +00:00
Added the 'help' command. Output is unordered thought
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
module.exports ={
|
||||
name: "game",
|
||||
description: "Play a game using Selmer Bot!",
|
||||
execute(message, args, Discord, Client, bot) {
|
||||
let temp = "Selmer Bot Commands:\n";
|
||||
var keys = bot.commands.keys();
|
||||
for (let i = 0; i < keys.length; i ++) {
|
||||
temp += keys[i].toLowerCase();
|
||||
temp += ` - ${bot.commands.get(keys[i]).description}\n`;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2,13 +2,16 @@ module.exports ={
|
||||
name: "help",
|
||||
description: "Gets help for all of Selmer Bot's commands",
|
||||
execute(message, args, Discord, Client, bot) {
|
||||
const newEmbed = new Discord.MessageEmbed()
|
||||
.setColor('#002eff')
|
||||
.setTitle('My professional resume')
|
||||
//.setURL('https://discordjs.guide/popular-topics/embeds.html#embed-preview')
|
||||
//.setDescription('My professional resume')
|
||||
.setImage('https://github.com/ION606/selmerBot/blob/main/Sleemer_Bringsjorgend.png?raw=true')
|
||||
let temp = "***Selmer Bot Commands:***\n";
|
||||
|
||||
message.channel.send({ embeds: [newEmbed] });
|
||||
bot.commands.sort((a, b) => a.name[0] < b.name[0]);
|
||||
|
||||
bot.commands.forEach((comm) => {
|
||||
if (comm.name != 'verify') {
|
||||
temp += `${comm.name.toLowerCase()} - ${comm.description}\n`;
|
||||
}
|
||||
});
|
||||
|
||||
message.channel.send(temp);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user