Nighbot responding to a sentence / command name with space

You can do this with full sentences if you’d like:

!addcom FIRST_WORD $(eval `$(query)`.toLowerCase().includes(`REST_OF_THE_SENTENCE_IN_LOWER_CASE`)?`YOUR_RESPONSE`:` `)

I just didn’t to add more flexibility, but it’s up to you.

1 Like