Posted: Sun Jul 03, 2005 6:48 pm Post subject: AIM Echo Bot
Here is a very simple AIM Bot. It just repeats what was said to it (plus a small message with it). I know Cer posted one that does the same thing, but I did not edit that one. I made this one myself. To make it simple, it is just 2 files. bot.pl and run.bat
To use AIM Echo Bot:
1. Open bot.pl in notepad (or another editor)
2. Fill in your bot's screenname and password in the appropriate location
3. Save bot.pl
4. Run run.bat
If you look at the coding in bot.pl, you will notice a bunch of callbacks that are commented out. They're just there for convenience. Either uncomment them, or delete them (or you can leave them there).
You do not need to leave any credit in the bot, but it would be nice if you did. You can download a .zip Here
Last edited by Cheater on Tue Jul 05, 2005 12:22 pm; edited 1 time in total
All those "callbacks" aren't callbacks at all, they are methods -- callbacks are there to handle events from the server, methods are to send commands.
$aim->findbuddy ($username) -- returns group(s) that $username exists in
$aim->add_buddy ($username) -- add a buddy to your buddylist
$aim->remove_group ($group) -- removes $group from your buddylist
Now I know why you came to me and asked why my bots didn't support many of the callbacks... it's because you didn't get what callbacks are.
On the Net::OSCAR docs, it's divided into different sections (i.e. buddylist stuff, chat stuff, IM stuff) and each section has a "Methods" and "Callbacks" -- the callbacks would be under the "Callbacks" section. _________________ Current Site (2008) http://www.cuvou.com/