From 55b8969eadc64abe614bf70b7e5134c90a94f7f9 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sat, 25 Mar 2017 18:01:31 +0000 Subject: [PATCH] Reverse Timestamps --- commands/botinfo/info.js | 2 +- commands/guildinfo/guildinfo.js | 2 +- commands/userinfo/userinfo.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/commands/botinfo/info.js b/commands/botinfo/info.js index d3b2a432..8e675ff5 100644 --- a/commands/botinfo/info.js +++ b/commands/botinfo/info.js @@ -31,7 +31,7 @@ module.exports = class InfoCommand extends commando.Command { .setAuthor(this.client.user.username, this.client.user.avatarURL) .setColor(0x00AE86) .setDescription('XiaoBot is your personal companion for your Discord Server!') - .setFooter(`©2017 dragonfire535 | Created ${moment.duration(this.client.user.createdTimestamp - Date.now()).format('y[ years], M[ months], w[ weeks, and ]d[ days]')} ago!`) + .setFooter(`©2017 dragonfire535 | Created ${moment.duration(Date.now() - this.client.user.createdTimestamp).format('y[ years], M[ months], w[ weeks, and ]d[ days]')} ago!`) .setThumbnail(this.client.user.avatarURL) .setURL('http://dragonfire535.weebly.com/xiaobot.html') .addField('Commands', diff --git a/commands/guildinfo/guildinfo.js b/commands/guildinfo/guildinfo.js index 763af9bb..7fa446d0 100644 --- a/commands/guildinfo/guildinfo.js +++ b/commands/guildinfo/guildinfo.js @@ -33,7 +33,7 @@ module.exports = class GuildInfoCommand extends commando.Command { .addField('**ID:**', message.guild.id, true) .addField('**Created On:**', - `${message.guild.createdAt}\n${moment.duration(message.guild.createdTimestamp - Date.now()).format('y[ years], M[ months], w[ weeks, and ]d[ days]')} ago.`, true) + `${message.guild.createdAt}\n${moment.duration(Date.now() - message.guild.createdTimestamp).format('y[ years], M[ months], w[ weeks, and ]d[ days]')} ago.`, true) .addField('**Default Channel:**', message.guild.defaultChannel, true) .addField('**Region:**', diff --git a/commands/userinfo/userinfo.js b/commands/userinfo/userinfo.js index bfbc88ec..39c62bc9 100644 --- a/commands/userinfo/userinfo.js +++ b/commands/userinfo/userinfo.js @@ -76,9 +76,9 @@ module.exports = class UserInfoCommand extends commando.Command { .addField('**ID:**', user.id, true) .addField('**Joined Discord On:**', - `${user.createdAt}\n${moment.duration(user.createdTimestamp - Date.now()).format('y[ years], M[ months], w[ weeks, and ]d[ days]')} ago.`, true) + `${user.createdAt}\n${moment.duration(Date.now() - user.createdTimestamp).format('y[ years], M[ months], w[ weeks, and ]d[ days]')} ago.`, true) .addField('**Joined Server On:**', - `${message.guild.member(user).joinedAt}\n${moment.duration(message.guild.member(user).joinedTimestamp - Date.now()).format('y[ years], M[ months], w[ weeks, and ]d[ days]')} ago.`, true) + `${message.guild.member(user).joinedAt}\n${moment.duration(Date.now() - message.guild.member(user).joinedTimestamp).format('y[ years], M[ months], w[ weeks, and ]d[ days]')} ago.`, true) .addField('**Status:**', stat, true) .addField('**Playing:**',