Russianroulette command

Asked Aug 21, 2021·7 replies·Last activity 4 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.

Does anyone know how to make a !russianroulette command if so please let me know!

7 replies

Enter this into your chat:

!commands add !russianroulette $(eval Math.floor(Math.random() * 6) == 0 ? "You died" : "You survived")

It says invalid or unexpected token.

Can you show us exactly what you typed?

I typed !commands add !russianroulette $(eval Math.floor(Math.random() * 6) == 0 ? "You died" : "You survived")

You need to use one of these characters for the qoutes " ' or `
You are using “”

Didn't find your answer? The community is on Discord.

Ask on Discord