i'm following a tutorial in youtube (since i'm new to coding) and i'm practically coping to code in the video, but when i try to test the commands the bot doesn't send anything back, and i don't know if i misspelled something.
here's the code `
const Discord = require('discord.js');
const client = new Discord.Client({intents: 32767});
const prefix = '+';
client.once('ready', () => {
console.log('Miccussi Activated');
});
client.on('message', message =>{
if(!message.content.startsWith(prefix) || message.author.bot) return;
const args = message.content.slice(prefix.length).split(/ +/);
const command = args.shift().toLowerCase();
if(command === 'ping'){
message.channel.send('pong');
}
});
`
i actually searched for an answer but i found people only talking about intents, i initially tried to change the prefix hoping that it was the problem but the bot just didin't respond