This commit is contained in:
Akamaru 2016-10-11 16:44:31 +02:00
parent 9295dc9630
commit 814173a4fb
3 changed files with 4 additions and 8 deletions

3
.gitignore vendored
View File

@ -7,4 +7,5 @@ Bot-Kommandoliste.txt
msg.txt
merge.sh
miku/plugins/link_warning.lua
luarocks
luarocks
miku/plugins/gTrendDoge.lua

View File

@ -33,8 +33,7 @@ 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]!?$",
"[Kk][Aa][Pp][Pp][Aa][Rr][Oo][Ss][Ss]"
"^[Dd][Aa][Ss] [Ii][Ss][Tt]? [Nn][Ii][Cc][Hh][Tt]? [Ll][Uu][Ss][Tt][Ii][Gg]!?$"
}
@ -126,8 +125,6 @@ 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("[Kk][Aa][Pp][Pp][Aa][Rr][Oo][Ss][Ss]") then
utilities.send_document(msg.chat.id, download_to_file('https://dl.dropboxusercontent.com/s/iew6d761gu43mil/is_des_so.webp'), nil, msg.message_id)
end
utilities.send_reply(msg, output)

View File

@ -1,9 +1,7 @@
local speedtest = {}
speedtest.triggers = {
"speedtest%.net/my%-result/(%d+)",
"speedtest%.net/my%-result/i/(%d+)",
"speedtest%.net/result/(%d+)"
"speedtest%.net/my%-result/?a?i?/(%d+)"
}
function speedtest:action(msg, config, matches)