App::TeleGramma::Plugin::Base - Base class for TeleGramma plugins
version 0.07
Provide the name of the plugin, in perl form (hierarchy delimited with '::') but without the leading App::TeleGramma::Plugin.
App::TeleGramma::Plugin
Provide the name of the plugin, with the '::' separators changed to '-', and the leading 'App::TeleGramma::Plugin::' removed.
Override this method in your subclass if you want to provide a default configuration for your plugin (apart from the "enabled" flag).
Override this method to provide a one-line synopsis of your plugin.
Override this method to register your plugin. It must setup any required listeners. See App::TeleGramma::Plugin::Core::Fortune for an example.
Read the configuration specific to this plugin.
Returns a hashref
Reply to a message, with text.
Should be provided the Telegram::Bot::Message object, and the text string to respond with.
Returns the path on disk that your plugin should store any data.
Returns an App::TeleGramma::Store object for you to persist your plugin data.
Justin Hawkins <justin@eatmorecode.com>
This software is copyright (c) 2017 by Justin Hawkins <justin@eatmorecode.com>.
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::TeleGramma, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::TeleGramma
CPAN shell
perl -MCPAN -e shell install App::TeleGramma
For more information on module installation, please visit the detailed CPAN module installation guide.