mirror of
https://github.com/Mibew/mibew_slack.git
synced 2024-11-15 08:44:20 +03:00
Uses Mibew localization now instead. closes #11;
This commit is contained in:
parent
5304dad8e6
commit
701e9a41a5
@ -55,7 +55,7 @@ class Plugin extends \Mibew\Plugin\AbstractPlugin implements \Mibew\Plugin\Plugi
|
|||||||
$client = new Client($this->config['slack_url'], $settings);
|
$client = new Client($this->config['slack_url'], $settings);
|
||||||
|
|
||||||
|
|
||||||
$client->send($this->config['message']);
|
$client->send(getlocal('You have a new message waiting for you!'));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,6 @@ Provides Slack notifications when initiate a chat
|
|||||||
username: "Username you will post as"
|
username: "Username you will post as"
|
||||||
channel: "Channel to post in"
|
channel: "Channel to post in"
|
||||||
slack_url: "Webhook URL from Setup Instructions in Slack"
|
slack_url: "Webhook URL from Setup Instructions in Slack"
|
||||||
message: "You have a new visitor!"
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user