how to react to the latest message by a bot discord.js code example
Example: how to test on user reaction discord.js
client.on('messageReactionAdd', (reaction, user) => {
console.log('a reaction has been added');
});
client.on('messageReactionAdd', (reaction, user) => {
console.log('a reaction has been added');
});