I'm going to revisit this since I've spent some time still trying to figure that out, but being unable to get it to do what I actually want.

The Hash Table is just a complication I'm not understanding. I mean, I get how it works in the way explained, but I don't see how it'd help with what I'm wanting.

I guess it's my fault as I've not fully explained what I have been wanting this bot to do.

As it is, the hash table recognizes words being said, but only acknowledges that the words are found. What I want is something I can dynamically change at any time to suit my needs, and it seems if I want to change things instantly, I might need to delete the hash table and remake it.. or reboot mirc after making changes.

I'd really rather just do something based on a text file.

As for what I want the bot to do? It's simple. I want it to pick up words and respond in either a message or in channel a different word, and to do it if there's multiples in the same post. The Hashtable thing seems to pick up multiples of different words, but it just responds with 'found it'.

I want it to go..., let's say the words are Red, Blue and Yellow.

I want it to respond with Green, Purple and Orange.. separately, of course.

"I had a cool blue and red notebook."

I want the bot to go "Purple! Green!" in response. If it can do it in the same response instead of splitting it, that'd be nice.

The reason I'm struggling with the hash table is I'm trying to get it to do all of that.. but so far I'm at 'Red Recognized.' 'Blue Recognized', but not the response I want.

That's why the Hash table thing comes across as 'nonsense' to me. I should also explain that I have a bit of a communication and learning disability. I don't grasp things right away. Sometimes I don't grasp things at all. If it's 'easy' to you, that's cool. smirk

Last edited by Mythos; 30/09/15 04:41 AM.