Page 1 of 1

Is using Maps with Regular Expressions a good idea ?CHAT BOT

Posted: Wed May 22, 2013 5:45 pm
by Primoz128
Well i am writting an offline chat bot, and i am going to use regular expressions to check for user choices, which are going to unlock new responses from the chat bot.

Example: "What shall i do with my day ?" ---> Using some method idk which to use yet, bot will respond: "Pure Basic, cartoons, music, workout" ---> which are gona be checked using a Select statement with regular expression checking, then used as a key for a collection of bot's responses, to return us the next response string.

Now what i would like to know is, is this a good way of doing it ?