A warning is not an error, silly!

This commit is contained in:
Hamcha 2017-05-09 15:52:23 +02:00
parent c514fb4678
commit a69670a526

View file

@ -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, "<b>ERRORE!</b> @hamcha controlla la console!", &update.MessageID)
}
}