Comment parsing

View: New views
1 Messages — Rating Filter:   Alert me  

Comment parsing

by Denarius :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a strange and unusual problem!

I've inherited an AIML based chatbot which I've poked, prodded and generally cajoled into interfacing with one of the browser-based games I frequent. She can read chat and respond, and she can perform a few functions within the game. It's a handy thing to have :)

The problem is that one of the items in the game generates a code string when you're wearing it which looks *exactly* like AIML comment code - <!--viva-->. When the bot encounters someone wearing this item, she ignores them completely and doesn't parse any of their messages due to this comment code. She sees it in her logfile as:

Denarius: <!--viva--> Robot, are you awake?

and so completely ignores it, since the comment code breaks up the chat into fragments she's designed to ignore for robustness. Without the item she sees:

Denarius: Robot, are you awake?

and responds accordingly. Is there any way I can bypass comment coding and have her recognise and disregard the item's code, or am I going to have to find a different language to code her brains in?

Den.