Don't know what wrong,how to fix it?

SyntaxError: Invalid or unexpected token
    at Object.Actions.eval (/app/bot.js:335:15)
    at Object.Actions.evalMessage (/app/bot.js:345:14)
    at Object.action [as Send Message] (/app/actions/send_message.js:163:20)
    at Object.Actions.callNextAction (/app/bot.js:538:18)
    at Object.<anonymous> (/app/actions/add_member_role.js:123:9)
    at process._tickCallback (internal/process/next_tick.js:68:7)
SyntaxError: Invalid or unexpected token
    at Object.Actions.eval (/app/bot.js:335:15)
    at Object.Actions.evalMessage (/app/bot.js:345:14)
    at Object.action [as Send Message] (/app/actions/send_message.js:163:20)
    at Object.Actions.callNextAction (/app/bot.js:538:18)

    at Object.action [as Find Channel] (/app/actions/find_channel.js:147:8)
    at Object.Actions.callNextAction (/app/bot.js:538:18)
    at Object.<anonymous> (/app/actions/send_message.js:167:9)
    at process._tickCallback (internal/process/next_tick.js:68:7)

The error seems to be pointing to a specific line of code in your bot.js. What’s the code at that location?

1 Like

Did you put space somewhere or something? I remember I got that error when I put space inside something that I wanted to be blank but didn’t work