User Control Panel
Advertisements

HELP US, HELP YOU!

Getting a pandora bot sign on to MSN?

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Programming Challenges and AI thoughts
View unanswered posts
Author Message
Redshirt03
Newbie
Newbie


Joined: 18 Apr 2005
Posts: 9

Reputation: 13

PostPosted: Wed Apr 27, 2005 8:13 pm    Post subject: Reply with quote

I was wondering if ti would be possible to make a pandora bot sign into MSN messenger.
Anyone know how it works?
Back to top
darkmonkey
The Merovingian
The Merovingian


Joined: 18 Apr 2004
Posts: 2557
Location: London, England
Reputation: 39.3Reputation: 39.3Reputation: 39.3Reputation: 39.3
votes: 7

PostPosted: Tue Jul 12, 2005 8:25 pm    Post subject: Reply with quote

You can parse the web interface and relay messages, although this is slightly slow (2 second delay). PM me for code.
_________________
~ Josh
[ Need bot hosting on a dedicated server? PM me. ]
Back to top
mattaustin
Sentinel
Sentinel


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

PostPosted: Tue Jul 12, 2005 8:34 pm    Post subject: Reply with quote

Code:


use LWP::UserAgent;
my $browser = LWP::UserAgent->new;

print talk("efa7b76c9e967056","just  do what i say");

sub new{
$response = $browser->post('http://www.pandorabots.com/pandora/talk?botid=f5d922d97e345aa1&skin=custom_input');
$response->content =~ m/value="(.*?)"/s;
return $1;
}

sub talk{
($id, $input) = @_;
$response = $browser->post('http://www.pandorabots.com/pandora/talk?botid=f5d922d97e345aa1&skin=custom_input',
  [input => $input,botcust2 => $id],'Cookie' => "botcust2=$id",);
$res = $response->content;
while($res =~ m/<em> (.*?)<\/em>/gsi){$rep = $1;}
return $rep;
}


i run new for each user that talks to my bot then pass in that id with each message.
Back to top
CADD
Newbie
Newbie


Joined: 09 Sep 2006
Posts: 1


PostPosted: Sat Sep 09, 2006 9:27 pm    Post subject: HELP! Reply with quote

is this code floating around in C# anywhere?

i could REALLY use the help!

thank you in advance for your time.

CADD
Back to top
mat007
Almost An Agent
Almost An Agent


Joined: 12 Jan 2004
Posts: 1375

Reputation: 15.8Reputation: 15.8
votes: 2

PostPosted: Sun Sep 10, 2006 9:17 am    Post subject: Re: HELP! Reply with quote

CADD wrote:
is this code floating around in C# anywhere?

i could REALLY use the help!

thank you in advance for your time.

CADD


I dont know of anyone that knows C# on this forum. I also dont believe it's been translated.
Back to top
mattaustin
Sentinel
Sentinel


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

PostPosted: Sun Sep 10, 2006 11:17 pm    Post subject: Reply with quote

I personally havent done anythign in C# but it shouldnt be too hard to use:

HttpWebRequest and HttpWebResponse

first just post to: http://www.pandorabots.com/pandora/talk?botid=f5d922d97e345aa1&skin=custom_input

parse for value=""

use that id as the botcust2 cookie from then on.

_________________
[ matt ]
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Programming Challenges and AI thoughts All times are GMT
Page 1 of 1

 



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