•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Computer Science and Software Design section within the Software Development category of DaniWeb, a massive community of 455,965 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,655 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Computer Science and Software Design advertiser: Programming Forums
Views: 10640 | Replies: 2
![]() |
•
•
Join Date: Feb 2002
Location: Lawn Guylen, NY
Posts: 11,019
Reputation:
Rep Power: 33
Solved Threads: 116
Dani the Computer Science Gal
Do you run a computer-related website? Feature it in our niche link directory!
Do you run a computer-related website? Feature it in our niche link directory!
•
•
Join Date: Oct 2008
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
If you like to write a personal IM bot, just follow these simple steps:
Step 1: Go to imified.com and request an invite. You should also give your bot a decent name because you can have just one bot per email address.
Step 2. An email with a secret key should arrive in your Inbox the next minute. Copy that key to the clipboard and go here to redeem that key.
Step 3. 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. More here.
This is the source of the PHP script I wrote for the labnol IM bot - pretty self explanatory - it reads your message, gets the relevant data from Google Suggest and echoes it back to the IM window.
<?php
// Get all the related keywords from Google Suggest
$u = "http://google.com/complete/search?output=toolbar";
$u = $u . "&q=" . $_REQUEST['msg'];
// Using the curl library since dreamhost doesn't allow fopen
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $u);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$xml = simplexml_load_string(curl_exec($ch));
curl_close($ch);
// Parse the keywords and echo them out to the IM window
$result = $xml->xpath('//@data');
while (list($key, $value) = each($result)) {
echo $value ."<br>";
}
?>Step 4: Once your script is ready, put it somewhere on your web server and copy the full URI to the clipboard.
Now login to your imified account, paste the script URL and add that im bot your friends list. That’s it.
This was 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. See stuff that is already implemented in this list of most useful Google Talk bots.
also if interested in history ..
following link might help..
www.snipr.com/idell
http://en.wikipedia.org/wiki/Wikipedia:Creating_a_bot
Regards,
Avi...
www.idell1.com
Step 1: Go to imified.com and request an invite. You should also give your bot a decent name because you can have just one bot per email address.
Step 2. An email with a secret key should arrive in your Inbox the next minute. Copy that key to the clipboard and go here to redeem that key.
Step 3. 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. More here.
This is the source of the PHP script I wrote for the labnol IM bot - pretty self explanatory - it reads your message, gets the relevant data from Google Suggest and echoes it back to the IM window.
<?php
// Get all the related keywords from Google Suggest
$u = "http://google.com/complete/search?output=toolbar";
$u = $u . "&q=" . $_REQUEST['msg'];
// Using the curl library since dreamhost doesn't allow fopen
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $u);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$xml = simplexml_load_string(curl_exec($ch));
curl_close($ch);
// Parse the keywords and echo them out to the IM window
$result = $xml->xpath('//@data');
while (list($key, $value) = each($result)) {
echo $value ."<br>";
}
?>Step 4: Once your script is ready, put it somewhere on your web server and copy the full URI to the clipboard.
Now login to your imified account, paste the script URL and add that im bot your friends list. That’s it.
This was 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. See stuff that is already implemented in this list of most useful Google Talk bots.
also if interested in history ..
following link might help..
www.snipr.com/idell
http://en.wikipedia.org/wiki/Wikipedia:Creating_a_bot
Regards,
Avi...
www.idell1.com
![]() |
•
•
•
•
•
•
•
•
DaniWeb Computer Science and Software Design Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
ajax asp blog business software computer dell design developer development erp systems experiment firefox howto india intel internet it java linux media microsoft mmorpg msdn networking news office open open-source operating programming project management rss science security software software selection source sql sun super system technology evaluation toread vista warez web wiki windows xp
- How many times can you rep? (DaniWeb Community Feedback)
- so in order to create an aim bot... (*nix Software)
- building a bot (C++)
- I want to create an aim bot... (*nix Software)
- How to create a listing bot? (Computer Science and Software Design)
Other Threads in the Computer Science and Software Design Forum
- Previous Thread: Nested method calls in UML
- Next Thread: help for final year project title



Linear Mode