File: simple

package info (click to toggle)
libchatbot-eliza-perl 1.08-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 256 kB
  • sloc: perl: 935; makefile: 2
file content (15 lines) | stat: -rwxr-xr-x 299 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl -w

use Chatbot::Eliza;

$chatbot = new Chatbot::Eliza 'Liz';

# seed the random number generator
srand( time ^ ($$ + ($$ << 15)) );    

print "\nWelcome to your therapy session.\n";
print "Your therapist's name is ", $chatbot->name;
print ".\n\n";

$chatbot->command_interface();