2020-03-02 19:38:42 +00:00
|
|
|
module.exports = {
|
|
|
|
name: 'bug',
|
|
|
|
alias: 'none',
|
|
|
|
usage: '',
|
|
|
|
description: 'Report a bug',
|
|
|
|
permission: 'none',
|
|
|
|
category: 'info',
|
2020-03-22 15:10:46 +00:00
|
|
|
async execute(msg, args, client, Discord, command) {
|
2020-03-12 22:53:23 +00:00
|
|
|
let message = {};
|
2020-03-22 15:10:46 +00:00
|
|
|
|
2020-03-12 22:53:23 +00:00
|
|
|
message.bugTitle = client.messages.bugTitle.replace("%client.user.username%", client.user.username);
|
|
|
|
message.bugDescription = client.messages.bugDescription.replace("%client.developers%", client.developers);
|
|
|
|
message.bugDescription = message.bugDescription.replace("%client.config.supportGuild%", client.config.supportGuild);
|
2020-03-22 15:10:46 +00:00
|
|
|
|
2020-03-02 19:38:42 +00:00
|
|
|
const embed = new Discord.MessageEmbed()
|
2020-03-12 22:53:23 +00:00
|
|
|
.setTitle(message.bugTitle)
|
2020-03-28 00:01:12 +00:00
|
|
|
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["logo"].replace(/[^0-9]+/g, ''))
|
2020-03-08 23:26:24 +00:00
|
|
|
.setColor(client.config.embedColor)
|
2020-03-12 22:53:23 +00:00
|
|
|
.setDescription(message.bugDescription)
|
2020-08-14 23:54:04 +00:00
|
|
|
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
|
2020-03-02 19:38:42 +00:00
|
|
|
msg.channel.send(embed);
|
2020-03-22 15:10:46 +00:00
|
|
|
|
2020-03-02 19:38:42 +00:00
|
|
|
},
|
2020-03-08 14:22:00 +00:00
|
|
|
};
|