Having some issues getting my code running. I suspect it might be due to me missing a matching }. However I’m not seeing it. A second set of eye would be very much appreciated.
if statement is missing ending brace }. also if client.login(mySecret) isn’t supposed to be part of your client.on(“message”) callback function then your callback function is also missing ending curly brace }.
I tried adding an extra curly brace, but now I’m getting a Unexpected token ‘)’ error on line 31. And the login line shouldn’t be part of the second client.on function.