Skip to content

Commit

Permalink
Fix moment duration
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMonDon committed Jul 26, 2024
1 parent db29ae9 commit 118156d
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion commands/Economy/crime.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] });
}
Expand Down
2 changes: 1 addition & 1 deletion commands/Economy/rob.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] });
Expand Down
2 changes: 1 addition & 1 deletion commands/Economy/slut.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] });
}
Expand Down
2 changes: 1 addition & 1 deletion commands/Economy/work.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] });
}
Expand Down
2 changes: 1 addition & 1 deletion commands/Tickets/topic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() })
Expand Down
2 changes: 1 addition & 1 deletion slash_commands/Economy/crime.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] });
}
Expand Down
2 changes: 1 addition & 1 deletion slash_commands/Economy/slut.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] });
}
Expand Down
2 changes: 1 addition & 1 deletion slash_commands/Economy/work.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] });
}
Expand Down

0 comments on commit 118156d

Please sign in to comment.