async def _build_state(self,<EOL>request: Request,<EOL>message: BaseMessage,<EOL>responder: Responder)-> Tuple[<EOL>Optional[BaseState],<EOL>Optional[BaseTrigger],<EOL>Optional[bool],<EOL>]:
trigger, state_class, dnr = await self._find_trigger(request)<EOL>if trigger is None:<EOL><INDENT>if not message.should_confuse():<EOL><INDENT>return None, None, None<EOL><DEDENT>state_class = self._confused_state(request)<EOL>logger.debug('<STR_LIT>', state_class.name())<EOL><DEDENT>else:<EOL><INDENT>logger.debug('<STR_LIT>', state_class.name())<EOL><DEDENT>state = state_class(request, responder, trigger, trigger)<EOL>return state, trigger, dnr<EOL>
Build the state for this request.