Trying to code a discord bot

So I am trying to make a discord bot but there is something wrong with something in my code apparetly.

This is the code:
const Discord = require(‘discord.js’);
const client = new Discord.Client();

client.on(‘ready’, () => {
console.log(‘The bot is online!’);

client.on(‘message’, message => (
if(message.content === ‘!hello’){‘Honestly just kill yourself,’ +;


Im getting an error message that looks like this:

Please tell me what I can do to fix this… I just don’t understand what is happening.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.