From 5aa92aade551d182da01c153765d2a4bad549a2e Mon Sep 17 00:00:00 2001 From: Akamaru Date: Tue, 12 Sep 2017 19:12:06 +0200 Subject: [PATCH] Kleine Fixes --- miku/plugins/justkitten.lua | 2 +- miku/plugins/plugins.lua | 4 ++-- miku/plugins/twitter.lua | 2 +- miku/plugins/youtube_dl.lua | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/miku/plugins/justkitten.lua b/miku/plugins/justkitten.lua index f5dc773..6d04995 100644 --- a/miku/plugins/justkitten.lua +++ b/miku/plugins/justkitten.lua @@ -20,7 +20,7 @@ function jk:action(msg, config) local random_pic = math.random(#jk_pics) utilities.send_typing(msg.chat.id, 'upload_photo') local file = JK_URL..jk_pics[random_pic] - utilities.send_photo(msg.chat.id, file) + utilities.send_photo(msg.chat.id, file, nil, msg.message_id) end return jk \ No newline at end of file diff --git a/miku/plugins/plugins.lua b/miku/plugins/plugins.lua index 85a680e..1d50e89 100644 --- a/miku/plugins/plugins.lua +++ b/miku/plugins/plugins.lua @@ -5,9 +5,9 @@ local bot = require('miku.bot') function plugin_manager:init(config) plugin_manager.triggers = { "^/plugins$", - "^/plugins? (enable) ([%w_%.%-]+) (chat) (%d+)$", + "^/plugins? (enable) ([%w_%.%-]+) (chat) (-?%d+)$", "^/plugins? (enable) ([%w_%.%-]+) (chat)$", - "^/plugins? (disable) ([%w_%.%-]+) (chat) (%d+)$", + "^/plugins? (disable) ([%w_%.%-]+) (chat) (-?%d+)$", "^/plugins? (disable) ([%w_%.%-]+) (chat)$", "^/plugins? (enable) ([%w_%.%-]+)$", "^/plugins? (disable) ([%w_%.%-]+)$", diff --git a/miku/plugins/twitter.lua b/miku/plugins/twitter.lua index adc4b4b..d5eaa7d 100644 --- a/miku/plugins/twitter.lua +++ b/miku/plugins/twitter.lua @@ -50,7 +50,7 @@ function get_tweet(response) end local header = 'Tweet von '..full_name..' (@' ..user_name..''..verified..'):' local text = response.full_text - local tweet_link = '\nTweet aufrufen' + local tweet_link = '\nTweet aufrufen' -- favorites & retweets if response.retweet_count == 0 then diff --git a/miku/plugins/youtube_dl.lua b/miku/plugins/youtube_dl.lua index 03275ff..ce0bcef 100644 --- a/miku/plugins/youtube_dl.lua +++ b/miku/plugins/youtube_dl.lua @@ -192,7 +192,7 @@ function youtube_dl:action(msg, config, matches) utilities.edit_message(msg.chat.id, first_msg.result.message_id, 'Die MP3 überschreitet die Grenze von 50 MB!', nil, 'HTML') return end - utilities.send_audio(msg.chat.id, file, msg.message_id) + utilities.send_audio(msg.chat.id, file) return end end