User Control Panel
Advertisements

HELP US, HELP YOU!

YahooSimple 1.0 (BETA) <-----!
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic    Bot Depot Forum Index -> Yahoo Protocol & modules
View unanswered posts
Author Message
mattaustin
Sentinel
Sentinel


Joined: 19 Jul 2004
Posts: 556
Location: Los Angeles, CA
Reputation: 50.7
votes: 1

PostPosted: Fri Apr 01, 2005 7:04 pm    Post subject: Reply with quote

A known problem is the pings not working proply and the bot will logoff for no reason.

i know bigmouth is also working on a cleaner version of the module, and we will post that soon.

Thanks for testing everyone Smile

my yahoo: mattrrnu

Code:
<br />#!/usr/bin/perl  <br />use YahooSimple;  <br /><br />my $yahoo = new YahooSimple( 'YahooID'  => "YahooId",<br />                               'Password' => "password");  <br /><br />$yahoo->setHandler( 'Connected' => \&Connected );<br />$yahoo->setHandler( 'Message' => \&Message );<br /><br />$yahoo->Connect();  <br /><br />$yahoo->do_one_loop while(1);  <br /><br />sub Connected{<br />      my $yahoo = shift;<br />      $yahoo->SendMessage("YahooId","<ding>");<br />      $yahoo->SendMessage("YahooId","<b>I Connected :)</b>");<br />  }  <br /><br />sub Message{<br />      my $yahoo = shift;<br />      my($from, $message) = @_;<br />      print "($from, $message)\n";<br />      $yahoo->SendMessage($from,"you said: $message");<br />}<br />

_________________
[ matt ]
Back to top
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Fri Apr 01, 2005 7:45 pm    Post subject: Reply with quote

I was hoping this newer version would fix the problems I've been having. But it hasn't. I have not gone through the code to find out why this is happening, but I'll list the known issues in case anyone else has them. I'm using the example bot.

1) When I send a message to the bot, I see the incoming message printed in the console, but I get no response, meaning SendMessage isn't working for me.

2) I must send messages to the bot at least as fast as every 15 seconds or the bot stops seeing incoming messages altogether. The bot receives "SERVER: 10,20,138,0,3910533859" (last 2 numbers vary) and that's when I fail to get any more Message events.

3) The bot stays online forever, even after I kill the process. However after bringing it back online, I am able to send messages to it until I get that SERVER message again.

4) When I was initially testing this a few weeks ago with matt, I had the bot responding, but not going offline.

5) I can sign on myself as the new yahoo account I created for my bot and it works fine.

I'm guessing that other people have the client working fine, so it must be me. Just thought I'd mention these problems to see if anyone has anything similar. I'm going to try creating a new Yahoo account - maybe I triggered some weird anomaly with my account in the earlier testing phases.
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Fri Apr 01, 2005 7:54 pm    Post subject: Reply with quote

Surprised Wow, I was way off in my attempt at a module. I was sending a bunch of stuff like "C0 80 00 00 00 00 1 C0 80 $username C0 80 etc." kinda stuff (that VB tutorial was no help for Perl Razz ).

Maybe you should add a section to msndev.com with the Yahoo protocol documentation. Smile

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
fusioncroc
Newbie
Newbie


Joined: 05 Feb 2005
Posts: 30
Location: England
Reputation: 15.8Reputation: 15.8

PostPosted: Fri Apr 01, 2005 10:09 pm    Post subject: Reply with quote

I've been testing yahoosimple for a few days and it works good except the pings Razz
Back to top
mattaustin
Sentinel
Sentinel


Joined: 19 Jul 2004
Posts: 556
Location: Los Angeles, CA
Reputation: 50.7
votes: 1

PostPosted: Fri Apr 01, 2005 10:10 pm    Post subject: Reply with quote

mojave, i think the no replys is because of the id im sending when the user is on your list.... (diffrent for new people vs buddies) and trillian is strict about it. Ill loook into that.
_________________
[ matt ]
Back to top
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Fri Apr 01, 2005 10:28 pm    Post subject: Reply with quote

Apparently, I didn't think about this too much. Razz

So, I tried using the bot with Yahoo Messenger instead of Trillian and it works somewhat better. SendMessage works, but the bot signs out automatically after 20 seconds of inactivity. I assume that is related to the pings?

Trillian must have a bad Yahoo plugin.
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Fri Apr 01, 2005 10:38 pm    Post subject: Reply with quote

