为什么此if语句导致此JS代码出现问题?

I currently have a discord.js bot running on my server from this tutorial. However, when I put the if statement for listening for messages in, the node.js refuses to start it. Said if statement:

if (message.content === '!ping') {
    message.channel.send('Pong.');
}
评论