eximiabots-radiox/commands/bug.js
Christer Warén 60cf8df203 Some changes
2020-03-08 16:22:34 +02:00

27 lines
920 B
JavaScript

module.exports = {
name: 'bug',
alias: 'none',
usage: '',
description: 'Report a bug',
permission: 'none',
category: 'info',
async execute(msg, args, client, Discord, prefix) {
let developers = "";
let user = "";
for(i = 0; i < client.config.devId.length; i++){
user = await client.users.fetch(client.config.devId[i]);
if(i == client.config.devId.length-1){
developers += user.tag;
} else {
developers += user.tag + " & ";
}
}
const embed = new Discord.MessageEmbed()
.setTitle(`Found a bug with ${client.user.username}?\nDM the core developer:`)
.setDescription(`${developers}\nOr join the support server: ${client.config.supportGuild}`)
.setColor(client.config.embedColor);
msg.channel.send(embed);
},
};