whos_there.senders.slack
source module whos_there.senders.slack
Classes
-
SlackSender — Initialize the Slack sender.
source
class
SlackSender(webhook_url: str, 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 https://www.webfx.com/tools/emoji-cheat-sheet/ for options.
Methods
source method SlackSender.send(text: str) → Any