Fixed missing variables
This commit is contained in:
2
events/messageCreate.js
Normal file → Executable file
2
events/messageCreate.js
Normal file → Executable file
@ -44,7 +44,7 @@ client.on("messageCreate", async (message) => {
|
||||
}
|
||||
|
||||
// update the wolf count
|
||||
wolfcount.findByIdAndUpdate("6447da87681fd1bc486a4923", {count: newcount}).then(() => {
|
||||
wolfcount.findByIdAndUpdate(`${process.env.UPDATEID}`, {count: newcount}).then(() => {
|
||||
console.log('Count updated!');
|
||||
}).catch((error) => {
|
||||
console.error(error);
|
||||
|
Reference in New Issue
Block a user