2019-05-04 01:42:29 +03:00
|
|
|
const Discord = require('discord.js');
|
2019-05-04 01:54:28 +03:00
|
|
|
const { version } = require('../package.json');
|
2019-05-04 00:09:48 +03:00
|
|
|
module.exports = {
|
2019-05-04 01:54:28 +03:00
|
|
|
name: 'help',
|
|
|
|
description: 'Displays help menu',
|
|
|
|
usage: '[command]',
|
|
|
|
aliases: ['command', 'commands'],
|
|
|
|
args: false,
|
|
|
|
cooldown: 5,
|
|
|
|
execute(message, args, config, version) {
|
|
|
|
const client = message.client;
|
2019-05-04 00:09:48 +03:00
|
|
|
// command starts here
|
|
|
|
message.delete();
|
2019-05-04 01:54:28 +03:00
|
|
|
if (config.useEmbeds) {
|
2019-05-04 00:09:48 +03:00
|
|
|
const embed = new Discord.RichEmbed()
|
2019-05-04 01:42:29 +03:00
|
|
|
.setAuthor(`${client.user.username} / Commands`, client.user.avatarURL)
|
2019-05-04 01:54:28 +03:00
|
|
|
.setColor(config.colour)
|
2019-05-04 01:42:29 +03:00
|
|
|
.addField("...", `...`, true)
|
|
|
|
.addField("...", `...`, true)
|
2019-05-04 00:52:55 +03:00
|
|
|
.setFooter(`${client.guilds.get(config.guildID).name} : DiscordTickets by Eartharoid`);
|
2019-05-04 01:54:28 +03:00
|
|
|
message.channel.send({
|
|
|
|
embed
|
|
|
|
})
|
2019-05-04 00:09:48 +03:00
|
|
|
} else {
|
|
|
|
message.channel.send(`**Prefix =** \`${config.prefix}\`\n**Bot Version =** \`${version}\``)
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// command ends here
|
2019-05-04 01:54:28 +03:00
|
|
|
},
|
2019-05-04 00:09:48 +03:00
|
|
|
};
|