mirror of
https://github.com/Unstructured-IO/unstructured.git
synced 2025-07-25 01:50:21 +00:00
15 lines
461 B
Bash
15 lines
461 B
Bash
![]() |
#!/usr/bin/env bash
|
||
|
|
||
|
# Ingests a discord text channel into a file.
|
||
|
|
||
|
# Structured outputs are stored in discord-example/
|
||
|
|
||
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||
|
cd "$SCRIPT_DIR"/../../.. || exit 1
|
||
|
|
||
|
PYTHONPATH=. ./unstructured/ingest/main.py \
|
||
|
--discord-channels 12345678 \
|
||
|
--discord-token "$DISCORD_TOKEN" \
|
||
|
--download-dir discord-ingest-download \
|
||
|
--structured-output-dir discord-example
|