19 lines
702 B
Markdown
19 lines
702 B
Markdown
---
|
|
description: Store a memory in EEMS (with sane defaults)
|
|
---
|
|
|
|
The user invoked `/remember` with argument: `$ARGUMENTS`
|
|
|
|
Parse the argument:
|
|
- If it contains a `:` separator, take everything before the first `:` as `subject` (trim
|
|
whitespace, lowercase, replace spaces with `.`) and everything after as `content`.
|
|
- If no `:` is present, use `note.<unix-seconds>` as the synthetic subject and treat the
|
|
entire argument as content.
|
|
- If `$ARGUMENTS` is empty, stop and ask the user to pass `subject: content`.
|
|
|
|
Then call `memory_store` with:
|
|
- `subject` = the parsed subject
|
|
- `content` = the parsed content (trimmed)
|
|
|
|
Report the result as one line: `stored #<id> as <subject>` and nothing else.
|