Help creating a custom command

I need help creating a command similar to one I’ve seen in a twitch channel I follow. I’ll try to describe it as best as possible, the command has a variable with 2 outcomes, in one of them the response meant that the user was “successful” and nothing happens to them and the other the response triggers a timeout of 1 or 2 minutes.

Nightbot doesn’t support triggering Twitch moderation commands like /timeout or /ban from within a custom command. Even if you try to return those strings, Nightbot will just return an error. It won’t actually execute them.

That said, you can still create a fun command that randomly responds with something like “You got lucky” or “You would’ve been timed out!” as a playful effect. Here’s an example:

!commands add !fate $(eval Math.random() < 0.5 ? 'You got lucky... this time.' : 'Oof. You would’ve been timed out for 60 seconds!')
1 Like

That’s unfortunate, but still, thank you for your time and help!