How to make a string of code for nightbot to respond to a specific sentence

Hey @jcashton32!

You’re talking about such command: Nighbot responding to a sentence / command name with space - #6

It couldn’t be simpler, if your sentence is “Okay bud” and the reply is “Don't make me kill you,” then the command looks like this:

!addcom okay $(eval `$(query)`.toLowerCase().includes(`bud`)?`Don't make me kill you`:` `)
1 Like