The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Bot::Backbone::Service::Role::Service - Role implemented by all bot services

VERSION

version 0.161950

DESCRIPTION

All bot services must implement this role.

ATTRIBUTES

name

This is the name of the service configured for the bot. It will be unique for that bot.

bot

This is a back link to the Bot::Backbone::Bot that owns this service.

REQUIRED METHODS

initialize

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.

METHODS

shutdown

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.

AUTHOR

Andrew Sterling Hanenkamp <hanenkamp@cpan.org>

COPYRIGHT AND LICENSE

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.