1<client>.on('message', message => {
2 if (message.content === '!ping') {
3 message.channel.send('Pong.');
4 } else if (message.content.startsWith('beep')) {
5 message.channel.send('Boop.');
6 }
7});
8// The client is the bot itself.
9// You would have defined this at the top of your index.js/app.js
10// It would look like 'const client = new Discord.Client()'
11// Put that in place for '<client>' and remove the <>