Bot::Babelfish - Provides Babelfish translation services via an IRC bot
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.
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
babel from to: some text to translate
to are ISO-639 two-letters codes representing the languages. See http://babelfish.altavista.com/ for the list of supported languages.
babel: fr en: ceci n'est pas une pipe <babel> English for "ceci n'est pas une pipe" => "this is not a pipe"
Shows how to use this bot.
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.
Sébastien Aperghis-Tramoni, <firstname.lastname@example.org>
Please report any bugs or feature requests to
email@example.com, 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.
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.