eximiabots-radiox/client/commands/status.js

27 lines
1.3 KiB
JavaScript
Raw Normal View History

2020-08-25 06:30:24 +00:00
module.exports = {
name: 'status',
alias: 'none',
usage: '',
description: 'Bot Status',
permission: 'none',
category: 'info',
async execute(msg, args, client, Discord, command) {
let message = {};
message.statusTitle = client.messages.statusTitle.replace("%client.user.username%", client.user.username);
2020-08-25 06:34:31 +00:00
let uptime = client.funcs.msToTime(client.uptime, "dd:hh:mm:ss");
2020-08-25 06:30:24 +00:00
const embed = new Discord.MessageEmbed()
.setTitle(message.statusTitle)
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["logo"].replace(/[^0-9]+/g, ''))
.setColor(client.config.embedColor)
2020-08-25 10:50:39 +00:00
.addField(client.messages.statusField1, Date.now() - msg.createdTimestamp + "ms", true)
.addField(client.messages.statusField2, client.ws.ping + "ms", true)
.addField(client.messages.statusField3, uptime, true)
.addField(client.messages.statusField4, client.config.version, true)
.addField(client.messages.statusField5, client.config.hostedBy, true)
2020-08-25 06:30:24 +00:00
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
msg.channel.send(embed);
2020-08-25 10:50:39 +00:00
}
2020-08-25 06:30:24 +00:00
};