From 0de17d3bba4883050a647e2d16a7f395cd91ae11 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Thu, 15 Sep 2016 15:26:05 +0200 Subject: [PATCH] =?UTF-8?q?"Deffe-M=C3=B6dchen-Korrigierer"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miku/plugins/special.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/miku/plugins/special.lua b/miku/plugins/special.lua index 5a9c27c..e1436b0 100644 --- a/miku/plugins/special.lua +++ b/miku/plugins/special.lua @@ -32,7 +32,9 @@ special.triggers = { "^%(\\$", "^/[Ss][Cc][Hh][Ee][Ll][Ll][Ee]$", "^[Pp][Ii][Nn][Gg]$", - "^[Dd][Aa][Ss] [Ii][Ss][Tt]? [Nn][Ii][Cc][Hh][Tt]? [Ll][Uu][Ss][Tt][Ii][Gg]!?$" + "^[Dd][Aa][Ss] [Ii][Ss][Tt]? [Nn][Ii][Cc][Hh][Tt]? [Ll][Uu][Ss][Tt][Ii][Gg]!?$", + "[Mm]ö[Dd][Cc][Hh][Ee][Nn]", + "[Mm]Ö[Dd][Cc][Hh][Ee][Nn]" } @@ -81,7 +83,7 @@ function special:action(msg, config, matches) ┳━━━┳ Back. (╮┳┳)╮ಠ_ಠ (╯┳┳)╯︵ ಠ‾ಠ NEVER]] - elseif msg_text:match("[Mm]ö[Pp]?") or msg_text:match("[Mm][Ee][Ee][Pp]") then + elseif msg_text:match("^[Mm]ö[Pp]?$") or msg_text:match("[Mm][Ee][Ee][Pp]") then output = 'se' elseif msg_text:match("[Bb][Aa][Rr][Uu][Ss][Aa][Mm][Ii][Kk][Oo][Ss][Uu]") or msg_text:match("[Bb][Aa][Ll][Ss][Aa][Mm][Ii][Kk][Oo] [Ee][Ss][Ss][Ii][Gg]") then utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/0SEY/barusamikosu.jpg'), nil, msg.message_id) @@ -122,6 +124,8 @@ function special:action(msg, config, matches) output = 'Pong' elseif msg_text:match("^[Dd][Aa][Ss] [Ii][Ss][Tt]? [Nn][Ii][Cc][Hh][Tt]? [Ll][Uu][Ss][Tt][Ii][Gg]!?$") then output = 'Aber Funny!' + elseif msg_text:match("[Mm]ö[Dd][Cc][Hh][Ee][Nn]") or msg_text:match("[Mm]Ö[Dd][Cc][Hh][Ee][Nn]") then + output = 'Es heißt MÄDCHEN!' end utilities.send_reply(msg, output)