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

@@ -9,15 +9,15 @@ defmodule Omnibot.Config do
real: "omnibot",
port: 6667,
ssl: false,
modules: [],
module_paths: []
plugins: [],
plugin_paths: []
]
@doc ~S"""
Gets all channels that the bot should join via its modules.
Gets all channels that the bot should join via its plugins.
"""
def all_channels(cfg) do
Enum.flat_map(cfg.modules, fn
Enum.flat_map(cfg.plugins, fn
{_, [channels: :all]} -> []
{_, [channels: channels]} -> channels
end)