eleven / ocho Public

Clone
git clone https://amadan.net/eleven/ocho

Plain git — no account needed to clone.

Download

Download this file

1// Eleven's built-in command floor — the ONE source of truth for the bot's command
2// NAMES + one-line help. Two consumers import this, so the two never drift:
3// • the sidecar (agent/commands.mjs) attaches each command's deterministic run()
4// and answers it when the message reaches the bot;
5// • the client (apps.js) registers them so the "/" typeahead lists them and typing
6// one is SENT to the thread (the bot answers) rather than caught as an unknown
7// command — the client owns app commands (/todo, /remind); the bot owns these.
8// Pure data (no DOM, no deps), so both Node (the sidecar) and the browser import it.
9export const BOT_COMMANDS = {
10 "/help": "what I can do",
11 "/theme": "switch colour theme, e.g. /theme lagoon",
12 "/themes": "browse the theme picker",
13 "/dark": "switch to dark mode",
14 "/light": "switch to light mode",
15 "/profile": "edit your screen name & photo",
16};
17