As I mentioned in my first reply, I had also been working on a Yahoo module, but I only appeared to be way off because Matt's code had the actual ASCII characters instead of \xC0\x80 and stuff.
But after seeing the ping fix in do_one_loop I realized why Matt's code looked so crazy, and went and dug up my old code and put \x's in there before all the encrypted stuff being sent to the server.
So I got my module to work properly, and then referenced Matt's code for some of the other things (as well as using the protocol documentation from http://www.venkydude.com/articles/yahoo.htm ), and so I have Net::YIM.
Many of the methods are similar to YahooSimple (because 1. I don't know where Matt's going to get his CHAT2 documentation, and 2. that Yahoo protocol documentation doesn't explain anything outside the current capabilities of YahooSimple and Net::YIM).
Something else I added in the 0.02 version is that sendMessage takes a hash of data so you can define a quick and simple message style easily without having to worry about the ASCII codes.
Code:
# So, instead of this:<br />$yim->sendMessage ($to,"\x1B[#ff00ffm<font face=\"Verdana\"><b>Hello!</b>");<br /><br /># You can do this:<br />$yim->sendMessage ($to, "Hello!", font => 'Verdana', color => '#ff00ff', style => 'B');
Anyway, my code is attached (yes it does give proper credit where it's due).
EDIT Mojave: I tried playing around with sleeps in the connecting process, still didn't work. When I tried running the Yahoo bot alone again (with the sleeps still there) it still didn't connect and gave the length data for event 30. So I think the problem is that it's not going fast enough, not that it's going too fast.
I'll have to work on that later. One idea is to make a thread for Yahoo connections so it can run at full speed, and then see if I can't merge the thread back into the main code later once it's connected. _________________ Current Site (2008) http://www.cuvou.com/
You should all join forces and create one robust working module. Having multiple versions (among people who are as close as these forums make us) is counter productive. Competition is one thing, but until there is at least one good working version, we should work together.
Joined: 19 Jul 2004 Posts: 556 Location: Los Angeles, CA votes: 1
Posted: Fri Apr 29, 2005 6:18 pm Post subject:
The only real difference i see at all is the sendmessage with font stuff, no other real issues resolved or changes made. I would like to see development working towards solving the issues before functionality is added. i would also like to see research so that we can use YMSG12 instead of CHAT2, so that we can use all functions of the client.
BTY If anyone was wondering i am using Yazak and packet sniffer instead of any doc. The docs mentioned in cer's module are mostly out or date and i haven't seen many other chat2 docs. _________________ [ matt ]
Joined: 19 Jul 2004 Posts: 556 Location: Los Angeles, CA votes: 1
Posted: Wed May 04, 2005 7:23 am Post subject:
we all know from your posts above than you didn't write MOST of this module cer, and without talking to me about it you released it on CPAN (i have asked for it to be removed) but you know whats really sad.............
when you use a program like h2xs because you don't know how a module really works and forget to even edit all of it
MAKEFILE.PL AUTHOR => 'A. U. Thor ') : ()),
come on cer i expect better "ripping of code" from you
Like mojave said everyone should work together on this. I have successfully created the auth part of YMSG12 but for now i wont release any of it because i don't want it ripped yet. This will allow all the features of the yahoo client, and hopefully solve some of the other auth problems we have seen.
So, anyone willing and able to start packet-sniffing to figure out the rest of this, let me know and I will explain the YMSG12 auth to you.
we all know from your posts above than you didn't write MOST of this module cer, and without talking to me about it you released it on CPAN (i have asked for it to be removed) but you know whats really sad.............
when you use a program like h2xs because you don't know how a module really works and forget to even edit all of it
MAKEFILE.PL AUTHOR => 'A. U. Thor ') : ()),
come on cer i expect better "ripping of code" from you
Like mojave said everyone should work together on this. I have successfully created the auth part of YMSG12 but for now i wont release any of it because i don't want it ripped yet. This will allow all the features of the yahoo client, and hopefully solve some of the other auth problems we have seen.
So, anyone willing and able to start packet-sniffing to figure out the rest of this, let me know and I will explain the YMSG12 auth to you.
Yahoo! [right][snapback]48180[/snapback][/right]
Some ages ago I did create module files from scratch, but after going out to read how Perl modules *should* be made (since I didn't pay attention to POD and all this other stuff), one site said to use h2xs to create your modules.
And h2xs creates a bunch of templates of all the modules, and that "A. U. Thor" stuff is their sample character (just like I use fake screennames like "SampleAIM" and "sample@msn.com" when I release my bots, they're examples). So forgetting to edit an h2xs file isn't "code ripping"
Also, I had already begun writing Net::YIM--which I originally intended for CPAN, hence the Net:: and not just calling it Yahoo.pm because CPAN wouldn't accept it--before you released YahooSimple.pm. The only problem with my code was that I was sending literal strings "C0 80" and not their ASCII things, \x
And so when I saw the do_one_loop ping fix, I saw \xC0\x80 and that made me realize what was wrong with my code, so I dug my code back up to work on it again and made those changes. I ran into small problems here and there which I corrected by referencing your code (i.e. the authentication process).
So I did *know* how to make a module, I only found out about h2xs when I was going out to learn how to write modules according to Perl standards. Doesn't make me a newbie. _________________ Current Site (2008) http://www.cuvou.com/
Joined: 19 Jul 2004 Posts: 556 Location: Los Angeles, CA votes: 1
Posted: Thu May 05, 2005 4:14 pm Post subject:
1) you have admitted cant packet sniff 2) you don't understand hex and ASCII 3) there is no real documentation on CHAT2
Despite all this you "wrote" this module. come on Cer i thought you were better than ripping code. All you had to do was talk to me about it, and we could actually work together on something.
From your own site:
PLA•GIAR•IST (n.) 1. The act of presenting another's work or ideas as your own. 2. A ******* moron. And that's the NICE way to put it. _________________ [ matt ]
1) you have admitted cant packet sniff 2) you don't understand hex and ASCII 3) there is no real documentation on CHAT2
Despite all this you "wrote" this module. come on Cer i thought you were better than ripping code. All you had to do was talk to me about it, and we could actually work together on something.
From your own site:
PLA•GIAR•IST (n.) 1. The act of presenting another's work or ideas as your own. 2. A ******* moron. And that's the NICE way to put it. [right][snapback]48204[/snapback][/right]
Maybe the same thing happened between Net::YMSG and Net::YahooMessenger, since their codes are also identical but were written by different people.
Anyway, yeah, that's it exactly, I'm just a stupid Perl n00b and totally ripped off your code because I don't know anything about programming and I don't even know Perl at all and I even ripped my site template and I didn't program my bots and I'm just like Scott Bowes or JoeX or whatever. And not to mention my uber newbieness with Perl, I don't even know what a variable looks like etc. etc. sorry you're just so great and wonderful etc. etc. _________________ Current Site (2008) http://www.cuvou.com/
and cer itdoes look a bit suspicious of how you were going to make one
but never actually released it untill matt released his[right][snapback]48206[/snapback][/right]
In my first reply to the topic I mentioned I made my own attempt at a module but was way off, since I was sending plaintext and not HEX codes, hence I didn't release it because it didn't work.
And the newbie stuff was what Matt implied over AIM, not a post in this topic. _________________ Current Site (2008) http://www.cuvou.com/
Cer, stop you bull you know its a rip. You said your self you do not know how to use a packetsniffer / or it doesn't work for you. and if you check every sub it looks exactly the same. like damn check the do_one_loop sub. stop being sucha *annoying* and take it off cpan or add matts name in the credits. If matt never released YahooSimple I garantee you wouldn't even know of CHAT2.
And you know whats even funnier the link you posted before http://www.venkydude.com/articles/yahoo.htm isn't even about the CHAT2 protocol (funny eh?), its actually for the YMSG Protocol so the code/protocol would be completely different if 'you' actually used the site for the protocol. (Not likely since you just copied and pasted and changed the vars)
- Don't even try to lie your way out of it. Your just being a plagiarist and perhaps a liar? wow I havn't seen that side of you before ... or have we and we just don't know about it hmm... ?
... sorry I havn't been on lately a lot of school stuff / work.
Cer, at least you can fill that empty space on the plagerists section of your site..i'll write a biography of you if you want. How do you spell "common theif" again? _________________ ~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
So i've been messing around a little bit with this again. It looks like ycht > chat2 is seriously broken. Im gonna go ahead and work on making a ycht login again. Then we'll have 3 protocols up and running so that someone could smash all the protocols together in 1 bot if they wanted to.
Im not gonna mess with chat2 anymore, if anyone wants the final versions of what I have just let me know.
Matt do you not want it given out anymore? I notice there's no downloads for this anymore, or at least it doesn't seem to work for me. Let me know.
So i've been messing around a little bit with this again. It looks like ycht > chat2 is seriously broken. Im gonna go ahead and work on making a ycht login again. Then we'll have 3 protocols up and running so that someone could smash all the protocols together in 1 bot if they wanted to.
Im not gonna mess with chat2 anymore, if anyone wants the final versions of what I have just let me know.
Matt do you not want it given out anymore? I notice there's no downloads for this anymore, or at least it doesn't seem to work for me. Let me know.