but it could still use some time spent on it...Yahoo isnt THAT popular and people only use it because its there...with programs LIKE trillian, miranda...

so that will be the majority of people
:DJust realised how easiy it will be to make my bot multi-clientable
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Fri Apr 01, 2005 10:41 pm    Post subject: Reply with quote

Actually I think more people use the standard Yahoo client over Trillian. Yahoo has a lot of features that none of the multimessengers support, such as Yahoo Avatars, audibles, IMvironments, buzzes, etc.

Or, for terms of familiarity, MSN ripped a lot of Yahoo's features (audibles = winks, buzzes = nudges, avatars = dynamic display pictures, imvironments = backgrounds, etc.)

So I'd think more users would use the standard client.

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


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Fri Apr 01, 2005 11:43 pm    Post subject: Reply with quote

well lets just say i've never seen a person use it...ever....
Back to top
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Sat Apr 02, 2005 1:37 am    Post subject: Reply with quote

Quote:
:DJust realised how easiy it will be to make my bot multi-clientable


It will be even easier if you start using my Sonora Interface Manager. I plan to write a wrapper for Yahoo.pm once it is more stable. If you were using Sonora, you wouldn't have to change any code in your bot, but simply add a connection to Yahoo and it would work. Wink
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Sat Apr 02, 2005 1:47 am    Post subject: Reply with quote

Why don't you go with more standard module names? Last time I checked, Net::YIM is available. Razz Then you can register it with CPAN and benefit the whole Perl community, not just us here at Bot-Depot.
_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Sat Apr 02, 2005 3:10 am    Post subject: Reply with quote

mattaustin and I were talking about moving MSN.pm into Net::IM::MSN and this new Yahoo module could move there too. I wanted MSN to be Net::MSN, but that is taken on CPAN (the guy who has it was recently on the forums, I don't know how many people are using his modules). Anyway, I kind of like putting them under Net::IM because it groups all of the IM protocols in once place rather than letting them bounce around in the larger Net:: even though Net::Oscar and Net::Aim and Net::Jabber are already there.

Thoughts?
Back to top
Dazzy
Agent
Agent


Joined: 09 Jan 2004
Posts: 1731

Reputation: 72.3

PostPosted: Sat Apr 02, 2005 9:23 am    Post subject: Reply with quote

hmm, i started working with senora and stopped for some reason.....
Hasnt it goto be upgraded every time msn.pm is though?
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Sat Apr 02, 2005 7:08 pm    Post subject: Reply with quote

QUOTE(Mojave @ Apr 1 2005, 10:10 PM)
mattaustin and I were talking about moving MSN.pm into Net::IM::MSN and this new Yahoo module could move there too. I wanted MSN to be Net::MSN, but that is taken on CPAN (the guy who has it was recently on the forums, I don't know how many people are using his modules). Anyway, I kind of like putting them under Net::IM because it groups all of the IM protocols in once place rather than letting them bounce around in the larger Net:: even though Net::Oscar and Net::Aim and Net::Jabber are already there.

Thoughts?
[right][snapback]47457[/snapback][/right]


Yeah. We could create a new Net::IM::AIM (it's easy to find OSCAR protocol docs out there, and Net::OSCAR is some really complex code, so like even if you find the info on file transfers in OSCAR, it's a whole different matter to implement them into your Net::OSCAR Razz ).

So we could simplify that and then we'd have
Code:
Net::IM<br />   ::Yahoo<br />   ::MSN<br />   ::AIM


Or

We could just call it Net::MSNIM and Net::YIM (you could probably come up with something better than Net::MSNIM, but Net::MSN and Net::MSMGR are already taken Razz ).

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
thesaboteur
Newbie
Newbie


Joined: 05 Apr 2005
Posts: 24

Reputation: 13.7

PostPosted: Wed Apr 06, 2005 5:26 am    Post subject: Reply with quote

Would anyone be willing to take about a 10 - 15 minute ethereal capture of a client running chat2 (yahelite maybe?).

I can't get yahoo's browser client to login to chat2. If so, or you know of a chat2 client that will work on macosx/linux please let me know.

Reachable via yahoo 'ibeinvisible'

Im also looking for a complete list of id codes. (Mainly chat room related ones now)

Ping still does not work correctly, hence the need for some ethereal action Smile
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Yahoo Protocol & modules All times are GMT
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 



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