Logo
Explore Help
Sign In
intercal/omnibot
1
0
Fork 0
You've already forked omnibot
Code Issues Pull Requests Releases Wiki Activity
Files
871b7771feac70e9abfa1dee7b0bf5f80668113d
omnibot/lib/module/module.ex

9 lines
148 B
Elixir
Raw Normal View History

Rename Omnibot.Module -> Omnibot.Module.Base, add Omnibot.Module with agent Previously, all modules were Agents. This renames the Omnibot.Module to be the base module, and the new Omnibot.Module uses an Agent by default. This opens the doors to possibly allowing metamodule supervisors for modules that may be more complex. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-06-14 17:34:06 -04:00
defmodule Omnibot.Module do
defmacro __using__([]) do
quote do
use Omnibot.Module.Base
Further separate module agents and module impl Add Omnibot.Module.Agent which implements the basic agent cfg + state persistence functionality, which is then included in the Omnibot.Module. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-06-14 18:46:19 -04:00
use Omnibot.Module.Agent
Rename Omnibot.Module -> Omnibot.Module.Base, add Omnibot.Module with agent Previously, all modules were Agents. This renames the Omnibot.Module to be the base module, and the new Omnibot.Module uses an Agent by default. This opens the doors to possibly allowing metamodule supervisors for modules that may be more complex. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-06-14 17:34:06 -04:00
end
end
end
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.5 Page: 37ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API