Thursday, 2 May 2013

Create Your Own Instant Messenger Bot (Yahoo!, GTalk, etc.)

Create Your Own Instant Messenger Bot (Yahoo!, GTalk, etc.)

If you like to write a personal IM
bot, just follow these simple steps:-

Step 1: Go to www.imified.com and
register a new account with a bot.

Step 2: Now it’s time to create a
bot which is actually a simple script
that resides on your public web
server.
It could be in PHP, Perl, Python or
any other language.
Example Hello World bot:
The example below illustrates just
how easy itis to create a bot.
This example is coded in PHP.
<?php
switch ($_REQUEST['ste p']) {
case 1:
echo "Hi, what's your name?";
break;
case 2:
echo "Hi " . $_REQUEST['valu e1'] .
", where do you live?";
break;
case 3:
echo "Well, welcome to this hello
world bot, ".$_REQUEST['val ue1'] .
"<br>from ".$_REQUEST['val ue2'] .
".<reset>";
break;
}
?>

Step 3: Once your script is ready,
put it somewhere on your web
server and copy thefull URL to the
clipboard.

Step 4: Now login to your imified
account, paste the script URL
Screen Name: freeman@bot.im
Bot Script URL: http:// ­
www.yoursite.in/ imbot.php

Step 5: Add that im bot your friends
list. That’sit.
This is a very basic bot but the
possibilities are endless.
For instance, you could write a bot
that will send an email to all your
close friends via a simple IM
message. Or you could write one
that will does currency conversion.

 Nis/Buz


0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home