User Control Panel
Advertisements

HELP US, HELP YOU!

AIM Echo Bot

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Cold Storage
View unanswered posts
Author Message
Cheater
Senior Member
Senior Member


Joined: 10 Jun 2005
Posts: 236

Reputation: 15.8Reputation: 15.8

PostPosted: Sun Jul 03, 2005 6:48 pm    Post subject: AIM Echo Bot Reply with quote

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
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Mon Jul 04, 2005 9:05 pm    Post subject: Reply with quote

I think you misread the OSCAR docs.

There are NOT that many callbacks in Net::OSCAR.

As a more specific example:
Code:
#   $oscar->set_callback_findbuddy(\&findbuddy);
#   $oscar->set_callback_commit_buddylist(\&commit_buddylist);
#   $oscar->set_callback_rollback_buddylist(\&rollback_buddylist);
#   $oscar->set_callback_reorder_groups(\&reorder_groups);
#   $oscar->set_callback_reorder_buddies(\&reorder_buddies);
#   $oscar->set_callback_rename_group(\&rename_group);
#   $oscar->set_callback_add_buddy(\&add_buddy);
#   $oscar->set_callback_remove_buddy(\&remove_buddy);
#   $oscar->set_callback_add_group(\&add_group);
#   $oscar->set_callback_remove_group(\&remove_group);


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/
Back to top
Cheater
Senior Member
Senior Member


Joined: 10 Jun 2005
Posts: 236

Reputation: 15.8Reputation: 15.8

PostPosted: Mon Jul 04, 2005 9:18 pm    Post subject: Reply with quote

So what's the main difference *edits coding*
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Cold Storage All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group