Is it possible for Nightbot to randomly pick one out of many choices?

Would it be possible to create a command that contains multiple choices and have Nightbot pick one of them at random? For example,having typed the names of 10 different characters in Nightbot’s website and when someone types !pick in chat,Nightbot replies with a single,randomly selected answer from the many different options.

!addcom !pick $(eval const responses = ['player1', 'player2', 'player3', 'player4', 'player5', 'player6', 'player7', 'player8', 'player9', 'player10']; responses[Math.floor(Math.random() * responses.length)];)

Replace player# with whatever you want, command structure taken from the 8ball command.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.