Send a notification via the discord notifier Args: new_analysis (dict): The new_analysis to send.
(self, new_analysis)
| 107 | self.notify_stdout(new_analysis) |
| 108 | |
| 109 | def notify_discord(self, new_analysis): |
| 110 | """Send a notification via the discord notifier |
| 111 | |
| 112 | Args: |
| 113 | new_analysis (dict): The new_analysis to send. |
| 114 | """ |
| 115 | |
| 116 | if self.discord_configured: |
| 117 | message = self._indicator_message_templater( |
| 118 | new_analysis, |
| 119 | self.notifier_config['discord']['optional']['template'] |
| 120 | ) |
| 121 | if message.strip(): |
| 122 | self.discord_client.notify(message) |
| 123 | |
| 124 | |
| 125 | def notify_slack(self, new_analysis): |
no test coverage detected