📅  最后修改于: 2022-03-11 15:01:27.482000             🧑  作者: Mango
//this is an event listener
client.on('message', message => {
// If message is ping
if (message.content === 'ping') {
// Send pong back
message.channel.send('pong');
}
});