implements additional tools for Slack related to retrieving conversations metadata, list of members, history of messages, as well as sending messages to private/public channels and DMs / multi-person DMs. --------- Co-authored-by: Eric Gustin <eric@arcade-ai.com> Co-authored-by: Renato Byrro <rmbyrro@gmail.com>
13 lines
363 B
Python
13 lines
363 B
Python
import os
|
|
|
|
from arcade_slack.custom_types import PositiveInt
|
|
|
|
MAX_PAGINATION_SIZE_LIMIT = 200
|
|
|
|
MAX_PAGINATION_TIMEOUT_SECONDS = PositiveInt(
|
|
os.environ.get(
|
|
"MAX_PAGINATION_TIMEOUT_SECONDS",
|
|
os.environ.get("MAX_SLACK_PAGINATION_TIMEOUT_SECONDS", 30),
|
|
),
|
|
name="MAX_PAGINATION_TIMEOUT_SECONDS or MAX_SLACK_PAGINATION_TIMEOUT_SECONDS",
|
|
)
|