Basically what I'm trying to do is whenever the person says %message it sends a random message from the list. However, it's just spitting back a number at me, ranging between 1-6, rather than the actual message.
I've tried to figure out what I'm doing wrong by reading similar threads but I'm not having any luck.
Here is my code:
if(command === 'message')
const messages = [
'message1', 'message2', 'message3', 'message4', 'message5', 'message6'
];
const random = Math.floor(Math.random() * messages.length);
message.reply(random);