I need a script that will return results based on its 'special' format.
A user will search through the file using a public command.
The results will be played to the user as a query with a timer to make sure the bot does not flood out.
If someone is currently receiving messages from the bot and someone else uses the search script - it will add him to a queue spot, will inform of the user what his spot is and when hes done with #1 he'll move to #2 in line and #3 in line and so on untill the queue is done.
The text file format is as follows... notice that it will only return results that match the search text in the Brackets:
(Wizard vs. Giant) Has +3 power.
(Wizard vs. Giant) Wizard Eats pie for breakfast
(Wizard vs. Giant) Knows how to clean his own house, unlike the Giant.
(Frog vs. Bird) Frog Needs atleast 4 meals a day
(Frog vs. Bird) Frog is as fast as the Wizard and two times faster than Bird.
(The Hamster vs. The Dog) The Dog is evil, the Hamster is not.
(The Hamster vs. The Dog) The Dog is hungry, the Hamster is not.
An example of how the script would work:
Notice it did NOT return the Frog vs. Bird stat that talks about the Wizard:<User> !Stats Wizard
<Bot> (Wizard vs. Giant) Has +3 power.
<Bot> (Wizard vs. Giant) Eats pie for breakfast
<Bot> (Wizard vs. Giant) Knows how to clean his own house, unlike the Giant.
(Frog vs. Bird) Frog is as fast as the Wizard and two times faster than Bird.
Please help.