Commit Graph

3 Commits

Author SHA1 Message Date
4cdcc388b6 Fix bug where message params were not being trimmed properly
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>
2020-11-16 18:20:23 -08:00
73c5f58243 WIP: Move to using modules for implementing core behavior
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>
2020-06-13 16:04:19 -04:00
6340936895 Initial commit with IRC and bot example.
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-06-12 17:29:35 -04:00