diff options
author | href <href@random.sh> | 2020-07-07 21:39:10 +0200 |
---|---|---|
committer | href <href@random.sh> | 2020-07-07 21:39:51 +0200 |
commit | d6ee134a5957e299c3ad59011df320b3c41e6e61 (patch) | |
tree | 29567e6635466f8a3415a935b3cc8a777019f5bc /lib/lsg_web/controllers/sms_controller.ex | |
parent | bleh (diff) |
pouet
Diffstat (limited to 'lib/lsg_web/controllers/sms_controller.ex')
-rw-r--r-- | lib/lsg_web/controllers/sms_controller.ex | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/lsg_web/controllers/sms_controller.ex b/lib/lsg_web/controllers/sms_controller.ex new file mode 100644 index 0000000..00c6352 --- /dev/null +++ b/lib/lsg_web/controllers/sms_controller.ex @@ -0,0 +1,10 @@ +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 |