Tuesday, March 8, 2011

Facebook chat bot.

Facebook is very popular. There are different programs, scripts people make for Facebook or using it. But not long ago I had a task to make Facebook bot application with minimum bot logic - just answer the messages. The answers were stored in a txt file and ahd format like key=answer. The bot searches for key in the received message and answers. If the key were not found then random answer from the second txt file. The bot was written in Delphi as a jabber (xmpp) client for Facebook chat. The bot works and now we add new features for the bot. It can be used not only for just an answering machine but for advertising - for example Travel Agency starts the bot, you need to know when is the airplane to England - you just send -= air England 30/03/2011 =- and the bot answers you when will be the plane. I think it is ideal for my bot.

No comments:

Post a Comment