Plugins are small auxiliary programs that help ttRobot to get data from user defined database system. It helps ttRobot meets the using of different users. When a command get message from a plugin, the complete command string sent by visitors will be transferred to the plugin, include the command and parameters, and plugin processes the command string, send the reply message back to ttRobot. This will also help users increase the AI of ttRobot and make it more like a human being.
It is very easy to make a plugin for users. The plugins are DLL programs that can be made with many develop tools, such as VC and delphi. In current version of ttRobot, you must define at lease two export functions in it. They are:
GetPluginInfo
This function return the information about this plugin to ttRobot, include name and current version.
GetReplyMessagePI
This function return the reply message back to ttRobot, include the text format and message type.
For example, in delphi, you must define them as below:
function GetPluginInfo(var sPluginName, CurrentVer:
PChar): Boolean; export; stdcall;

function GetReplyMessagePI(const sCommand, sMSNAccount:
PChar; var sReplyMessage,FN,EF,CO,CS: PChar; var sMessageType: Integer): Boolean;export; stdcall;
Before developping your Plugin, you must know more about the parameters of these two functions, please see "Parameters Description". There is also a simple example written by Delphi to help you knowing the plugin development.
Quick Links
Get a free account of Across-Mail Service
Home  ::  About us  ::  Product  ::  Purchase  ::  Support  ::  Partners idataexpress.com ©2008 | Privacy Policy | Webmaster