Hard or soft taco

Asked Aug 6, 2021·1 reply·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

i wanna make a command where if you put !taco night bot gives the person either a hard of soft taco at random
How would i do that

1 reply

Hey @Dreamy Buffalo!

There are many examples on the forums of commands that will do exactly this: give a response or another randomly, please use the search bar before opening a new topic.
In the meantime, here's a solution:

/me gives a $(eval o=['hard, 'soft']; o[Math.floor(Math.random() * o.length)]) taco to $(touser)