NAME

irchal-seed - Creates a MegaHAL training file from logs generated by POE::Component::IRC::Plugin::Logger or irssi.

SYNOPSIS

irchal-seed <options>

Options:
  -f FORMAT, --format=NAME     Specify a log format (pocoirc or irssi)
  -c CASE, --case=CASE         The IRC server's case mapping (see below)
  -b NICK, --bot=NICK          The name of the IRC bot
  -r RX --ignore-regex=RX      A regex for lines to ignore
  -n NICK, --ignore-nick=NICK  A nickname to ignore

Input is accepted on STDIN, and output is delivered to STDOUT.

The --case option controls the second parameter passed to l_irc from POE::Component::IRC::Common. The defalt is 'rfc1459'. You usually don't have to change this. Consult that package's documentation for more details.

You should specify the --bot option if your bot was present when the channel was logged as it will strip the "botname: " part from message where users addressed the bot.

If your bot (or any other bot in the channel) can take commands that all start in a similar way, use the --ignore-regex option to ignore those lines, e.g. --ignore-regex='^!\w+' for bots that react to commands prefixed with '!'.

Example:
 # convert logs, ignoring lines containing URLs
 cat ~/logs/\#chan.log | irchal_seed -b MyBot -r '\w+://\w' > megahal.trn

AUTHOR

Hinrik Örn Sigurðsson, hinrik.sig@gmail.com

LICENSE AND COPYRIGHT

Copyright 2009 Hinrik Örn Sigurðsson

This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself.