!commands add !AorB A|B

I want to make a command like i type “!AB” then out A or B with equal probability

but this !commands add !AB A|B
will give A|B along ,
how to make this “or” operator successful ?


Use an RNG with a ternary operator in $(eval)

!addcom -cd=5 !ab $(eval Math.round(Math.random())?`A`:`B`)
1 Like

thank you .
u r amazing!

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