can you help me create this command please

Asked Jul 28, 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.

is there a possibility of a command choosing between one of two users as the winner? Example:
-!test user1 user2
-nightbot: the winner is user2

1 reply

Yes

!addcom !com_name $(eval a=[`$(1)`,`$(2)`];a[Math.floor(Math.random()*2)])