This commit is contained in:
Akamaru 2016-09-19 16:35:30 +02:00
parent e5f08801ab
commit 7a17d86566

View File

@ -23,7 +23,8 @@ special.triggers = {
"^[Yy][Oo][Ll][Oo]$", "^[Yy][Oo][Ll][Oo]$",
"[Ii] [Ww][Ii][Ss][Hh] [Ss][Qq][Uu][Ii][Dd][Ss] [Ww][Ee][Rr][Ee] [Rr][Ee][Aa][Ll]", "[Ii] [Ww][Ii][Ss][Hh] [Ss][Qq][Uu][Ii][Dd][Ss] [Ww][Ee][Rr][Ee] [Rr][Ee][Aa][Ll]",
"^/[Kk][Ii][Ll][Ll] (.*)", "^/[Kk][Ii][Ll][Ll] (.*)",
"^[Ii][Nn][Ll][Oo][Vv][Ee]$", "[Mm]ö[Dd][Cc][Hh][Ee][Nn]",
"[Mm]Ö[Dd][Cc][Hh][Ee][Nn]",
"^[Pp][Ee]$", "^[Pp][Ee]$",
"^[Vv][Aa]$", "^[Vv][Aa]$",
"^[Mm][Uu]$", "^[Mm][Uu]$",
@ -32,9 +33,7 @@ special.triggers = {
"^%(\\$", "^%(\\$",
"^/[Ss][Cc][Hh][Ee][Ll][Ll][Ee]$", "^/[Ss][Cc][Hh][Ee][Ll][Ll][Ee]$",
"^[Pp][Ii][Nn][Gg]$", "^[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]"
} }
@ -106,6 +105,8 @@ function special:action(msg, config, matches)
return return
elseif msg_text:match("[Kk][Ii][Ll][Ll]") then elseif msg_text:match("[Kk][Ii][Ll][Ll]") then
output = user_name..' tötet '..matches[1] output = user_name..' tötet '..matches[1]
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!'
elseif msg_text:match("[Pp][Ee]") then elseif msg_text:match("[Pp][Ee]") then
output = 'nis' output = 'nis'
elseif msg_text:match("[Vv][Aa]") then elseif msg_text:match("[Vv][Aa]") then
@ -124,8 +125,6 @@ function special:action(msg, config, matches)
output = 'Pong' output = 'Pong'
elseif msg_text:match("^[Dd][Aa][Ss] [Ii][Ss][Tt]? [Nn][Ii][Cc][Hh][Tt]? [Ll][Uu][Ss][Tt][Ii][Gg]!?$") then 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!' 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 end
utilities.send_reply(msg, output) utilities.send_reply(msg, output)