defmodule LSGWeb.SmsController do use LSGWeb, :controller require Logger def ovh_callback(conn, %{"senderid" => from, "message" => message}) do spawn(fn() -> LSG.IRC.SmsPlugin.incoming(from, String.trim(message)) end) text(conn, "") end end