From f415d451da532d12f5c0c9a2e89ee1b23bf68c36 Mon Sep 17 00:00:00 2001 From: Derek McDaniel Date: Wed, 25 Jan 2017 09:10:24 -0500 Subject: [PATCH] Fixed issue with client URL being required. --- Plugin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Plugin.php b/Plugin.php index b1f8115..a7d6d96 100644 --- a/Plugin.php +++ b/Plugin.php @@ -27,7 +27,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi { return true; } - + public function run() { $dispatcher = EventDispatcher::getInstance(); @@ -42,9 +42,9 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi 'link_names' => true ]; - $client = new Client('https://hooks.slack.com/services/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', $settings); + $client = new Client($this->config['slack_url'], $settings); + - $client->send(date('Y-m-d H:i:s') . ' - You have a new user waiting for a response. Username: ' . $args['thread']->userName); }