Skip to content

whos_there.senders.slack

source module whos_there.senders.slack

Classes

source class SlackSender(channel: str, user_mentions: list[str] | None = None, sender_username: str = 'Kock Knock', icon_emoji: str = '🔔')

Bases : Sender

Initialize the Slack sender.

Parameters

  • webhook_url : str The Slack webhook URL.

  • channel : str The Slack channel name.

  • sender_username : str User name used for notifications.

  • user_mentions : list[str] | None The list of users to mention.

  • icon_emoji : str Emoji to use for the notifications. See for options.

Methods

source method SlackSender.send(text: str) → Any