If you send a message that says:
"!command foo bar "
(note the ending space) - the parameters given back to the plugin would
be:
["foo", "bar "]
which is kind of strange in this instance. Therefore, ending whitespace
is trimmed for parameters and trailing parameters.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
Since modules can now intercept all messages in the channels they're
listening for, it'd be cool to have modules handling things like making
sure the Omnibot.State stays updated as appropriate, and that pings are
ponged, etc.
This will probably deprecate the router, since it's been reduced to a
single function call, but we'll see about that.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>