Send a response to a common phrase

Asked Aug 30, 2020·3 replies·Last activity 5 years ago·Open in Discord ↗
Archived from the original community forum
Things may have changed since it was written. Still stuck? Ask the community on Discord.

I mod for a rocket league streamer and people ask things like "how do i 1v1 him" a lot. Is there a way for nightbot to respond to a specific, multiple word phrase without any exclamation points?

3 replies

Yes it is possible. I would suggest this:

!addcom how $(eval a="$(query)".toLowerCase();if(a!="do i 1v1 him"&&a!="do i 1v1 him?"){b=" "}else{b="RESPONSE"};b)

RESPONSE is what you want it to say, feel free to ask any questions.

awesome, thanks. where in that would I put $(touser) if needed?

You would just put it on the response part that’s the only thing you should change.