change wait for income message
This commit is contained in:
2 files changed
+6
-4
No files matched your search
@@ -106,9 +106,11 @@ module.exports = {
|
|||||||
return interaction.send({ embeds: [success] })
|
return interaction.send({ embeds: [success] })
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
let s = hoursBetweenDates * 60;
|
let date = banking.guilds[GuildDB.serverID].lastIncome;
|
||||||
let timeTillIncome = client.secondsToDhms(s);
|
date.setHours(date.getHours() + GuildDB.incomeLimiter);
|
||||||
|
diff = (date - now) / 1000;
|
||||||
|
let timeTillIncome = client.secondsToDhms(diff);
|
||||||
|
|
||||||
const error = new EmbedBuilder()
|
const error = new EmbedBuilder()
|
||||||
.setColor(client.config.Colors.Red)
|
.setColor(client.config.Colors.Red)
|
||||||
.setDescription(`You've already collected your income this week. Wait **${timeTillIncome}** to collect again.`);
|
.setDescription(`You've already collected your income this week. Wait **${timeTillIncome}** to collect again.`);
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "dayz-armbands",
|
"name": "dayz-armbands",
|
||||||
"version": "6.7.9",
|
"version": "6.7.10",
|
||||||
"description": "A General Purpose Discord Bot for DayZ Servers.",
|
"description": "A General Purpose Discord Bot for DayZ Servers.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"nodemonConfig": {
|
"nodemonConfig": {
|
||||||
|
|||||||
Reference in new issue
Block a user