Nightbot auto reply command

Asked Jan 6, 2021·6 replies·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.

Looking to have nightbot respond "No" if someone in chat types can I join or may I join. Is that possible?

6 replies

These do just that.

!addcom -cd=5 can $(eval decodeURIComponent(`$(querystring)`).toLowerCase()==`i join`?`No`:` `)
!addcom -cd=5 may -a=can $(query)

ok, so im an idiot. do I just copy and paste this?

ok, one last question haha. so I wanna do can I play, can I join do I just change where it says can

when I copy into chat, nothing happens :(

To detect 'can i play', the command response is

can $(eval [`i join`,`i play`].includes(decodeURIComponent(`$(querystring)`).toLowerCase())?`No`:` `)

Also the commands above are meant to be added through chat. If Nightbot doesn't respond then it's not in your chat (or if you're on YouTube then you're not live). Get Nightbot into chat first then add the commands, or directly add the commands through the dashboard.

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

Ask on Discord