#!/usr/bin/env perl
use v5.10.0;
use strict;
use warnings;
use Exobrain;

# PODNAME: tweet-notify
# ABSTRACT: Send all tweets to the user to notify.

my $exobrain = Exobrain->new;

$exobrain->watch_loop(
    class  => 'Measurement::Tweet',
    filter => sub { $_->to_me },
    then   => sub {
        $exobrain->notify( $_->summary );
    },
);

__END__

=pod

=head1 NAME

tweet-notify - Send all tweets to the user to notify.

=head1 VERSION

version 0.05

=head1 AUTHOR

Paul Fenwick <pjf@cpan.org>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2013 by Paul Fenwick.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut
