mirror of
https://github.com/ION606/selmerBot.git
synced 2026-05-15 05:36:54 +00:00
added game classes and fixed the 'infinite work' issue
This commit is contained in:
+1
-1
@@ -224,7 +224,7 @@ function work(dbo, message, xp_list) {
|
|||||||
let date = fulldate.getDate();
|
let date = fulldate.getDate();
|
||||||
dbo.find({"lastdayworked": {$exists: true}}).toArray(function(err, doc) {
|
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 (!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!");
|
message.reply("You've already worked today, try again tomorrow!");
|
||||||
} else {
|
} else {
|
||||||
//Amount to be paid
|
//Amount to be paid
|
||||||
|
|||||||
Reference in New Issue
Block a user