I am unable to find any CHAT2 protocol documentation. [right][snapback]47576[/snapback][/right]
Whats the Plan with the YahooSimple Module, i've hacked it slightly to work via port forwards since sometimes my ssh port forwards lag <_<
By the way - great work dudez
I'm gonna start hacking it to handle event_codes - > something like:
$events = {
30 => sub { return '30 do some stuff' }, 69 => sub { return 'pant do some stuff' }, 42 => sub { return 'yup some stuff' }, 34 => sub { return 'yup some stuff' },
};
and clean up the protocol 'sub send' so we can update the protocol easily if they choose to change it (which they will)...
Make the do_loop more expandable etc etc and also make it into a server with configuration files, signal handlers, dynamic logging etc etc
Is there a cvs tree, patch update group? or any dev group for this - before i hack like crazy - to make it greater than it already is?
Joined: 19 Jul 2004 Posts: 556 Location: Los Angeles, CA votes: 1
Posted: Thu Apr 07, 2005 5:38 pm Post subject:
sorry there is no cvs tree, patch update group or any dev group for this just me and bigmouth (and maybe mojave ?) working on this...but im strapped for time right now... you welcome to working on it with us..
What i see needt to be done next:
1) Pings fix 2) is it possible to see who is online? 3) joining chat room
contact me on msn or yahoo and we will see what we can do to move foward i have also writen a few develpoment tools to help decode the packets if you want those. _________________ [ matt ]
sorry there is no cvs tree, patch update group or any dev group for this just me and bigmouth (and maybe mojave ?) working on this...but im strapped for time right now... you welcome to working on it with us..
What i see needt to be done next:
1) Pings fix 2) is it possible to see who is online? 3) joining chat room
contact me on msn or yahoo and we will see what we can do to move foward i have also writen a few develpoment tools to help decode the packets if you want those. [right][snapback]47583[/snapback][/right]
Indeed its possible to see who's online - this is event 30 returned (did it once already) - remove the top and bottom then regexp away - this returns the people online - the other one (65) i think shows you who's offline..
I'm up for hacking like a fish on this to get something kewl going - need to clean up the protocol so it can be quickly updated when yahoo change the protocol.
How do ya wanna work on it - bearing in mind no cvs resp?
I would really like to know if anyone else is working on this, and if so then does anyone want to work together on this. Or at least compare notes possibly?
I have chat join working now as well, I have everything parsed fairly well, so I can send and receive text while in a room now.
I also added in support for receiving commands from STDIN. This is usefull for things like (join room, quit, etc.)
There is also now support for scanning room/im text for commands
You might want to add the ASCII code for that odd char you printed there. [right][snapback]47804[/snapback][/right]
I don't know how to convert symbols back into their ASCII codes. __________________________
Anyhow, something I noticed from experimentation: if you run a Yahoo bot all by itself, it runs fine, but when I tried running it alongside by 2 AIM bots, 2 MSN bots, and HTTP daemon, it would not connect. Debugging, it gets an "Unknown event 30" followed by tons of garbled up data.
When I run it by itself, it still gives that "Unknown event 30" but the data is much smaller.
So maybe the pings are being delayed since it is being slowed by the AIM bots (AIM's loops are kinda slow), or it just can't loop enough in the early connection phases to even be able to sign on. _________________ Current Site (2008) http://www.cuvou.com/
You might want to sleep for a few seconds after making all of your connections and before you start the loops. I know I have to do this when I run multiple AIM and MSN bots from the same script. I sleep for 2 seconds to allow the MSN connection to "catch up". This might be needed for Yahoo as well.
Here's all of what I have so far: All commands start with a "." shell commands start with .@ if *nix Accepts commands via STDIN .j roomname .test .quit Accepts commands while in a room use .commands for a list. Can easily be modified to accept commands via im/pm's er whatever. Once you join a room it actually doesn't look to bad in a terminal window. Still has some weird bugs though sometimes. Im on mac os x so I dunno how well any of this will work on other platforms. It should have more professional looking callback systems setup for the event codes that I added but eh.
wow no credits at all in you edit of the module [right][snapback]48032[/snapback][/right]
er sorry, I took all the comments out, it just makes it easier for me to work on it. I should have put them back in but I got kinda bored working on it. So er anyways, all credit goes to mattaustin and his team. blah blah released under same license stuff blah and at least I didn't add in my own credits though, right? lol