- added "Discord" WebHook support, closed #547
This commit is contained in:
@@ -565,6 +565,7 @@ class SystemModel extends AbstractMapTrackingModel {
|
||||
/**
|
||||
* send rally point poke to various "APIs"
|
||||
* -> send to a Slack channel
|
||||
* -> send to a Discord channel
|
||||
* -> send to an Email
|
||||
* @param array $rallyData
|
||||
* @param CharacterModel $characterModel
|
||||
@@ -585,6 +586,17 @@ class SystemModel extends AbstractMapTrackingModel {
|
||||
$log->addHandler('slackRally', null, $this->getMap()->getSlackWebHookConfig($slackChannelKey));
|
||||
}
|
||||
|
||||
// Discord poke ---------------------------------------------------------------------------
|
||||
$discordChannelKey = 'discordWebHookURLRally';
|
||||
if(
|
||||
$rallyData['pokeDiscord'] === true &&
|
||||
$this->getMap()->isDiscordChannelEnabled($discordChannelKey)
|
||||
){
|
||||
$isValidLog = true;
|
||||
|
||||
$log->addHandler('discordRally', null, $this->getMap()->getDiscordWebHookConfig($discordChannelKey));
|
||||
}
|
||||
|
||||
// Mail poke ------------------------------------------------------------------------------
|
||||
$mailAddressKey = 'RALLY_SET';
|
||||
if(
|
||||
|
||||
Reference in New Issue
Block a user