From a69670a526b7c01e8406bef3d318ae993725f543 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Tue, 9 May 2017 15:52:23 +0200 Subject: [PATCH] A warning is not an error, silly! --- mods/talk.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/talk.go b/mods/talk.go index 8e644b7..25d2291 100644 --- a/mods/talk.go +++ b/mods/talk.go @@ -190,9 +190,10 @@ func talk(broker *tg.Broker, update tg.APIMessage) { if len(result.Alternatives) > 0 { reply += "\nAlternativamente:\n - " + strings.Join(result.Alternatives, "\n - ") } + case "input.unknown": + // NOOP default: log.Printf("[talk] Unknown action called:\n%s\n", record.Result.Action) - broker.SendTextMessage(update.Chat, "ERRORE! @hamcha controlla la console!", &update.MessageID) } }