Hey. I need an on TEXT command that will be triggered if the one of the words said matches at least 4 character (in a row) of a hash item. More specifically, I'm doing an away system.

EX: DeepSeaFisher goes away. His name is added to a hash table (the nick being the item and the data is the reason) Insted of someone having to say "DeepSeaFisher" in a sentence to trigger a "DeepSeaFisher is away" message, they could say Deep or Fish, or any other 4 letter chunk of a nick. The only part I need is the 4 letter trigger (in bold bellow)

<DeepSeaFisher> !away blah
<Bot> Your are now away for blah
<Jimmy> Where did Deep go?
<Bot> DeepSeaFisher is currently away

I believe this would be fairly simple. Please dont be confused by all my examples, I only tried to make it very clear of what I needed. Thanks in advance!

Thanks,
Austin Hammer


"God sometimes puts us in the dark for us to see the light"