MCPcopy Create free account
hub / github.com/CryptoSignal/Crypto-Signal / notify

Method notify

app/notifiers/webhook_client.py:20–33  ·  view source on GitHub ↗

Sends the message. Args: message (str): The message to send.

(self, message)

Source from the content-addressed store, hash-verified

18
19
20 def notify(self, message):
21 """Sends the message.
22
23 Args:
24 message (str): The message to send.
25 """
26
27 if self.username and self.password:
28 request = requests.post(self.url, json=message, auth=(self.username, self.password))
29 else:
30 request = requests.post(self.url, json=message)
31
32 if not request.status_code == requests.codes.ok:
33 self.logger.error("Request failed: %s - %s", request.status_code, request.content)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected