Perl Sample Code
Interested in building an IMified bot using Perl as your language? This sample code should get you started. Included in the download are individual files demonstrating each IMified method. reply.cgi is a CGI file designed to be placed in your web server's cgi-bin directory. The other files are command line scripts that will send messages, fetch users, and update your extended status message.
To run reply.cgi, copy it to your web server's cgi-bin directory
and make it executable with chmod 755 reply.cgi. In
your IMified account, add the url of the file you just uploaded to
your bot's url setting. Then start chatting with your bot. chat
with it a bit and your bot will tell you your userkey for the IM
account you're chatting from.
To run the other code samples, edit the botkey, user name, and password at the top of each file to include the correct authentication information for your bot. Where a userkey is required, you can use the one that your reply.cgi bot gave you -- that's the userkey for the IM account you were using to talk to the bot.
Run each file with perl filename.pl to see the
responses.