This is an example toy plugin to showcase how one could be written to react
to non-!command messages.
In the first approach (version MatchByStringComparison), the function is
annotated to be called on all channel messages, and the body has to decide
whether or not to react to it and reply.
In the second approach (version MatchWithRegex), the function is only called
if the incoming message matched its regular expression, so the body can safely
assume it should always react and reply.
This is an example toy plugin to showcase how one could be written to react to non-!command messages.
In the first approach (version MatchByStringComparison), the function is annotated to be called on all channel messages, and the body has to decide whether or not to react to it and reply.
In the second approach (version MatchWithRegex), the function is only called if the incoming message matched its regular expression, so the body can safely assume it should always react and reply.