Changed message to localization

This commit is contained in:
Derek McDaniel 2017-02-24 12:14:27 -05:00
parent a2bd15b746
commit 6333bb9cd6
2 changed files with 5 additions and 4 deletions

View File

@ -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(date('Y-m-d H:i:s') . ' - You have a new user waiting for a response. Username: ' . $args['thread']->userName); $client->send($this->config['message']);
return true; return true;
} }

View File

@ -26,6 +26,7 @@ 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!"
``` ```