From 118156d4b327c17974e42a90ec4772beba7809e7 Mon Sep 17 00:00:00 2001 From: TheMonDon <11539895+TheMonDon@users.noreply.github.com> Date: Thu, 25 Jul 2024 20:57:56 -0500 Subject: [PATCH] Fix moment duration --- commands/Economy/crime.js | 2 +- commands/Economy/rob.js | 2 +- commands/Economy/slut.js | 2 +- commands/Economy/work.js | 2 +- commands/Tickets/topic.js | 2 +- slash_commands/Economy/crime.js | 2 +- slash_commands/Economy/slut.js | 2 +- slash_commands/Economy/work.js | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/commands/Economy/crime.js b/commands/Economy/crime.js index 08a694d0..dbba0c5b 100755 --- a/commands/Economy/crime.js +++ b/commands/Economy/crime.js @@ -36,7 +36,7 @@ class Crime extends Command { } else { const timeLeft = moment .duration(timeleft) - .format('y[ years][,] M[ Months]d[ days][,] h[ hours][,] m[ minutes][, and] s[ seconds]'); // format to any format + .format('y[ years][,] M[ Months][,] d[ days][,] h[ hours][,] m[ minutes][, and] s[ seconds]'); // format to any format embed.setDescription(`You cannot commit a crime for ${timeLeft}`); return msg.channel.send({ embeds: [embed] }); } diff --git a/commands/Economy/rob.js b/commands/Economy/rob.js index 1e1c37f0..9f95b581 100755 --- a/commands/Economy/rob.js +++ b/commands/Economy/rob.js @@ -38,7 +38,7 @@ class Rob extends Command { } else { const tLeft = moment .duration(timeleft) - .format('y[ years][,] M[ Months]d[ days][,] h[ hours][,] m[ minutes][, and] s[ seconds]'); // format to any format + .format('y[ years][,] M[ Months][,] d[ days][,] h[ hours][,] m[ minutes][, and] s[ seconds]'); // format to any format embed.setDescription(`You cannot rob for ${tLeft}`); return msg.channel.send({ embeds: [embed] }); diff --git a/commands/Economy/slut.js b/commands/Economy/slut.js index b353a60b..a81e7bce 100644 --- a/commands/Economy/slut.js +++ b/commands/Economy/slut.js @@ -36,7 +36,7 @@ class Slut extends Command { } else { const tLeft = moment .duration(timeleft) - .format('y[ years][,] M[ Months]d[ days][,] h[ hours][,] m[ minutes][, and] s[ seconds]'); // format to any format + .format('y[ years][,] M[ Months][,] d[ days][,] h[ hours][,] m[ minutes][, and] s[ seconds]'); // format to any format embed.setDescription(`Please wait ${tLeft} to be a slut again.`); return msg.channel.send({ embeds: [embed] }); } diff --git a/commands/Economy/work.js b/commands/Economy/work.js index 7ffbe528..6c944125 100755 --- a/commands/Economy/work.js +++ b/commands/Economy/work.js @@ -32,7 +32,7 @@ class Work extends Command { } else { const tLeft = moment .duration(timeleft) - .format('y[ years][,] M[ Months]d[ days][,] h[ hours][,] m[ minutes][, and] s[ seconds]'); + .format('y[ years][,] M[ Months][,] d[ days][,] h[ hours][,] m[ minutes][, and] s[ seconds]'); embed.setDescription(`You cannot work for ${tLeft}`); return msg.channel.send({ embeds: [embed] }); } diff --git a/commands/Tickets/topic.js b/commands/Tickets/topic.js index 4ba4efc9..71776c26 100755 --- a/commands/Tickets/topic.js +++ b/commands/Tickets/topic.js @@ -51,7 +51,7 @@ class Topic extends Command { } else { const tLeft = moment .duration(timeleft) - .format('y[ years][,] M[ Months]d[ days][,] h[ hours][,] m[ minutes][, and] s[ seconds]'); // format to any format + .format('y[ years][,] M[ Months][,] d[ days][,] h[ hours][,] m[ minutes][, and] s[ seconds]'); // format to any format const embed = new EmbedBuilder() .setColor(msg.settings.embedErrorColor) .setAuthor({ name: msg.author.tag, iconURL: msg.author.displayAvatarURL() }) diff --git a/slash_commands/Economy/crime.js b/slash_commands/Economy/crime.js index 07ebf2b5..e63d9a58 100644 --- a/slash_commands/Economy/crime.js +++ b/slash_commands/Economy/crime.js @@ -37,7 +37,7 @@ exports.run = async (interaction) => { } else { const timeLeft = moment .duration(timeleft) - .format('y[ years][,] M[ Months]d[ days][,] h[ hours][,] m[ minutes][, and] s[ seconds]'); // format to any format + .format('y[ years][,] M[ Months][,] d[ days][,] h[ hours][,] m[ minutes][, and] s[ seconds]'); // format to any format embed.setDescription(`You cannot commit a crime for ${timeLeft}`); return interaction.editReply({ embeds: [embed] }); } diff --git a/slash_commands/Economy/slut.js b/slash_commands/Economy/slut.js index 617b6bf3..e34ccc1e 100644 --- a/slash_commands/Economy/slut.js +++ b/slash_commands/Economy/slut.js @@ -37,7 +37,7 @@ exports.run = async (interaction) => { } else { const tLeft = moment .duration(timeleft) - .format('y[ years][,] M[ Months]d[ days][,] h[ hours][,] m[ minutes][, and] s[ seconds]'); // format to any format + .format('y[ years][,] M[ Months][,] d[ days][,] h[ hours][,] m[ minutes][, and] s[ seconds]'); // format to any format embed.setDescription(`Please wait ${tLeft} to be a slut again.`); return interaction.editReply({ embeds: [embed] }); } diff --git a/slash_commands/Economy/work.js b/slash_commands/Economy/work.js index deaeb194..71b73bc3 100644 --- a/slash_commands/Economy/work.js +++ b/slash_commands/Economy/work.js @@ -35,7 +35,7 @@ exports.run = async (interaction) => { } else { const tLeft = moment .duration(timeleft) - .format('y[ years][,] M[ Months]d[ days][,] h[ hours][,] m[ minutes][, and] s[ seconds]'); + .format('y[ years][,] M[ Months][,] d[ days][,] h[ hours][,] m[ minutes][, and] s[ seconds]'); embed.setDescription(`You cannot work for ${tLeft}`); return interaction.editReply({ embeds: [embed] }); }