Daemonise::Plugin::Slack - Daemonise Slack plugin
version 2.13
use Daemonise; my $d = Daemonise->new(); $d->debug(1); $d->foreground(1) if $d->debug; $d->config_file('/path/to/some.conf'); $d->load_plugin('Slack'); $d->configure; # send a message to the default 'log' channel $d->notify("some text"); # send a message to the specified slack channel $d->notify("some text", 'channel');
Arguments: $msg is the message to send. $room is the room to send to. $severity is the type of message. $notify_users is whether the message will mark the room as having unread messages (ignored for now). $message_format indicates the format of the message. "html" or "text" (ignored for now). More details at https://www.slack.com/docs/api/method/rooms/message
Lenz Gschwendtner <norbu09@cpan.org>
This software is copyright (c) 2013 by Lenz Gschwendtner.
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 Daemonise, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Daemonise
CPAN shell
perl -MCPAN -e shell install Daemonise
For more information on module installation, please visit the detailed CPAN module installation guide.