3 ms·
If you use Linux/BSD you have Eliza under Alt-x (or Esc-x) doctor for Emacs. Also, under Perl set up cpanminus if you don't want to play with Emacs: curl
by anthk 3y ago
If you use Linux/BSD you have Eliza under Alt-x (or Esc-x) doctor for Emacs.
Also, under Perl set up cpanminus if you don't want to play with Emacs:
curl -L https://cpanmin.us | perl - App::cpanminus
~/perl5/bin/cpanm -n local::lib
echo 'eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)' >> ~/.profile
echo 'export PATH=$HOME/perl5/bin:$PATH' >> ~/.profile
Logout and login again. Install rivescript:
cpanm -n RiveSript
Try Eliza under RiveScript:
~/perl5/bin/rivescript ~/perl5/lib/perl5/RiveScript/demo/
If you want to create your own chatbot in RiveScript, the language it's pretty easy
and you can bind Perl functions, code and who knows to your bot, so if you
ask for the weather, for instance, you could call an HTTP module for Perl to call wttr.in for instance. Happy Hacking.