use Net::OSCAR qw (capabilities buddy_icon);<br /># or something like that, check the docs<br /><br /># what else you normally do: set up handlers,<br /># sign on, etc.<br /><br />sub signon_done {<br /> my $aim = shift;<br /><br /> # this is the signon-done handler.<br /><br /> # open the buddy icon<br /> open (ICON, "./icon.jpg");<br /> binmode ICON;<br /> my @data = <ICON>;<br /> close (ICON);<br /><br /> $aim->buddy_icon (join ("", @data));<br />}
Is there a way in Net::AIM? , I dont really wanna convert my whole bot to Net::Oscar just for buddy icon capabilities.
Currently there is no known way to do it in Net::AIM, and plus I think Net::AIM is a dead project--Net::OSCAR is updated more.
Or you could learn up the protocol and edit your Net::AIM to do buddy icons, and then come post here for other Net::AIM users and help the world . . . _________________ Current Site (2008) http://www.cuvou.com/
Try searching Google? MSN has a site all about its protocol but I don't know if there's an AIM one. Couldn't hurt to search though. _________________ Current Site (2008) http://www.cuvou.com/
I looked into the buddy icons... as far i can tell, the method is ->set_icon ... not "buddy_icon"...
But assuming that would have been discovered, has anyone had success with the advanced capabilities?
As a minimal test, I can't even make the aolim client show "capabilities: buddy icons" (you know, when you put the mouse over it, most bots only show "chat")
Net AIM is limited in capability compared to Oscar. _________________ Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
Hi, Net::OSCAR's lead developer here, I found this thread in my website's referer logs.
It isn't possible for Net::AIM to handle buddy icons, Net::AIM communicates with AOL's servers using a different protocol, called TOC, which doesn't support that functionality. However, the Net::OSCAR API is intentionally rather similar to the Net::AIM API, so switching over shouldn't be too hard. See the Net::AIM Compatibility section of the Net::OSCAR documentation. Oh, and I'm reorganizing the documentation for the next release, so you may like the newer version -- comments welcome.
Also:
Quote:
As a minimal test, I can't even make the aolim client show "capabilities: buddy icons" (you know, when you put the mouse over it, most bots only show "chat")
What does you Net::OSCAR::new call look like? It should look something like:
Oops, wrong thread :blink: _________________ Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
OOH! I have another suggestion for Net::OSCAR... make it better Win32 compatible. To get 1.0 to work on Windows, I had to comment out an entire block of code, and to get 1.1 to work on Windows I changed an "or die" to an "or print" in one of the modules.
So I don't know what I changed, but NOW the module works on Windows. So... if it works on Windows to begin with I won't have to change things and worry about what I just changed. :rolleyes: _________________ Current Site (2008) http://www.cuvou.com/
i feel silly, but still not working... i got capabilities showing now... After executing the following code, the module invokes my buddylist_error callback, which dutifully receieved 3 things:
(the hash ref), "10", and "deleting"
this makes sense according to docs... i got a buddylist error... anyone know what the "deleting" error means, and how to go about fixing?