Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Dueling Alicebots

by patgas (Friar)
on Dec 17, 2001 at 20:31 UTC ( [id://132553]=CUFP: print w/replies, xml ) Need Help??

I threw this together to watch two Alicebots (http://www.alicebot.org/) have a discussion. I'm sure everyone's seen the same thing with chattering Elizas... Alice does provide a few entertaining quips once in a while, but it does have a tendency to get stuck in loops a lot.

ALICE 0: What made it so obvious?
ALICE 1: It's all part of God's mysterious plans.
ALICE 0: Which part?
ALICE 1: The large one, I think.

#/usr/bin/perl -w use strict; use LWP::Simple; use URI::Escape; use URI::URL; my $currentAlice = 0; my @bots = ( int( rand 999999 ) + 1, int( rand 999999 ) + 1 ); print "Enter starting text for ALICE $currentAlice: "; chomp( my $text = <STDIN> ); while (1) { print "ALICE $currentAlice: $text\n"; my $url = URI::URL->new( "http://alicebot.org/a.l.i.c.e./CHAT" ); $url->query_form( text => uri_escape( $text ), virtual => "alice$bots[$currentAlice]", submit => 'reply' ); my $source = get( $url ); next unless $source; $source =~ m,<font face=\"Helvetica\" color=black size=\+1>(.*?)<b +r></font></b>,s; $text = $1; $text =~ s/<[^>]*>//g; $text =~ s/\s+/ /sg; $currentAlice ^= 1; sleep( 1 ); }

Update: The URL I was using stopped working for some reason, and alicebot.org's version now uses a different URL altogether, so I changed it. It also goes a lot faster than before, so I put in a sleep.

"We're experiencing some Godzilla-related turbulence..."

Replies are listed 'Best First'.
Re: Dueling Alicebots
by Serious Callers Only (Novice) on Dec 24, 2001 at 02:10 UTC
    May i Ask? What is the new url of A.L.I.C.E bot?
      http://www.pandorabots.com/pandora/talk?botid=f3ea82041e3448c9
      there is the new URL

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: CUFP [id://132553]
Approved by root
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2026-04-21 16:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.