Skip to content
Docs

alkove.commands

commands(
spec: Mapping[str, Any],
lang: Union[str, Sequence[str]],
*,
lex: Lex,
) -> List[dict]

An app’s commands compiled per language, for Listener: {“commands”: [{“id”, “phrases”}], “lists”?: {name: […]}}; phrases hold {number} (1 to 99) and {list} slots, and come per language ({“fr”: […], “en”: […]}) when there are several.