📅  最后修改于: 2022-03-11 15:02:02.096000             🧑  作者: Mango
//I USE THIS IN DISCORD.JS V12. OTHER THINGS MAY NEED OTHER CODE.
const replies = ['reply1', 'reply2', 'reply3']; //Extend this if you want more messages.
const result = Math.floor(Math.random() * replies.length); //This will choose a random response.
//Use ${replies[result]} at your message if you want to add it to something else.
message.channel.send(`${replies[result]}`); //You can even change text around it, pretty cool.