Personal License


  • Perpetual license (does not expire)
  • 1 site, unlimited servers
  • No distribution (hosted use only)
  • Commercial use allowed
$4.99 Read License

14 Day money-back guarantee

Full refund within 14 days of purchase date.

You need to log-in or create an account
  • Create an account
  • Log-in

Please use your real name.

Activation link will be sent to this address.

Minimum 8 characters

Enter your password again

Clicking this button confirms you read and agreed to the terms of use and privacy policy.

  • Released: May 8, 2011
    Last Update: May 6, 2011
  • Language: PHP
  • Category: Social media

Tatiana - IRC Ttranslate Bot

Tatiana - IRC Ttranslate Bot
Developed by zbt, Released May 8, 2011

Quickly IRC message translate bot. Supports all languages supported by Google Translate.

PHP

Tags: bot , irc , tatiana , translate

You do not understand Russians, Italians or Germans on IRC channels? Use Tatiana to translate for you.

Back to top

Configuration

  1. Open tatiana.php in your source editor
  2. Set up the configuration options in the $CFG array (fully commentated in the class)
  3. Set chmod 777 on the log path defined in $CFG['logPath']
  4. Run tatiana.php in php-cli
Back to top

Usage

When Tatiana joins your channel, you need to send login command:

!login passwd

where:

  • ! - defined in $CFG['command'];
  • login - login command;
  • passwd - defined in $CFG['password']

Tatiana commands:

login         Login to bot
cmd      Execute shell command end sending result to channel
join           Joined to channel
part           Leave channel
trans       Starting translate for user  by language pair
transClear              Stop translating
bye                     Disconnect and stop script

receives two language ISO code separated by 2. Examples:

  • en2pl - English to Polish
  • ru2jp Russian to Japanese

See full list on the Google Translate API reference.

Back to top

Example session

03:28 -!- Irssi: Join to #tatiana was synced in 1 secs

03:28 < zbt> !login passwd

03:28 <@tat1ana> zbt: Logged in

03:28 < zbt> !trans zbt pl2en

03:28 <@tat1ana> Translate pl2en started -> zbt

03:29 < zbt> jakis ciag znakow do przetlumaczenia

03:29 <@tat1ana> (pl2en) some sequence of characters to translate

03:29 < zbt> odwrocenie jezykow

03:29 <@tat1ana> (pl2en) reversal of languages

03:29 < zbt> !trans zbt en2pl

03:29 <@tat1ana> Translate en2pl started -> zbt

03:30 < zbt> anybody life ?

03:30 <@tat1ana> (en2pl) ktoś żyje?

03:30 < zbt> !transClear

03:30 < zbt> !cmd ver

03:30 <@tat1ana> Microsoft Windows [Wersja 6.0.6000]

03:31 < zbt> !bye

03:31 -!- tat1ana [~tat1ana@ffn****.pl] has quit [Client Quit]

User Reviews

No reviews have been submitted yet.

Questions & Comments


Or enter your name and Email
No comments have been posted yet.
You must be logged-in to vote. Log-in to your account or register now.