I get the discord bot online but it doesn't replied

I get my discord bot online but it doesn’t replies when I type the command !ping
I tried for a few times and searching is there have any problem but still can’t fix it…
What’s the problem for the coding or did I did something wrong of the coding?

const Discord = require(‘discord.js’);

const client = new Discord.Client({
allowedMentions: {
parse: [‘users’, ‘roles’],
repliedUser: true,

intents: [


const prefix = ‘!’;

client.once(‘ready’, () => {
console.log(‘IM here!’);

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'){


Hi! Can you please share with us your project name?