Bot::Backbone::Service::Role::Service - Role implemented by all bot services
version 0.160630
All bot services must implement this role.
This is the name of the service configured for the bot. It will be unique for that bot.
This is a back link to the Bot::Backbone::Bot that owns this service.
This method will be called after construction, but before the event loop starts. This is where the service should initalize connections, prepare to receive messages, etc.
It will be passed no arguments.
This method will be called just before the bot destroys the service and exits. If called, your service is expected to terminate any pending jobs, kill any child processes, and clean up so that the bot will exit cleanly.
A default implementation is provided, which does nothing.
Andrew Sterling Hanenkamp <hanenkamp@cpan.org>
This software is copyright (c) 2016 by Qubling Software LLC.
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 Bot::Backbone, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Bot::Backbone
CPAN shell
perl -MCPAN -e shell install Bot::Backbone
For more information on module installation, please visit the detailed CPAN module installation guide.