MCPcopy
hub / github.com/blacktwin/JBOPS / send

Method send

reporting/weekly_stats_reporting.py:339–351  ·  view source on GitHub ↗

Send to Tautulli notifier. Parameters ---------- subject : str Subject of the message. body : str Body of the message.

(self, subject='', body='')

Source from the content-addressed store, hash-verified

337 self.stats = stats
338
339 def send(self, subject='', body=''):
340 """Send to Tautulli notifier.
341
342 Parameters
343 ----------
344 subject : str
345 Subject of the message.
346 body : str
347 Body of the message.
348 """
349 subject = subject or self.subject
350 body = body or self.body
351 self.tautulli.notify(notifier_id=self.notifier_id, subject=subject, body=body)
352
353 def send_discord(self, title, color, stat, footer):
354 """Build the Discord message.

Callers 3

send_discordMethod · 0.95
send_slackMethod · 0.95

Calls 1

notifyMethod · 0.45

Tested by

no test coverage detected