So as the subject says I am trying to make a script that will auto answer the question. I know some things with $gettok but here is my problem:

Users says: Hi
Bot answers: Hello

there is a lot of these questions and answers in my txt file. They are separated by *. The data.txt file looks like that:
Hi*Hello
Come*Go
Away*Here
and so on..

On the left side is the text that user says, on the right is the answer wich bot should say. I dont know how to search the data.txt file and return the match line to use $gettok and return the answer. I have tried /help $read but it didn't help much.
Thanks for any help and happy new year wink