702 B
702 B
description
| 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:assubject(trim whitespace, lowercase, replace spaces with.) and everything after ascontent. - If no
:is present, usenote.<unix-seconds>as the synthetic subject and treat the entire argument as content. - If
$ARGUMENTSis empty, stop and ask the user to passsubject: content.
Then call memory_store with:
subject= the parsed subjectcontent= the parsed content (trimmed)
Report the result as one line: stored #<id> as <subject> and nothing else.