mirror of
https://github.com/Mibew/mibew_slack.git
synced 2025-01-22 10:00:31 +03:00
Fixed issue with client URL being required.
This commit is contained in:
parent
58f9d640e0
commit
f415d451da
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user