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>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
defmodule Omnibot.Module do
|
||||
defmodule Hooks do
|
||||
defmacro __before_compile__(_env) do
|
||||
quote do
|
||||
quote generated: true do
|
||||
@impl true
|
||||
def on_channel_msg(_channel, _nick, _line), do: nil
|
||||
|
||||
|
||||
Reference in New Issue
Block a user