User Control Panel
Advertisements

HELP US, HELP YOU!

Buddy Icon?!
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Bot Depot Forum Index -> AIM Protocol & questions
View unanswered posts
Author Message
-Mi-
Senior Member
Senior Member


Joined: 02 Aug 2004
Posts: 152
Location: In a special Place
Reputation: 24.5Reputation: 24.5

PostPosted: Thu Aug 05, 2004 3:42 pm    Post subject: Reply with quote

I searched the forum for a way to get a buddy icon into an aim bot but i didnt really find any exact syntax. Is there any way?
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Thu Aug 05, 2004 3:46 pm    Post subject: Reply with quote

Yes, with Net-OSCAR 1.11

Code:
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 />}


Search CPAN for Net::OSCAR. http://search.cpan.org/

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
-Mi-
Senior Member
Senior Member


Joined: 02 Aug 2004
Posts: 152
Location: In a special Place
Reputation: 24.5Reputation: 24.5

PostPosted: Thu Aug 05, 2004 3:48 pm    Post subject: Reply with quote

Is there a way in Net::AIM? , I dont really wanna convert my whole bot to Net::Oscar just for buddy icon capabilities.
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Thu Aug 05, 2004 3:49 pm    Post subject: Reply with quote

QUOTE(*lazy*- @ Aug 5 2004, 11:48 AM)
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 . . . Razz

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
-Mi-
Senior Member
Senior Member


Joined: 02 Aug 2004
Posts: 152
Location: In a special Place
Reputation: 24.5Reputation: 24.5

PostPosted: Thu Aug 05, 2004 3:56 pm    Post subject: Reply with quote

Where would I go to, to go about learning the aim protocal? Surprised
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Thu Aug 05, 2004 3:58 pm    Post subject: Reply with quote

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. Wink
_________________
Current Site (2008) http://www.cuvou.com/
Back to top
-Mi-
Senior Member
Senior Member


Joined: 02 Aug 2004
Posts: 152
Location: In a special Place
Reputation: 24.5Reputation: 24.5

PostPosted: Thu Aug 05, 2004 4:15 pm    Post subject: Reply with quote

Lol I think Il just stick with no buddy icon for now I tried to find the documentation for AIm protocol but its really hard to find Sad.
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Thu Aug 05, 2004 5:36 pm    Post subject: Reply with quote

You can still do something.

Make the bot send this link to the users (could be in an tag or by itself, your choice):

aim:BuddyIcon?sn=YourBotsScreenname&src=http://yoursite.com/buddyicon.jpg

So when the user clicks it, it'll set the bot's buddy icon for them. It's not as good but it works.

_________________
Current Site (2008)
http://www.cuvou.com/
Back to top
UnShavenGod
Young One
Young One


Joined: 26 Feb 2004
Posts: 99

Reputation: 28.7Reputation: 28.7Reputation: 28.7

PostPosted: Mon Aug 16, 2004 2:03 am    Post subject: Reply with quote

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")

any more clues? i can't figure it out.
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Mon Aug 16, 2004 2:23 am    Post subject: Reply with quote

I've gotten typing status working too. You <*lazy*>HAVE to use the command to end the status too, or the bot freezes (don't know why)

Code:
$aim->send_typing_status ($user, TYPINGSTATUS_STARTED);<br /><br />sleep(3);<br /><br />$aim->send_im ($user, $reply);<br /><br />$aim->send_typing_status ($user, TYPINGSTATUS_FINISHED);


And I got the capabilities to work on mine:

Quote:
CodyCKS
   Service: Unconfirmed Internet
   Warnings: 0%
   Online Time: 5 minutes
   Capabilities: Buddy Icon, Chat

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
alienz
Almost An Agent
Almost An Agent


Joined: 22 Mar 2004
Posts: 1436
Location: Mars
Reputation: 55.7

PostPosted: Mon Aug 16, 2004 4:33 am    Post subject: Reply with quote

http://www.bot-depot.com/forums/index.php?showtopic=4348

Net Oscar documentation-not hard to find at all

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
Back to top
matthewg
Newbie
Newbie


Joined: 17 Aug 2004
Posts: 5

Reputation: 21Reputation: 21

PostPosted: Tue Aug 17, 2004 9:24 am    Post subject: Reply with quote

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:
Code:
$oscar = Net::OSCAR->new(capabilities => [qw(typing_status extended_status buddy_icons)]);
Back to top
alienz
Almost An Agent
Almost An Agent


Joined: 22 Mar 2004
Posts: 1436
Location: Mars
Reputation: 55.7

PostPosted: Tue Aug 17, 2004 9:46 am    Post subject: Reply with quote

Oops, wrong thread :blink:
_________________
Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Tue Aug 17, 2004 5:25 pm    Post subject: Reply with quote

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/
Back to top
UnShavenGod
Young One
Young One


Joined: 26 Feb 2004
Posts: 99

Reputation: 28.7Reputation: 28.7Reputation: 28.7

PostPosted: Wed Aug 18, 2004 3:12 am    Post subject: Reply with quote

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?



Code:
<br />sub load_icon {<br />my $self = shift;<br />open (ICON, $ICON_FILE);<br />binmode ICON;<br />my @bits = <ICON>;<br />my $pic = join ("", @bits);<br />$l = length($pic);<br /><br />print "$l is length\n";<br />close ICON;<br />print "sending pic!!\n";<br />$self->set_icon($pic);<br /><br /><br />$self->commit_buddylist;<br />
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> AIM Protocol & questions All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 



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