Minor changes all around

* Wordbot does not IO.inspect() the winners of the round
* Split Omnibot.Plugin.base_children/1 into base_children_before/1 and
  base_children_after/1 for plugins that come before and after the
  children in the module
* Other minor changes

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2020-07-14 19:13:43 -07:00
parent 522c62a55c
commit c43c075588
3 changed files with 21 additions and 14 deletions

View File

@@ -21,8 +21,7 @@ defmodule Omnibot.Plugin.Supervisor do
@impl true
def init({plugin, cfg}) when is_atom(plugin) do
state = plugin.on_init(cfg)
children = IO.inspect(plugin.plugin_children(cfg, state))
children = plugin.plugin_children(cfg)
Supervisor.init(children, strategy: :one_for_one)
end
end