User Control Panel
Advertisements

HELP US, HELP YOU!

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


Joined: 05 Apr 2005
Posts: 24

Reputation: 13.7

PostPosted: Thu Apr 07, 2005 7:51 am    Post subject: Reply with quote

I am unable to find any CHAT2 protocol documentation.
Back to top
chiefy
Newbie
Newbie


Joined: 07 Apr 2005
Posts: 2

Reputation: 13.2

PostPosted: Thu Apr 07, 2005 12:42 pm    Post subject: Reply with quote

QUOTE(thesaboteur @ Apr 6 2005, 11:51 PM)
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 Very Happy

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?

Chiefy/Padua
Back to top
mattaustin
Sentinel
Sentinel


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

PostPosted: Thu Apr 07, 2005 5:38 pm    Post subject: Reply with quote

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


Joined: 07 Apr 2005
Posts: 2

Reputation: 13.2

PostPosted: Thu Apr 07, 2005 6:00 pm    Post subject: Reply with quote

QUOTE(mattaustin @ Apr 7 2005, 09:38 AM)
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?

chiefy_padua is the IM dude....
Back to top
thesaboteur
Newbie
Newbie


Joined: 05 Apr 2005
Posts: 24

Reputation: 13.7

PostPosted: Tue Apr 12, 2005 8:50 am    Post subject: Reply with quote

ALL Your Pings....

Code:
<br />sub do_one_loop{ <br />    my $self = shift;<br />    if(time >= ($self->{LastPing}+120)){<br />        $self->send(10,161,0,"109\xC0\x80$self->{YahooID}\xC0\x80");<br />        print "Ping Sent\n";<br />        $self->{LastPing} = time;<br />    }<br />


#This code works, if you experience problems, play with the interval and/or let me know.

-ibeinvisible
Back to top
malefactor
Member
Member


Joined: 27 Jan 2005
Posts: 109
Location: Lewiston, ME
Reputation: 17.7Reputation: 17.7

PostPosted: Wed Apr 13, 2005 2:04 am    Post subject: Reply with quote

QUOTE(thesaboteur @ Apr 12 2005, 12:50 AM)
ALL Your Pings....

Code:
<br />sub do_one_loop{ <br />    my $self = shift;<br />    if(time >= ($self->{LastPing}+120)){<br />        $self->send(10,161,0,"109\xC0\x80$self->{YahooID}\xC0\x80");<br />        print "Ping Sent\n";<br />        $self->{LastPing} = time;<br />    }<br />


#This code works, if you experience problems, play with the interval and/or let me know.

-ibeinvisible
[right][snapback]47677[/snapback][/right]


works great! I din't have to change the interval at all.
Back to top
thesaboteur
Newbie
Newbie


Joined: 05 Apr 2005
Posts: 24

Reputation: 13.7

PostPosted: Sat Apr 16, 2005 5:10 am    Post subject: Reply with quote

Im gonna put this out here and see how it goes.

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 Wink

YahooID=ibeinvisible

ThankYou.
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Sun Apr 17, 2005 1:27 am    Post subject: Reply with quote

After playing around with this, I found out how to send fonts and colors.

Message Color:
Put this at the beginning of the message string to be sent:
Code:
[#FF00FFm

Change #FF00FF to whatever color code to use for the font.

Font Face:
Immediately after that, add this:
Code:
<font face="Verdana">

Change Verdana to whatever font.

Styles:
Code:
After that you can use <b>, <i>, <u>, etc. like in normal HTML.


For example, for blue bold Verdana skyblue text:
Code:
[#0099FFm<font face="Verdana"><b>Hello world!</b>


Nifty stuff. Smile

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


Joined: 06 Aug 2004
Posts: 156
Location: Belgium
Reputation: 24.5Reputation: 24.5

PostPosted: Sun Apr 17, 2005 10:16 am    Post subject: Reply with quote

You might want to add the ASCII code for that odd char you printed there.
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Mon Apr 25, 2005 12:02 am    Post subject: Reply with quote

QUOTE(brother @ Apr 17 2005, 06:16 AM)
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/
Back to top
Mojave
Almost An Agent
Almost An Agent


Joined: 01 Nov 2003
Posts: 1434

Reputation: 66.4

PostPosted: Mon Apr 25, 2005 12:19 am    Post subject: Reply with quote

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.
Back to top
mattaustin
Sentinel
Sentinel


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

PostPosted: Mon Apr 25, 2005 12:19 am    Post subject: Reply with quote

QUOTE(Cer @ Apr 24 2005, 04:02 PM)
QUOTE(brother @ Apr 17 2005, 06:16 AM)
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.
[right][snapback]47998[/snapback][/right]


Laughing

Code:
"\x1B[#0099FFm<font face=\"Verdana\"><b>"

_________________
[ matt ]
Back to top
thesaboteur
Newbie
Newbie


Joined: 05 Apr 2005
Posts: 24

Reputation: 13.7

PostPosted: Tue Apr 26, 2005 6:43 am    Post subject: Reply with quote

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.

Enjoy.

-Ibeinvisible
Back to top
mattaustin
Sentinel
Sentinel


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

PostPosted: Tue Apr 26, 2005 7:10 am    Post subject: Reply with quote

wow no credits at all in you edit of the module Wink
_________________
[ matt ]
Back to top
thesaboteur
Newbie
Newbie


Joined: 05 Apr 2005
Posts: 24

Reputation: 13.7

PostPosted: Tue Apr 26, 2005 8:18 am    Post subject: Reply with quote

QUOTE(mattaustin @ Apr 26 2005, 02:10 AM)
wow no credits at all in you edit of the module Wink
[right][snapback]48032[/snapback][/right]


er Sad 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
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 Previous  1, 2, 3, 4  Next
Page 2 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