NAME
App::SpreadRevolutionaryDate::Freenode - Subclass of App::SpreadRevolutionaryDate to handle spreading on Freenode.
VERSION
version 0.05
METHODS
new
Constructor class method, subclassing Bot::BasicBot
. Takes one mandatory argument: $config
which should be an App::SpreadRevolutionaryDate::Config
object. Returns an App::SpreadRevolutionaryDate::Freenode
object.
spread
Spreads a message to Freenode channels configured with the multivalued option channels
. Takes one mandatory argument: $msg
which should be the message to spread as a characters string. If test
option is set the message is spreaded on channels configured with the multivalued option test_channels
. Takes also one optional boolean argument, if true (default) authentication and spreading to Freenode is performed, otherwise, you've got to run use POE; POE::Kernel-
run();> to do so. This is only used for testing, when multiple bots are needed. You can safely leave this optional argument unset.
AUTHOR
Gérald Sédrati-Dinet <gibus@cpan.org>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2019 by Gérald Sédrati-Dinet.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007