mirror of
https://github.com/musix-org/musix-oss
synced 2025-07-07 10:40:49 +00:00
Update V3.0.4
This commit is contained in:
26
src/commands/status.js
Normal file
26
src/commands/status.js
Normal file
@ -0,0 +1,26 @@
|
||||
module.exports = {
|
||||
name: 'status',
|
||||
alias: 'stats',
|
||||
usage: '',
|
||||
description: 'See the current status for Musix.',
|
||||
onlyDev: false,
|
||||
permission: 'none',
|
||||
category: 'info',
|
||||
execute(msg, args, client, Discord, command) {
|
||||
const uptime = client.funcs.msToTime(client.uptime, "dd:hh:mm:ss");
|
||||
msg.channel.send(client.messages.pinging).then(m => {
|
||||
const latency = m.createdTimestamp - msg.createdTimestamp;
|
||||
|
||||
const embed = new Discord.MessageEmbed()
|
||||
.setTitle(client.messages.statusTitle)
|
||||
.addField(client.messages.statusField1, client.ws.ping, true)
|
||||
.addField(client.messages.statusField2, latency, true)
|
||||
.addField(client.messages.statusField3, uptime, true)
|
||||
.addField(client.messages.statusField4, client.shard.ids)
|
||||
.setAuthor(client.user.username, client.user.displayAvatarURL)
|
||||
.setColor(client.config.embedColor)
|
||||
m.delete();
|
||||
return msg.channel.send(embed);
|
||||
});
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user