Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

discord.js random message

// Add here the messages you want to be displayed.
const messages = ["Message1", "Message2", "Message3", "Message4"]

const randomMessage = messages[Math.floor(Math.random() * messages.length)];

// The message will log into the console!
console.log(randomMessage)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #random #message
ADD COMMENT
Topic
Name
1+1 =