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
Hey @itstacobae!
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)
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.