1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-11-14 16:00:17 +00:00
musix-oss/commands/status.js

22 lines
891 B
JavaScript
Raw Normal View History

2019-09-15 06:18:33 +00:00
module.exports = {
name: 'status',
description: 'Status command.',
alias: 'status',
2019-09-15 06:18:33 +00:00
cooldown: 5,
onlyDev: false,
2019-10-10 13:43:04 +00:00
execute(message, args, client, Discord, prefix) {
2019-12-24 13:21:34 +00:00
const uptime = client.funcs.msToTime(client.uptime);
const ping = Math.floor(client.ping * 10) / 10;
2019-09-15 06:18:33 +00:00
2019-10-10 13:43:04 +00:00
const embed = new Discord.RichEmbed()
2019-09-15 06:18:33 +00:00
.setTitle(`Status for ${client.user.username}`)
.addField(':signal_strength: Ping', ping, true)
2019-12-24 13:21:34 +00:00
.addField(':stopwatch: Uptime', uptime, true)
2019-10-10 13:43:04 +00:00
.addField(`:play_pause: Currently playing music on`, `${client.voiceConnections.size} guild(s)`, true)
2019-09-15 06:18:33 +00:00
.addField(`💿 Operating system`, process.platform, true)
.setAuthor(client.user.username, client.user.displayAvatarURL)
2019-12-05 13:17:15 +00:00
.setColor(client.config.embedColor)
2019-09-15 06:18:33 +00:00
return message.channel.send(embed);
}
2019-10-10 13:43:04 +00:00
};