1
0
mirror of https://github.com/musix-org/musix-oss synced 2025-06-16 12:36:01 +00:00
This commit is contained in:
MatteZ02
2019-10-10 16:43:04 +03:00
parent 6f6ac8a6fa
commit 50b9bed483
9432 changed files with 1988816 additions and 167 deletions

View File

@ -2,7 +2,7 @@ module.exports = {
name: 'status',
description: 'Status command.',
cooldown: 5,
execute(message, args, client, RichEmbed) {
execute(message, args, client, Discord, prefix) {
let rawUptime = client.uptime;
let uptime = {};
uptime['d'] = rawUptime / 86400000;
@ -14,24 +14,22 @@ module.exports = {
} else {
finalUptime = `${Math.round(uptime.d * 10) / 10} days`;
}
let onlinehost = process.env.hosted;
let hosted = process.env.hosted;
if (onlinehost !== undefined) {
hosted = 'Online';
} else {
if (process.env.LOCALLYHOSTED === "true") {
hosted = 'Locally';
} else {
hosted = 'Online';
}
let ping = Math.floor(client.ping * 10) / 10;
const embed = new RichEmbed()
const embed = new Discord.RichEmbed()
.setTitle(`Status for ${client.user.username}`)
.addField(':signal_strength: Ping', ping, true)
.addField(':stopwatch: Uptime', finalUptime, true)
.addField(`:play_pause: Currently playing music on ${client.voiceConnections.size} guilds.`, `Of ${client.guilds.size} Guilds.`, true)
.addField(`:play_pause: Currently playing music on`, `${client.voiceConnections.size} guild(s)`, true)
.addField(':satellite: Currently hosted', hosted, true)
.addField(`💿 Operating system`, process.platform, true)
.setAuthor(client.user.username, client.user.displayAvatarURL)
.setColor('#b50002')
return message.channel.send(embed);
}
};
};