Skip to content

Commit

Permalink
Wrap it more fully
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwinchester committed Mar 8, 2022
1 parent 668e67f commit 521ca05
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/dicebot/mix.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
%{
"exirc": {:git, "https://github.com/ryanwinchester/exirc.git", "b70444e96406108aba75da260c088ff6d36ed0c2", [branch: "feature/static-analysis-and-formatter"]},
"exirc": {:hex, :exirc, "2.0.0", "6b3b8da6d56096a2a613f3688ef05ed52d235a95566e889e885409c307b218b6", [:mix], [], "hexpm", "aba949c7e60ce4bbf1954d78ede33825ffe2fa01e840edd843ddc8f3775e7390"},
}
2 changes: 2 additions & 0 deletions lib/tmi/client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ defmodule TMI.Client do

alias TMI.Conn

defdelegate start_link(), to: ExIRC.Client

@doc """
Determine if the provided client process has an open connection to a server.
"""
Expand Down
2 changes: 1 addition & 1 deletion lib/tmi/supervisor.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defmodule TMI.Supervisor do

@impl true
def init({bot, opts}) do
{:ok, client} = ExIRC.Client.start_link()
{:ok, client} = TMI.Client.start_link()
conn = build_conn(client, opts)

dynamic_supervisor = TMI.MessageServer.supervisor_name(bot)
Expand Down

0 comments on commit 521ca05

Please sign in to comment.