fix uptime calculation

This commit is contained in:
Jonny_Bro (Nikita) 2024-02-27 16:51:37 +05:00
parent b9d7dfa51c
commit 91d1e37be0
No known key found for this signature in database
GPG key ID: 391C19BE62D36B33

View file

@ -60,7 +60,7 @@ class Stats extends BaseCommand {
{
name: client.customEmojis.status.online + " " + interaction.translate("general/stats:ONLINE_TITLE"),
value: interaction.translate("general/stats:ONLINE_CONTENT", {
time: `<t:${Math.floor((Date.now() + client.uptime) / 1000)}:R>`,
time: `<t:${Math.floor((Date.now() - client.uptime) / 1000)}:R>`,
}),
},
{