From c36552347c6b39dc3b40da944d6e8ae814e2c790 Mon Sep 17 00:00:00 2001 From: Mathias Hansen Date: Thu, 26 Jan 2017 21:59:44 -0500 Subject: [PATCH] Added Message event --- README.md | 1 + src/EventCreator.php | 2 ++ src/Events/Message.php | 16 ++++++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 src/Events/Message.php diff --git a/README.md b/README.md index becbb4c..6d39ef5 100644 --- a/README.md +++ b/README.md @@ -201,6 +201,7 @@ protected $listen = [ |im_created|\Lisennk\LaravelSlackEvents\Events\ImCreated| |im_history_changed|\Lisennk\LaravelSlackEvents\Events\ImHistoryChanged| |im_open|\Lisennk\LaravelSlackEvents\Events\ImOpen| +|message|\Lisennk\LaravelSlackEvents\Events\Message| |message.channels|\Lisennk\LaravelSlackEvents\Events\MessageChannels| |message.groups|\Lisennk\LaravelSlackEvents\Events\MessageGroups| |message.im|\Lisennk\LaravelSlackEvents\Events\MessageIm| diff --git a/src/EventCreator.php b/src/EventCreator.php index 2509811..7434678 100644 --- a/src/EventCreator.php +++ b/src/EventCreator.php @@ -33,6 +33,7 @@ use Lisennk\LaravelSlackEvents\Events\ImCreated; use Lisennk\LaravelSlackEvents\Events\ImHistoryChanged; use Lisennk\LaravelSlackEvents\Events\ImOpen; +use Lisennk\LaravelSlackEvents\Events\Message; use Lisennk\LaravelSlackEvents\Events\MessageChannels; use Lisennk\LaravelSlackEvents\Events\MessageGroups; use Lisennk\LaravelSlackEvents\Events\MessageIm; @@ -94,6 +95,7 @@ class EventCreator 'im_created' => ImCreated::class, 'im_history_changed' => ImHistoryChanged::class, 'im_open' => ImOpen::class, + 'message' => Message::class, 'message.channels' => MessageChannels::class, 'message.groups' => MessageGroups::class, 'message.im' => MessageIm::class, diff --git a/src/Events/Message.php b/src/Events/Message.php new file mode 100644 index 0000000..90bed39 --- /dev/null +++ b/src/Events/Message.php @@ -0,0 +1,16 @@ +