Unexpected end of input in server.js

In my project imnotarobot.glitch.me, in the console it says:
Unexpected end of input
bla bla bla
,for the very last line in server.js, which is
client.login(“tokenhere”);
Any thoughts?
By the way I’ve put the token in ENV for security reasons :slight_smile:

found the mistake, you need to put the client.login outside of the message event

because you need to login to receive the message event

2 Likes

Thanks! I managed to find some stray brackets anyway, but that’s correct. Thanks!

1 Like