Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

324
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()
});

about 4 years 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.

about 4 years 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 vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!