summaryrefslogtreecommitdiff
path: root/lib/plugins/boursorama.ex
diff options
context:
space:
mode:
authorJordan Bracco <href@random.sh>2022-12-20 03:27:32 +0000
committerJordan Bracco <href@random.sh>2022-12-20 19:29:42 +0100
commita2e3a9e6fcab2e32e0ca208d8242e8d6812a67df (patch)
tree4dd596a3a8a9025137d7723107d794ec9e329d06 /lib/plugins/boursorama.ex
parentFinish moving things from IRC. to Nola., refs T77 (diff)
Rename IRC.{Message,Trigger} to Nola.{Message,Trigger}, refs T77.
Diffstat (limited to 'lib/plugins/boursorama.ex')
-rw-r--r--lib/plugins/boursorama.ex2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/boursorama.ex b/lib/plugins/boursorama.ex
index 77977a5..025a250 100644
--- a/lib/plugins/boursorama.ex
+++ b/lib/plugins/boursorama.ex
@@ -25,7 +25,7 @@ defmodule Nola.Plugins.Boursorama do
{:ok, nil}
end
- def handle_info({:irc, :trigger, cac, m = %IRC.Message{trigger: %IRC.Trigger{type: :bang}}}, state) when cac in ["cac40", "caca40"] do
+ def handle_info({:irc, :trigger, cac, m = %Nola.Message{trigger: %Nola.Trigger{type: :bang}}}, state) when cac in ["cac40", "caca40"] do
case HTTPoison.get(@cac40_url, [], []) do
{:ok, %HTTPoison.Response{status_code: 200, body: body}} ->
html = Floki.parse(body)