|
| Author |
Message |
mattaustin Sentinel

Joined: 19 Jul 2004 Posts: 556 Location: Los Angeles, CA
  votes: 1
|
Posted: Fri Apr 01, 2005 7:04 pm Post subject: |
|
|
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 
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

Joined: 01 Nov 2003 Posts: 1434
 
|
Posted: Fri Apr 01, 2005 7:45 pm Post subject: |
|
|
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

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Fri Apr 01, 2005 7:54 pm Post subject: |
|
|
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 ).
Maybe you should add a section to msndev.com with the Yahoo protocol documentation.  _________________ Current Site (2008) http://www.cuvou.com/ |
|
| Back to top |
|
 |
fusioncroc Newbie

Joined: 05 Feb 2005 Posts: 30 Location: England
  
|
Posted: Fri Apr 01, 2005 10:09 pm Post subject: |
|
|
I've been testing yahoosimple for a few days and it works good except the pings  |
|
| Back to top |
|
 |
mattaustin Sentinel

Joined: 19 Jul 2004 Posts: 556 Location: Los Angeles, CA
  votes: 1
|
Posted: Fri Apr 01, 2005 10:10 pm Post subject: |
|
|
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

Joined: 01 Nov 2003 Posts: 1434
 
|
Posted: Fri Apr 01, 2005 10:28 pm Post subject: |
|
|
Apparently, I didn't think about this too much.
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

Joined: 09 Jan 2004 Posts: 1731
 
|
Posted: Fri Apr 01, 2005 10:38 pm Post subject: |
|
|
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

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Fri Apr 01, 2005 10:41 pm Post subject: |
|
|
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

Joined: 09 Jan 2004 Posts: 1731
 
|
Posted: Fri Apr 01, 2005 11:43 pm Post subject: |
|
|
| well lets just say i've never seen a person use it...ever.... |
|
| Back to top |
|
 |
Mojave Almost An Agent

Joined: 01 Nov 2003 Posts: 1434
 
|
Posted: Sat Apr 02, 2005 1:37 am Post subject: |
|
|
| 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.  |
|
| Back to top |
|
 |
Cer Upgraded Agent

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Sat Apr 02, 2005 1:47 am Post subject: |
|
|
Why don't you go with more standard module names? Last time I checked, Net::YIM is available. 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

Joined: 01 Nov 2003 Posts: 1434
 
|
Posted: Sat Apr 02, 2005 3:10 am Post subject: |
|
|
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

Joined: 09 Jan 2004 Posts: 1731
 
|
Posted: Sat Apr 02, 2005 9:23 am Post subject: |
|
|
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

Joined: 03 Feb 2004 Posts: 3776 Location: Michigan
  votes: 4
|
Posted: Sat Apr 02, 2005 7:08 pm Post subject: |
|
|
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 ).
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 ). _________________ Current Site (2008) http://www.cuvou.com/ |