Update the instance of "module" with "plugin" and "mod" with "plug" where appropriate

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-07-02 18:30:46 -07:00
parent 62a1064e87
commit 8f112487c1
6 changed files with 66 additions and 66 deletions

View File

@@ -28,12 +28,12 @@ defmodule Omnibot.Irc do
def part(irc, channel), do: send_msg(irc, "PART", channel)
defp route_msg(irc, msg) do
modules = Msg.channel(msg) |> State.channel_modules()
plugins = Msg.channel(msg) |> State.channel_plugins()
Task.Supervisor.async_stream_nolink(
Omnibot.RouterSupervisor,
modules,
fn {module, _mod_cfg} -> module.on_msg(irc, msg) end,
plugins,
fn {plugin, _plug_cfg} -> plugin.on_msg(irc, msg) end,
timeout: 30_000,
on_timeout: :kill_task
) |> Stream.run()