diff options
author | Jordan Bracco <href@random.sh> | 2022-12-17 13:47:11 +0000 |
---|---|---|
committer | Jordan Bracco <href@random.sh> | 2022-12-20 19:29:41 +0100 |
commit | fd4afd7c7acd9b5fda75b628a7e19d0149d8b889 (patch) | |
tree | df571d49fa9dc9c3cd58c94033b9fc81c7b7f8ec /lib/lsg_web/controllers/gpt_controller.ex | |
parent | Rename to Nola, pt. 1. Refs T77 (diff) |
Nola rename cont. pt. 2. Refs T77.
`find lib -name "*.ex" -type f | xargs sed -i '' 's/LSG/Nola/g'`
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 |