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

I’m trying to make night bot work with streamelements chat bot to go through the dialogue of the duel on Mustafar from Revenge of the Sith. I’ve been looking up how to do this and found a thread that said that this string: FIRST_WORD_OF_THE_SENTENCE $(eval$(query).includes(REST_OF_THE_SENTENCE)?RESPONSE: ; )

It may be the correct string but I can’t seem to figure out how to get it to work. The next line that I need in the dialogue is “Don’t make me kill you”

This may be a simple thing but I’m new to this and it’s confusing to me. Thanks!!

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

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