| 1 | package Net::Async::Slack::Event::AppMention; | ||
| 2 | |||
| 3 | 4 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 4 | our $VERSION = '0.015'; # VERSION | |
| 7 | |||
| 8 | 4 | ▶ | use Net::Async::Slack::EventType; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 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 | ▶ | sub type { 'app_mention' } |
|
Subroutine
type: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 31 | |||
| 32 | 4 | 1; | |
| 33 | |||
| 34 | __END__ | ||