1// Add here the messages you want to be displayed.
2const messages = ["Message1", "Message2", "Message3", "Message4"]
3
4const randomMessage = messages[Math.floor(Math.random() * messages.length)];
5
6// The message will log into the console!
7console.log(randomMessage)
1client.on('messageReactionAdd', (reaction, user) => {
2 console.log('a reaction has been added');
3});
1client.on("message", message => {
2 if (message.content.toLowerCase() === 'Hello') {
3 message.channel.send("**Hey! What's Up?**")
4 }
5})
6// This Will Print "Hey! What's Up?" When Someone Says "Hello" //