From 94038f2001de3d099c557b94fe7ad5a48034692b Mon Sep 17 00:00:00 2001 From: ChomeNS Date: Mon, 16 Jan 2023 16:10:51 +0700 Subject: [PATCH] uptime with days --- commands/uptime.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/uptime.js b/commands/uptime.js index 7747d0b..cbbb8fc 100644 --- a/commands/uptime.js +++ b/commands/uptime.js @@ -7,11 +7,11 @@ module.exports = { usage: '', trusted: 0, execute (bot, username, sender, prefix, args, config, hash, ownerhash, selector) { - const time = moment.utc(Math.floor(performance.now())).format('H [hours], m [minutes], s [seconds]') + const time = moment.utc(Math.floor(performance.now())).format('D [days], H [hours], m [minutes], s [seconds]') bot.tellraw(selector, [{ text: 'The bot\'s uptime is ', color: 'white' }, { text: time, color: 'green' }]) }, discordExecute (bot, username, sender, prefix, args, channeldc, message, config) { - const time = moment.utc(Math.floor(performance.now())).format('H [hours], m [minutes], s [seconds]') + const time = moment.utc(Math.floor(performance.now())).format('D [days], H [hours], m [minutes], s [seconds]') const Embed = new EmbedBuilder() .setColor(config.discord.embedsColors.normal) .setTitle('Bot\'s Uptime')