Browse Source

Fix uptime format

master
Abheek Dhawan 4 years ago
parent
commit
d7bbed85b9
  1. 3
      index.js

3
index.js

@ -91,12 +91,13 @@ client.on("message", async message => {
}); });
async function aboutBot(message) { async function aboutBot(message) {
const uptimeDays = client.uptime / 86400000;
const aboutBotEmbed = new Discord.MessageEmbed() const aboutBotEmbed = new Discord.MessageEmbed()
.setTitle("About me!") .setTitle("About me!")
.setURL(`https://adat.link/awesomemod`) .setURL(`https://adat.link/awesomemod`)
.setAuthor(client.user.tag, client.user.avatarURL()) .setAuthor(client.user.tag, client.user.avatarURL())
.addField(`Servers`, client.guilds.size, true) .addField(`Servers`, client.guilds.size, true)
.addField(`Uptime`, client.uptime, true) .addField(`Uptime`, `${uptimeDays.toFixed(1)} days`, true)
.addField(`Invite Link`, `Click the title to add this bot to your server!`) .addField(`Invite Link`, `Click the title to add this bot to your server!`)
.setFooter(`Client ID: ${client.user.id}`) .setFooter(`Client ID: ${client.user.id}`)
.setTimestamp() .setTimestamp()

Loading…
Cancel
Save