From b172aa5b16b96636b1de88ce3d7304c43131d039 Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Sun, 28 Aug 2016 00:08:08 +0200 Subject: [PATCH] =?UTF-8?q?-=20Cats:=20Bugfix=20-=20Besserer=20Text=20f?= =?UTF-8?q?=C3=BCr=20V-T-T?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- otouto/plugins/cats.lua | 2 +- otouto/plugins/voice_to_text.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/otouto/plugins/cats.lua b/otouto/plugins/cats.lua index 5ef7552..a95dd3a 100644 --- a/otouto/plugins/cats.lua +++ b/otouto/plugins/cats.lua @@ -59,7 +59,7 @@ function cats:inline_callback(inline_query, config, matches) utilities.answer_inline_query(inline_query, results, 30) end -function cats:action(msg, config) +function cats:action(msg, config, matches) if matches[1] == 'gif' then local url = 'http://thecatapi.com/api/images/get?type=gif&apikey='..apikey local file = download_to_file(url, 'miau.gif') diff --git a/otouto/plugins/voice_to_text.lua b/otouto/plugins/voice_to_text.lua index 2f37406..f08bd69 100644 --- a/otouto/plugins/voice_to_text.lua +++ b/otouto/plugins/voice_to_text.lua @@ -46,7 +46,7 @@ function vtt:pre_process(msg, config) end if not data._text then - utilities.send_reply(msg, 'Keine Stimme zu hören!') + utilities.send_reply(msg, 'Keine Stimme zu hören oder Erkennung fehlgeschlagen.') return end