Fixed issue with client URL being required.

This commit is contained in:
Derek McDaniel 2017-01-25 09:10:24 -05:00
parent 58f9d640e0
commit f415d451da

View File

@ -42,7 +42,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
'link_names' => true '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); $client->send(date('Y-m-d H:i:s') . ' - You have a new user waiting for a response. Username: ' . $args['thread']->userName);