/tg/ Station 13 - Modules - TypesVar Details - Proc Details

processed

Vars

last_answerThe last answer supplied by a user.
needed_answerAnswer requires for this paper to be marked as correct.
paper_dataAssoc list of data related to our paper.
required_questionQuestion required to be answered for this paper to be marked as correct.

Procs

answer_questionCalled async - Opens up an input for the user to answer the required question.
check_requirementsCheck if our paper's been processed correctly.
generate_requirementsGenerate a random question based on our paper's data. This question must be answered by a user for the paper to be marked as correct.

Var Details

last_answer

The last answer supplied by a user.

needed_answer

Answer requires for this paper to be marked as correct.

paper_data

Assoc list of data related to our paper.

required_question

Question required to be answered for this paper to be marked as correct.

Proc Details

answer_question

Called async - Opens up an input for the user to answer the required question.

check_requirements

Check if our paper's been processed correctly.

Returns a failure state if it was not (a truthy value, 1+) or a success state if it was (falsy, 0)

generate_requirements

Generate a random question based on our paper's data. This question must be answered by a user for the paper to be marked as correct.