From 4d06d56d9609c2e3d4b3eeebd0aaf8a895686499 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Thu, 20 Apr 2017 11:48:07 +0200 Subject: [PATCH] Oops --- mods/main.go | 9 +++++---- mods/stt.go | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/mods/main.go b/mods/main.go index e6b2ebe..e0f251b 100644 --- a/mods/main.go +++ b/mods/main.go @@ -43,10 +43,11 @@ var mods = map[string]Mod{ OnInit: initproverbio, OnMessage: proverbio, }, - "talk": { - OnInit: inittalk, - OnMessage: talk, - }, + /* + "talk": { + OnInit: inittalk, + OnMessage: talk, + },*/ "stt": { OnInit: initstt, OnMessage: stt, diff --git a/mods/stt.go b/mods/stt.go index 6d9c954..1e51b68 100644 --- a/mods/stt.go +++ b/mods/stt.go @@ -33,7 +33,7 @@ func stt(broker *tg.Broker, update tg.APIMessage) { } if update.Voice.Duration > 20 { - broker.SendTextMessage(update.Chat, "L'audio dura un bel po' (>20s), al momento non posso farci nulla :S", , &update.MessageID) + broker.SendTextMessage(update.Chat, "L'audio dura un bel po' (>20s), al momento non posso farci nulla :S", &update.MessageID) return }