Bot::Babelfish - Provides Babelfish translation services via an IRC bot
Version 0.04
use Bot::Babelfish; my $bot = Bot::Babel->new( nick => 'babel', name => 'Babelfish bot', server => 'irc.perl.org', channels => [ '#mychannel' ] )->run
This module provides the backend for an IRC bot which can be used as an interface for translation services using Babelfish.
Initializes private data.
Main function for interacting with the bot object. It follows the Bot::BasicBot API and expect an hashref as argument. See "COMMANDS" for more information on recognized commands.
Bot::BasicBot
Prints usage.
This function returns a printable version of the given string (with a European value of "printable" :-). More precisely, if the string only contains Latin-1 characters, it is returned decoded from internal Perl format. If the string contains others characters outside Latin-1, it's converted using Text::Unidecode.
:-)
Text::Unidecode
babel from to: some text to translate
Where from and to are ISO-639 two-letters codes representing the languages. See http://babelfish.altavista.com/ for the list of supported languages.
from
to
Examples
babel: fr en: ceci n'est pas une pipe <babel> English for "ceci n'est pas une pipe" => "this is not a pipe"
babel help
Shows how to use this bot.
babel version
Prints the version of this module and its dependencies.
(F) Occurs in init(). As the message says, we were unable to create a new object of the given class.
init()
Bot::BasicBot, Text::Unidecode
Sébastien Aperghis-Tramoni, <sebastien@aperghis.net>
Please report any bugs or feature requests to bug-bot-babel@rt.cpan.org, or through the web interface at https://rt.cpan.org/NoAuth/Bugs.html?Dist=Bot-Babelfish. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-bot-babel@rt.cpan.org
Copyright 2005 Sébastien Aperghis-Tramoni, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Bot::Babelfish, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::Babelfish
CPAN shell
perl -MCPAN -e shell install Bot::Babelfish
For more information on module installation, please visit the detailed CPAN module installation guide.