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’){
message.channel.sendMessage(‘Honestly just kill yourself,’ + message.author.username);
}
});
client.login(‘MzI4OTUyNTg1ODUzODYxODg4.DDLYew.6CvSdcp3Yi-4sTuW33ohniwKlCE’);
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.