Originally Posted by bloke
Apologies in advance I've only been playing around with scripting for less than a day.

I've made a bot that randomly says a quote anytime some says the trigger word by itself example

if someone says

"Bananas"

The bot would trigger and say a random quote from a list.

Is there anyway to add a line in the script so the bot would pick up "Bananas" said in a full sentence.
Eg. "I'm going to buy some bananas today" and have the bot trigger?


I assume you have something line
Code
 On *:TEXT:Bananas:*: { SendBananaQuote }

simply expand it to
Code
 On *:TEXT:*Bananas*:*: { SendBananaQuote }

which will match any use of that word within any sentence (in other words within any text string).