App-RoboBot

 view release on metacpan or  search on metacpan

lib/App/RoboBot/Plugin/API/Kegerator.pm  view on Meta::CPAN

package App::RoboBot::Plugin::API::Kegerator;
$App::RoboBot::Plugin::API::Kegerator::VERSION = '4.004';
use v5.20;

use namespace::autoclean;

use Moose;
use MooseX::SetOnce;

use AnyEvent;
use Data::Dumper;
use HTTP::Request;
use JSON;
use LWP::UserAgent;
use URI;

use App::RoboBot::Channel;
use App::RoboBot::Response;

extends 'App::RoboBot::Plugin';

=head1 api.kegerator

Provides functions for monitoring and querying kegerator status. Currently only
supports OmniTI Kegerator API.

=cut

has '+name' => (
    default => 'API::Kegerator',
);

has '+description' => (
    default => 'Provides functions for monitoring and querying kegerator status. Currently only supports OmniTI Kegerator API.',
);

=head2 ontap

=head3 Description

Invoked with no arguments, displays the list of beers currently on tap. When
invoked with a tap number, displays detailed information on the beer available
on that tap.

=head3 Usage

[<tap number>]

=head3 Examples

    :emphasize-lines: 2-5,8

    (ontap)
    Tap 1: Tasmanian IPA (TIPA) (IPA - American) by Schlafly - The Saint Louis Brewery, Saint Louis, MO - 7.2% ABV, 93% remaining
    Tap 2: Resurrection (Brown Ale - Belgian) by The Brewer's Art, Baltimore, MD - 7.0% ABV, 97% remaining
    Tap 3: K-9 Cruiser Winter Ale (Winter Ale) by Flying Dog Brewery, Frederick, MD - 7.4% ABV, 84% remaining
    Tap 4: Crisp Apple (Cider) by Angry Orchard Cider Company, Cincinnati, OH - 5.0% ABV, 69% remaining

    (ontap 3)
    Tap 3: K-9 Cruiser Winter Ale (Winter Ale) by Flying Dog Brewery, Frederick, MD - 7.4% ABV, 84% remaining

=cut

has '+commands' => (
    default => sub {{



( run in 0.952 second using v1.01-cache-2.11-cpan-39bf76dae61 )