Random quote command remodel
Random quote command remodel I'm fairly new to JS, I found this piece of code for a Discord bot, and I was wondering how I could make it so when someone typed !quote, the response doesn't tag the user, and require additional text to be typed along with the command from the user. Thanks if (command == "quote") { if (args[1] != null) message.reply(quote[Math.floor(Math.random() * quote.length).toString(16)]); // if args[1], post random answer else message.channel.send("!quote <your text here>"); } Sorry, but the code you posted doesn't seem to have anything to do with your question. What user are you talking about? What command? – Mark Meyer Jul 1 at 6:52 I guess reply replies to the user, and channel.send sends a message to the channel?! I'm fairly new to JS .....