App-RoboBot

 view release on metacpan or  search on metacpan

META.json  view on Meta::CPAN

            "DateTime" : "0",
            "DateTime::Format::Pg" : "0",
            "EV" : "0",
            "Exporter::Easy" : "0",
            "File::HomeDir" : "0",
            "File::ShareDir" : "0",
            "FileHandle" : "0",
            "Getopt::Long::Descriptive" : "0",
            "HTML::TreeBuilder::LibXML" : "0",
            "HTML::TreeBuilder::XPath" : "0",
            "HTTP::Request" : "0",
            "IPC::Open2" : "0",
            "JSON" : "0",
            "JSON::Path" : "0",
            "LWP::Protocol::https" : "0",
            "LWP::Simple" : "0",
            "LWP::UserAgent" : "0",
            "Lingua::EN::Tagger" : "0",
            "List::Util" : "0",
            "Log::Dispatch::Screen" : "0",
            "Log::Log4perl" : "0",

META.yml  view on Meta::CPAN

  DateTime: '0'
  DateTime::Format::Pg: '0'
  EV: '0'
  Exporter::Easy: '0'
  File::HomeDir: '0'
  File::ShareDir: '0'
  FileHandle: '0'
  Getopt::Long::Descriptive: '0'
  HTML::TreeBuilder::LibXML: '0'
  HTML::TreeBuilder::XPath: '0'
  HTTP::Request: '0'
  IPC::Open2: '0'
  JSON: '0'
  JSON::Path: '0'
  LWP::Protocol::https: '0'
  LWP::Simple: '0'
  LWP::UserAgent: '0'
  Lingua::EN::Tagger: '0'
  List::Util: '0'
  Log::Dispatch::Screen: '0'
  Log::Log4perl: '0'

Makefile.PL  view on Meta::CPAN

    "DateTime" => 0,
    "DateTime::Format::Pg" => 0,
    "EV" => 0,
    "Exporter::Easy" => 0,
    "File::HomeDir" => 0,
    "File::ShareDir" => 0,
    "FileHandle" => 0,
    "Getopt::Long::Descriptive" => 0,
    "HTML::TreeBuilder::LibXML" => 0,
    "HTML::TreeBuilder::XPath" => 0,
    "HTTP::Request" => 0,
    "IPC::Open2" => 0,
    "JSON" => 0,
    "JSON::Path" => 0,
    "LWP::Protocol::https" => 0,
    "LWP::Simple" => 0,
    "LWP::UserAgent" => 0,
    "Lingua::EN::Tagger" => 0,
    "List::Util" => 0,
    "Log::Dispatch::Screen" => 0,
    "Log::Log4perl" => 0,

Makefile.PL  view on Meta::CPAN

  "EV" => 0,
  "Exporter::Easy" => 0,
  "ExtUtils::MakeMaker" => 0,
  "File::HomeDir" => 0,
  "File::ShareDir" => 0,
  "File::Spec" => 0,
  "FileHandle" => 0,
  "Getopt::Long::Descriptive" => 0,
  "HTML::TreeBuilder::LibXML" => 0,
  "HTML::TreeBuilder::XPath" => 0,
  "HTTP::Request" => 0,
  "IPC::Open2" => 0,
  "JSON" => 0,
  "JSON::Path" => 0,
  "LWP::Protocol::https" => 0,
  "LWP::Simple" => 0,
  "LWP::UserAgent" => 0,
  "Lingua::EN::Tagger" => 0,
  "List::Util" => 0,
  "Log::Dispatch::Screen" => 0,
  "Log::Log4perl" => 0,

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

$App::RoboBot::Plugin::API::Github::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.github

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

    if (ref($path) eq 'ARRAY') {
        $uri->path_segments(@{$path});
    } else {
        $uri->path($path);
    }

    if (defined $args && ref($args) eq 'HASH' && scalar(keys(%{$args})) > 0) {
        $uri->query_form($args);
    }

    my $req = HTTP::Request->new( GET => $uri->as_string );

    if (exists $self->bot->config->plugins->{'github'}{'user'} && exists $self->bot->config->plugins->{'github'}{'token'}) {
        $req->authorization_basic(
            $self->bot->config->plugins->{'github'}{'user'},
            $self->bot->config->plugins->{'github'}{'token'}
        );
    }

    my $response = $self->ua->request($req);

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

$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

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

    if (ref($path) eq 'ARRAY') {
        $uri->path_segments(@{$path});
    } else {
        $uri->path($path);
    }

    if (defined $args && ref($args) eq 'HASH' && scalar(keys(%{$args})) > 0) {
        $uri->query_form($args);
    }

    my $req = HTTP::Request->new( GET => $uri->as_string );

    my $response = $self->ua->request($req);

    return unless $response->is_success;

    my $json;
    eval {
        $json = decode_json($response->decoded_content);
    };

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

use v5.20;

use namespace::autoclean;

use Moose;
use MooseX::SetOnce;

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

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

extends 'App::RoboBot::Plugin';

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

    if (ref($path) eq 'ARRAY') {
        $uri->path_segments(@{$path});
    } else {
        $uri->path($path);
    }

    if (defined $args && ref($args) eq 'HASH' && scalar(keys(%{$args})) > 0) {
        $uri->query_form($args);
    }

    my $req = HTTP::Request->new( GET => $uri->as_string );
    $req->header( 'Content-type'  => 'application/json' );
    $req->header( 'Authorization' => sprintf('Token token=%s', $group->{'api_key'}) );

    my $response = $self->ua->request($req);

    return unless $response->is_success;

    my $json;
    eval {
        $json = decode_json($response->decoded_content);

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

    $uri->scheme('http');
    $uri->host('api.microsofttranslator.com');
    $uri->path('/v2/Http.svc/Translate');

    $uri->query_form({
        from => $from,
        to   => $to,
        text => $text,
    });

    my $req = HTTP::Request->new( GET => $uri->as_string );
    $req->header('Authorization' => sprintf('Bearer %s', $self->token));

    my $res = $self->ua->request($req);

    return unless $res->is_success;

    my $translation;

    eval {
        $translation = XML::LibXML->load_xml(

t/00-report-prereqs.dd  view on Meta::CPAN

                                      'DateTime' => '0',
                                      'DateTime::Format::Pg' => '0',
                                      'EV' => '0',
                                      'Exporter::Easy' => '0',
                                      'File::HomeDir' => '0',
                                      'File::ShareDir' => '0',
                                      'FileHandle' => '0',
                                      'Getopt::Long::Descriptive' => '0',
                                      'HTML::TreeBuilder::LibXML' => '0',
                                      'HTML::TreeBuilder::XPath' => '0',
                                      'HTTP::Request' => '0',
                                      'IPC::Open2' => '0',
                                      'JSON' => '0',
                                      'JSON::Path' => '0',
                                      'LWP::Protocol::https' => '0',
                                      'LWP::Simple' => '0',
                                      'LWP::UserAgent' => '0',
                                      'Lingua::EN::Tagger' => '0',
                                      'List::Util' => '0',
                                      'Log::Dispatch::Screen' => '0',
                                      'Log::Log4perl' => '0',



( run in 0.976 second using v1.01-cache-2.11-cpan-de7293f3b23 )