From d97e6d09f0db87989df42993499429883f1c224a Mon Sep 17 00:00:00 2001 From: href Date: Sun, 11 Dec 2022 01:47:26 +0000 Subject: feat(message): assign id (flake_id) --- lib/lsg_irc/sms_plugin.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/lsg_irc/sms_plugin.ex') diff --git a/lib/lsg_irc/sms_plugin.ex b/lib/lsg_irc/sms_plugin.ex index b183f7d..be1611f 100644 --- a/lib/lsg_irc/sms_plugin.ex +++ b/lib/lsg_irc/sms_plugin.ex @@ -34,6 +34,7 @@ defmodule LSG.IRC.SmsPlugin do "!"<>message end message = %IRC.Message{ + id: FlakeId.get(), transport: :sms, network: "sms", channel: nil, @@ -43,7 +44,7 @@ defmodule LSG.IRC.SmsPlugin do replyfun: reply_fun, trigger: IRC.Connection.extract_trigger(trigger_text) } - IO.puts("converted sms to message: #{inspect message}") + Logger.debug("converted sms to message: #{inspect message}") IRC.Connection.publish(message, ["messages:sms"]) message end -- cgit v1.2.3