App::TimeTracker::Command::Post2IRC - App::TimeTracker plugin for posting to IRC
version 2.021
We use an internal IRC channel for internal communication. And we all want (need) to know what other team members are currently doing. This plugin helps us making sharing this information easy.
After running some commands, this plugin prepares a short message and sends it (together with an authentification token) to a small webserver-cum-irc-bot (Bot::FromHTTP, not yet on CPAN, but basically just a slightly customized/enhanced pastebin).
Bot::FromHTTP
The messages is transfered as a GET-Request like this:
http://yourserver/?message=some message&token=a58875d576e8c09a...
add Post2IRC to your list of plugins
Post2IRC
add a hash named post2irc, containing the following keys:
post2irc
The hostname of the server Bot::FromHTTP is running on. Might also contain a special port number (http://ircbox.vpn.yourcompany.com:9090)
http://ircbox.vpn.yourcompany.com:9090
A shared secret used to calculate the authentification token. The token is calculated like this:
my $token = Digest::SHA::sha1_hex($message, $secret);
none
After running the respective command, a message is sent to the webservice that will afterwards post the message to IRC.
~/perl/Your-Project$ tracker start --irc_quiet
Do not post this action to IRC.
Thomas Klausner <domm@cpan.org>
This software is copyright (c) 2011 by Thomas Klausner.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install App::TimeTracker, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::TimeTracker
CPAN shell
perl -MCPAN -e shell install App::TimeTracker
For more information on module installation, please visit the detailed CPAN module installation guide.