mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-11-10 07:00:18 +00:00
23 lines
943 B
JavaScript
23 lines
943 B
JavaScript
|
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);
|
||
|
|
||
|
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)
|
||
|
.addField(client.messages.statusField1, client.ws.ping, true)
|
||
|
.addField(client.messages.statusField2, uptime, true)
|
||
|
.setFooter(client.messages.footerText, "https://cdn.discordapp.com/emojis/" + client.messageEmojis["eximiabots"].replace(/[^0-9]+/g, ''));
|
||
|
msg.channel.send(embed);
|
||
|
|
||
|
},
|
||
|
};
|