From da1866915b99e4d39970043a4fa91612c2207d30 Mon Sep 17 00:00:00 2001 From: ultimateplayer1999 Date: Wed, 26 Apr 2023 08:34:25 +0000 Subject: [PATCH] update --- client.js | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/client.js b/client.js index ede9176..6476b15 100644 --- a/client.js +++ b/client.js @@ -24,21 +24,6 @@ client.on("ready", () => { client.user.setStatus('dnd') }); -// client.once("ready", () => { -// // ensure that the bot stats document exists -// const wolfcount = new Wolfcount({ -// count: 0, -// validation: "count" -// }); - -// wolfcount.save().then(() => { -// console.log('Count document saved successfully into the database!'); -// }).catch(err => { -// console.log('Error while saving the count document', err); -// }); - -// }); - // Error handling client.on("error", (error) => { console.error("Something went wrong:", error); @@ -48,7 +33,7 @@ client.on("error", (error) => { const wolfChars = ['w', 'o', 'l', 'f']; // Find a document by validation -Wolfcount.findOne({ validation: 'count' }).then((countdocument) => { +Wolfcount.findOne({ validation: 'wolfcount' }).then((countdocument) => { console.log(countdocument); }).catch((error) => { console.error(error); @@ -83,7 +68,7 @@ client.on("messageCreate", (message) => { }).catch((error) => { console.error(error); }); - + // }) // Wolfcount.findByIdAndUpdate("6447da87681fd1bc486a4923", {count: newcount}, function(err, result){ // if(err){