-1

Alright, so I was coding my discord bot (not going to put full code) and I got an unexpected token error. This had happened to me before, but I've tried to check for 2 hours straight and nothing really happened. Here's my code down below.

Node.js Unexpected Error Code

error picture error picture 2 Idk what to do really so it would really help if someone comments and tries to help me out. Thanks.

Smoothie
  • 1
  • 1

1 Answers1

1

You are missing the closing parenthesis ) that belongs to your client.on('message', ... argument list and its associated function curly brace. These belong right after your last if...else closing curly brace } based on a cursory review of your code.

// line 46 follows
}
}) // this is the missing brace and paren
client.login(...)
bburhans
  • 539
  • 3
  • 12