src.bot.posting module

src.bot.posting.display_current_time() str[source]

Return the current local time formatted as HH:MM:SS AM/PM.

src.bot.posting.post_csv_prompt(client, channel: str, team_id: str = '', prefix_text: str | None = None, topic: str | None = None, active_tags: set | None = None, footnote_text: str | None = None, response_type: str | None = 'image') None[source]

Select a prompt from the CSV, record it as sent, and post it to the channel with a randomized block layout.

src.bot.posting.post_custom_prompt(client, prompt_text: str, channel: str, team_id: str = '', prefix_text: str | None = None, footnote_text: str | None = None) str | None[source]

Post a user-authored prompt text to the channel.

src.bot.posting.randomize_message_block(message)[source]

Build a Slack Block Kit payload, randomly including a GIF header image 90% of the time.