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

Method notify_discord

app/notification.py:109–122  ·  view source on GitHub ↗

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

(self, new_analysis)

Source from the content-addressed store, hash-verified

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):

Callers 1

notify_allMethod · 0.95

Calls 2

notifyMethod · 0.45

Tested by

no test coverage detected