From f122f84a0c04cb1a738eed6ac40598918672298c Mon Sep 17 00:00:00 2001 From: ION606 Date: Sun, 26 Jun 2022 08:26:01 +0300 Subject: [PATCH] added game classes and fixed the 'infinite work' issue --- commands/db/econ.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/db/econ.js b/commands/db/econ.js index 00b8e71..7b37d3a 100644 --- a/commands/db/econ.js +++ b/commands/db/econ.js @@ -224,7 +224,7 @@ function work(dbo, message, xp_list) { let date = fulldate.getDate(); dbo.find({"lastdayworked": {$exists: true}}).toArray(function(err, doc) { if (!String(doc)) { return message.reply("Your account doesn't exist, please contact the mods for support"); } - if (doc[0].lastdayworked == 111111) {//date + if (doc[0].lastdayworked == date) {//date message.reply("You've already worked today, try again tomorrow!"); } else { //Amount to be paid