You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,10 @@ SourceBase automatically extracts URLs from Discord messages, fetches content me
30
30
- Behavior and limits:
31
31
- The bot writes the provided text to a temporary file and calls the OpenBrain CLI (`ob add`) with a `file://` URL so the existing CLI-based ingestion pipeline is reused.
32
32
- To avoid abuse, the bot enforces a conservative default size limit of 64 KiB for direct text ingestion. You can override this limit with the environment variable `OB_ADD_MAX_BYTES` (value in bytes).
33
+
- Attachment support:
34
+
- You can reply to a message that contains a text-like file attachment (for example `.md`, `.markdown`, `.txt`) with `ob add` and the bot will fetch the attachment body and ingest it.
35
+
- The bot accepts files with a text/* Content-Type or filenames ending in `.md`, `.markdown`, or `.txt`. Binary files (e.g. `application/octet-stream`) are rejected with a helpful error.
36
+
- The same size limit (default 64 KiB, configurable via `OB_ADD_MAX_BYTES`) applies to attachments; oversized attachments are rejected with a clear message.
33
37
- If the bot cannot fetch the referenced message (reply flow), it will reply with a helpful message explaining the permission issue and how to proceed.
34
38
- If the CLI is unavailable, the bot will notify the user with a friendly error message.
0 commit comments