const Discord = require('discord.js');
const client = new Discord.Client();
const Prefix = '!';
client.once('ready', () => {
console.log('Bot is online!');
});
client.once('message', message=>{
let args = message.content.substring(Prefix.length).split(" ");
switch(args[0]){
case 'ping':
message.channel.send('pong');
break;
};
})
client.login('[Token]');
When i say !ping to my bot it says pong like i wanted but when i say it again it wont respond with ping