Create a Brain object which handles the actual process of fetching a reply.
Fetch a reply for the user.
Process <call> tags in the preprocessed reply string.
If async
is true, processCallTags can handle asynchronous subroutines
and it returns a promise, otherwise a string is returned
The internal reply method. DO NOT CALL THIS DIRECTLY.
Format a user's message for safe processing.
Prepares a trigger for the regular expression engine.
Process tags in a reply element.
All the tags get processed here except for <call>
tags which have
a separate subroutine (refer to processCallTags
for more info)
Run substitutions against a message. type
is either "sub" or "person" for
the type of substitution to run.