Files
omnibot/omnibot.example.exs
Alek Ratzloff 2f378dd438 Finish removing Omnibot.State functions
Omnibot.State shouldn't be used anywhere anymore except as a GenServer
being started up in the supervisor.

Also, configuration must be loaded through Config.load/1 rather than
being constructed, because everything expects a tuple of {plugin,
config} now.

Finally, Omnibot.Core must be added to the configuration in order for
basic functionality.

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
2020-08-11 15:23:53 -07:00

22 lines
572 B
Elixir

alias Omnibot.Config
config = %Config {
nick: "omnibot_testing",
server: "irc.bonerjamz.us",
port: 6667,
ssl: false,
plugins: [
Omnibot.Core,
{Omnibot.Contrib.OnConnect, commands: [
["privmsg", "nickserv", "register", "password123", "omnibot@omni.bot"],
["privmsg", "nickserv", "identify", "password123"]
]},
{Omnibot.Contrib.Linkbot, channels: :all},
{Omnibot.Contrib.Fortune, channels: :all},
{Omnibot.Contrib.Wordbot, channels: ["#idleville"], ignore: ["username"]},
],
#plugin_paths: [{"plugins", recurse: true}]
}