ask_user puts up to six questions on one card (radios for one pick, checkboxes for several, an optional typed Other) as a [question:ID] chip. The user's answers are checked against the questions, stored in bot_questions and sent to the bot as their chat message; Skip says so. Offered in chat replies and user-started tasks, never in routines, hook calls or chatroom sessions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
16 lines
566 B
TypeScript
16 lines
566 B
TypeScript
/**
|
|
* Where questions a bot asked a user stand (`bot_questions.status`):
|
|
* `pending` until the user answers them (`answered`) or skips them.
|
|
*/
|
|
export const BotQuestionStatuses = ["pending", "answered", "skipped"] as const;
|
|
|
|
export type BotQuestionStatus = (typeof BotQuestionStatuses)[number];
|
|
|
|
/**
|
|
* How a question is answered: `single` picks one option (radios),
|
|
* `multiple` any number of them, at least one (checkboxes).
|
|
*/
|
|
export const BotQuestionKinds = ["single", "multiple"] as const;
|
|
|
|
export type BotQuestionKind = (typeof BotQuestionKinds)[number];
|