Help with code
Bottian (1)

whenever I run the code it pops up with an unexpected end of input on the final line. any help would be appreciated as I already tried to fix this in several ways. thanks

You are viewing a single comment. View All
Coder100 (18871)

@Bottian line 21-27

db.get("Milestones").then(Milestones => {
  console.log(Milestones)
  client.on('message', message => {
  if (!Milestones || Milestones.length < 1) {
    db.set("Milestones", starterMilestones)
  }  
})
})

you also forgot another }).

Next time maybe try formatting your code better so these errors won't happen