discord random message

Solutions on MaxInterview for discord random message by the best coders in the world

showing results for - "discord random message"
Anton
06 Jul 2020
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});
similar questions
queries leading to this page
discord random message