12 lines
207 B
Elixir
12 lines
207 B
Elixir
|
|
defmodule Omnibot.Core.Join do
|
||
|
|
use Omnibot.Module
|
||
|
|
alias Omnibot.State
|
||
|
|
|
||
|
|
def on_join(channel, nick) do
|
||
|
|
cfg = State.cfg()
|
||
|
|
if nick == cfg.nick do
|
||
|
|
State.add_channel(channel)
|
||
|
|
end
|
||
|
|
end
|
||
|
|
end
|