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)
1var options = ["Your options", "Another option!", "This is an option."];
2var chosenOption = Math.floor(Math.random() * options.length);
3console.log(options[option]);
1client.on('message', msg => {
2const Responses = [
3 "رسالة 1",
4 "رسالة 2",
5 "رسالة 3",
6 "رسالة 4",
7 "رسالة 5"
8];
9const Response = Math.floor(Math.random() * Responses.length);
10 if (msg.content === 'رسالة') {
11 msg.reply(Responses[Response]);
12 }
13});