Company logo
  • Jobs
  • Bootcamp
  • About Us
  • For professionals
    • Home
    • Jobs
    • Courses
    • Questions
    • Teachers
    • Bootcamp
  • For business
    • Home
    • Our process
    • Plans
    • Assessments
    • Payroll
    • Blog
    • Calculator

0

78
Views
ReferenceError: websiteCheck is not defined discord.js

So I was basically coding a discord.js v12 bot and NodeJS keeps giving me this error even though websiteCheck is defined. If you can help thank you so much <3


function websiteCheck() {
    // im not showing code because it will advertise a website.
};
  const scheduledCheck = schedule.scheduleJob('*/1 * * * *', function(){
    console.log('Checking Status of site');
    websiteCheck()
});

7 months ago · Juan Pablo Isaza
1 answers
Answer question

0

So basically function wasnt being read somehow in the script, it started working with const websiteCheck = async function(){. Now its defined and everything is normal.

I don't know why function wasn't being read but oh well.

7 months ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post job Plans Our process Sales
Legal
Terms and conditions Privacy policy
© 2023 PeakU Inc. All Rights Reserved.