File Coverage

blib/lib/Net/Async/Slack/Event/AppMention.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 0 1 0.0
total 14 15 93.3


line stmt bran cond sub pod time code
1             package Net::Async::Slack::Event::AppMention;
2              
3 4     4   434932 use strict;
  4         8  
  4         171  
4 4     4   23 use warnings;
  4         7  
  4         428  
5              
6             our $VERSION = '0.015'; # VERSION
7              
8 4     4   610 use Net::Async::Slack::EventType;
  4         11  
  4         33  
9              
10             =head1 NAME
11              
12             Net::Async::Slack::Event::AppMention - Subscribe to only the message events that mention your app or bot
13              
14             =head1 DESCRIPTION
15              
16             Example input data:
17              
18             {
19             "type": "app_mention",
20             "user": "U061F7AUR",
21             "text": "<@U0LAN0Z89> is it everything a river should be?",
22             "ts": "1515449522.000016",
23             "channel": "C0LAN2Q65",
24             "event_ts": "1515449522000016"
25             }
26              
27              
28             =cut
29              
30 8     8 0 33 sub type { 'app_mention' }
31              
32             1;
33              
34             __END__