Skip to content

sam.config

The configuration for your bot.

Config values are loaded from environment variables, and have defaults if not set.

REDIS_URL

General The URL of the Redis database server.

RANDOM_RUN_RATIO

How often the bot randomly responds in a group channel.

TIMEZONE

The timezone the bot "lives" in.

OPENAI_API_KEY

OpenAI The OpenAI API key.

OPENAI_ASSISTANT_ID

The OpenAI assistant ID used for the bot.

TTS_VOICE

The OpenAI model used for text-to-speech.

TTS_MODEL

The OpenAI model used for speech-to-text.

STT_PROMPT

Specific words or acronyms for speech-to-text.

MAX_PROMPT_TOKENS

The maximum number of tokens allowed in a prompt.

MAX_COMPLETION_TOKENS

The maximum number of tokens allowed in a completion.

SLACK_BOT_TOKEN

Slack The Slack bot token, prefixed with xoxb-.

SLACK_APP_TOKEN

The Slack app token, prefixed with xapp-.

EMAIL_URL

Email The email address the bot sends emails from.

SENTRY_DSN

Sentry The Sentry DSN for Sentry based error reporting.

sam.contrib.brave.config

BRAVE_SEARCH_LONGITUDE

The longitude of the bot's location for Brave Search.

BRAVE_SEARCH_LATITUDE

The latitude of the bot's location for Brave Search.

sam.contrib.algolia.config

ALGOLIA_SEARCH_API_KEY

The algolia API key.

ALGOLIA_APPLICATION_ID

The Algolia application ID.

ALGOLIA_SEARCH_INDEX

The Algolia search index.

sam.contrib.github.config

GITHUB_TOKEN

GitHub token to access the GitHub API.

GITHUB_REPOS

CSV of GitHub repositories the bot can access.