MCPcopy
hub / github.com/CryptoSignal/Crypto-Signal / notify_slack

Method notify_slack

app/notification.py:125–138  ·  view source on GitHub ↗

Send a notification via the slack notifier Args: new_analysis (dict): The new_analysis to send.

(self, new_analysis)

Source from the content-addressed store, hash-verified

123
124
125 def notify_slack(self, new_analysis):
126 """Send a notification via the slack notifier
127
128 Args:
129 new_analysis (dict): The new_analysis to send.
130 """
131
132 if self.slack_configured:
133 message = self._indicator_message_templater(
134 new_analysis,
135 self.notifier_config['slack']['optional']['template']
136 )
137 if message.strip():
138 self.slack_client.notify(message)
139
140
141 def notify_twilio(self, new_analysis):

Callers 1

notify_allMethod · 0.95

Calls 2

notifyMethod · 0.45

Tested by

no test coverage detected