Auto reply on typical word

Hi there,
is here any way to make Nightbot autoreply when someone write some word? If somone write word steam in some sentence, bot will autoreply.

Example:
harsolando: Hey dude, what’s you steam nickname?
Nightbot: My steam nickname is hars_cz.

Thanks :slight_smile:

This is not possible with Nightbot. Commands can only be triggered by the first word in the message.

The best you can do is having several identical commands with different trigger words (hey, what, can, etc.). HOWEVER, this won’t work property at the moment due to a Twitch chat bug (see https://discuss.dev.twitch.tv/t/empty-messages-are-sent-to-the-chat/12823).

!commands add hey $(eval `$(query)`.toLowerCase().includes("steam") ? "My steam nickname is hars_cz." : " ")

Until that bug is fixed, you can use a !steam command or a timer.

I suppose you could make “steam” a blacklisted word in Spam Protection and add your message as the custom message, but this a messy workaround that would timeout the user.

1 Like

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