diff options
Diffstat (limited to '')
-rw-r--r-- | lib/lsg_web/controllers/gpt_controller.ex | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/lsg_web/controllers/gpt_controller.ex b/lib/lsg_web/controllers/gpt_controller.ex index acf9b27..038b235 100644 --- a/lib/lsg_web/controllers/gpt_controller.ex +++ b/lib/lsg_web/controllers/gpt_controller.ex @@ -1,14 +1,14 @@ -defmodule LSGWeb.GptController do - use LSGWeb, :controller +defmodule NolaWeb.GptController do + use NolaWeb, :controller require Logger - plug LSGWeb.ContextPlug + plug NolaWeb.ContextPlug def result(conn, params = %{"id" => result_id}) do - case LSG.IRC.GptPlugin.get_result(result_id) do + case Nola.IRC.GptPlugin.get_result(result_id) do {:ok, result} -> network = Map.get(params, "network") - channel = if c = Map.get(params, "chan"), do: LSGWeb.reformat_chan(c) + channel = if c = Map.get(params, "chan"), do: NolaWeb.reformat_chan(c) render(conn, "result.html", network: network, channel: channel, result: result) {:error, :not_found} -> conn @@ -18,10 +18,10 @@ defmodule LSGWeb.GptController do end def prompt(conn, params = %{"id" => prompt_id}) do - case LSG.IRC.GptPlugin.get_prompt(prompt_id) do + case Nola.IRC.GptPlugin.get_prompt(prompt_id) do {:ok, prompt} -> network = Map.get(params, "network") - channel = if c = Map.get(params, "chan"), do: LSGWeb.reformat_chan(c) + channel = if c = Map.get(params, "chan"), do: NolaWeb.reformat_chan(c) render(conn, "prompt.html", network: network, channel: channel, prompt: prompt) {:error, :not_found} -> conn |