From 8b555a2cad5decdb29d480f1cc741ca998c2c786 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Sun, 14 May 2023 20:22:38 -0700 Subject: [PATCH] change wait for income message --- commands/collect-income.js | 8 +++++--- package.json | 2 +- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/commands/collect-income.js b/commands/collect-income.js index 9e77fb9..0dd3143 100644 --- a/commands/collect-income.js +++ b/commands/collect-income.js @@ -106,10 +106,12 @@ module.exports = { return interaction.send({ embeds: [success] }) } else { + let s = hoursBetweenDates * 60; + let timeTillIncome = client.secondsToDhms(s); + const error = new EmbedBuilder() - .setColor(client.config.Colors.Default) - .setTitle('Take a rest...') - .setDescription(`You've already worked a full day today. Take a rest and work tomorrow.`) + .setColor(client.config.Colors.Red) + .setDescription(`You've already collected your income this week. Wait **${timeTillIncome}** to collect again.`); return interaction.send({ embeds: [error] }) } diff --git a/package.json b/package.json index 63a8b81..d4d4d3a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dayz-armbands", - "version": "6.7.8", + "version": "6.7.9", "description": "A General Purpose Discord Bot for DayZ Servers.", "main": "index.js", "nodemonConfig": {