Help with custom command

I would like to create a command where the bot sends a message in the chat whenever a message in the chat contains a certain word, regardless of where it is written in the message. Example:

Chat: bla bla bla -the word- bla bla bla

Nightbot: -show message-

Chat: -a word- bla bla bla

Nightbot: -show message-

Chat: bla bla bla -the word-

Nightbot: -show message-

The closest I got was to create a command where if the chat message contains ONLY the word in question, the bot responds, but that does not satisfy my need.

Could someone please help me?

This isn’t possible since by design a command only triggers if its name is the first word in a user’s message.

1 Like

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