This repository has been archived on 2021-04-24. You can view files and clone it, but cannot push or open issues or pull requests.
Mikubot-2/miku/plugins/special.lua

123 lines
5.1 KiB
Lua
Raw Normal View History

local special = {}
special.triggers = {
"[Rr][Ii][Cc][Hh] [Bb][Ii][Tt][Cc][Hh]",
"^/[Oo][Ll][Dd]$",
"^[Nn][Yy][Uu]$",
"^[Nn][Oo][Pp][Ee].[Aa][Vv][Ii]$",
"^[Nn][Ii][Ii][Ss][Aa][Nn]$",
"^[Nn][Ii][Ii](-)[Ss][Aa][Nn]$",
"^[Nn][Ii][Ss][Ss][Aa][Nn]$",
"^/[Nn][Ee][Oo][Rr][Aa][Mm][Ee]$",
"^/[Nn][Aa][Uu]$",
"^/[Ff][Tt][Tt]$",
"^/[Ff][Tt][Ff]$",
"^[Mm]ö[Pp]?$",
"^[Mm][Ee][Ee][Pp]$",
"^/[Bb][Aa][Rr][Uu][Ss][Aa][Mm][Ii][Kk][Oo][Ss][Uu]$",
"^/[Bb][Aa][Ll][Ss][Aa][Mm][Ii][Kk][Oo] [Ee][Ss][Ss][Ii][Gg]$",
"^[Bb][Aa][Kk][Aa] [Bb][Oo][Tt]$",
"^[Aa][Hh][Aa].[Pp][Nn][Gg]$",
"^~?[Pp][Oo][Ii]$",
"^/[Tt][Hh][Yy][Mm][Ee]$",
"^[Yy][Oo][Ll][Oo]$",
"^/[Kk][Aa][Pp][Pp][Aa]$",
"[Ii] [Ww][Ii][Ss][Hh] [Ss][Qq][Uu][Ii][Dd][Ss] [Ww][Ee][Rr][Ee] [Rr][Ee][Aa][Ll]",
"^/[Kk][Ii][Ll][Ll] (.*)",
"^[Ii][Nn][Ll][Oo][Vv][Ee]$",
"^[Pp][Ee]$",
"^[Vv][Aa]$",
"^[Mm][Uu]$",
"^/[Ii][Yy][Kk][Ww][Ii][Mm]$"
}
function special:action(msg, config, matches)
local msg_text = msg.text
local output
if msg_text:match("[Rr][Ii][Cc][Hh] [Bb][Ii][Tt][Cc][Hh]") then
output = 'Akamaru ist nicht reich!'
elseif msg_text:match("/[Oo][Ll][Dd]") then
output = 'Deine Mudda is old!'
elseif msg_text:match("[Nn][Yy][Uu]") then
utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/JSXH/nyu.jpg'), nil, msg.message_id)
return
elseif msg_text:match("[Nn][Oo][Pp][Ee].[Aa][Vv][Ii]") then
utilities.send_typing(msg.chat.id, 'upload_video')
utilities.send_video(msg.chat.id, download_to_file('https://dl.dropboxusercontent.com/u/32829149/nope.avi'), nil, msg.message_id)
return
elseif msg_text:match("[Nn][Ii][Ii][Ss][Aa][Nn]") or msg_text:match("[Nn][Ii][Ii](-)[Ss][Aa][Nn]") or msg_text:match("[Nn][Ii][Ss][Ss][Aa][Nn]") then
utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/XB2T/Nii-san.jpg'), nil, msg.message_id)
return
elseif msg_text:match("/[Nn][Ee][Oo][Rr][Aa][Mm][Ee]") then
utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/GM93/neorame.jpg'), nil, msg.message_id)
return
elseif msg_text:match("[Nn][Aa][Uu]") then
utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/V1QH/nau.jpg'), nil, msg.message_id)
return
elseif msg_text:match("[Ff][Tt][Tt]") then
output = [[(°°) FLIP THAT TABLE.
(°°) FLIP THIS TABLE.
(`0`)/ FLIP ALL THE TABLES
_ಠ Child. . .
_ಠ Put.
__ಠ The tables.
___ಠ Back.
(°-°)
(°°) NEVER]]
elseif msg_text:match("[Ff][Tt][Ff]") then
output = [[() FLIP THAT FATHER.
() FLIP THIS FATHER.
()/ FLIP ALL THE FATHERS
Child. . .
Put.
The Fathers.
Back.
()_ಠ
() NEVER]]
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)
return
elseif msg_text:match("[Bb][Aa][Kk][Aa] [Bb][Oo][Tt]") then
output = 'Gomen\'nasai '..msg.from.first_name..'-sempai 😣'
elseif msg_text:match("[Aa][Hh][Aa].[Pp][Nn][Gg]") then
utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/W97R/aha.png'), nil, msg.message_id)
return
elseif msg_text:match("[Pp][Oo][Ii]") then
utilities.send_document(msg.chat.id, download_to_file('https://dl.dropboxusercontent.com/u/32829149/poi.webp'), nil, msg.message_id)
return
elseif msg_text:match("/[Tt][Hh][Yy][Mm][Ee]") then
utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/N6NO/thyme.jpg'), nil, msg.message_id)
return
elseif msg_text:match("[Yy][Oo][Ll][Oo]") then
output = 'Hä YOLO?'
elseif msg_text:match("/[Kk][Aa][Pp][Pp][Aa]") then
output = [[
]]
elseif msg_text:match("[Ii] [Ww][Ii][Ss][Hh] [Ss][Qq][Uu][Ii][Dd][Ss] [Ww][Ee][Rr][Ee] [Rr][Ee][Aa][Ll]") then
utilities.send_photo(msg.chat.id, download_to_file('http://img.ponywave.de/di/N03B/squid.jpg'), 'They are', msg.message_id)
return
elseif msg_text:match("[Kk][Ii][Ll][Ll]") then
output = msg.first.first_name..' tötet '..matches[1]
elseif msg_text:match("[Pp][Ee]") then
output = 'nis'
elseif msg_text:match("[Vv][Aa]") then
output = 'gina'
elseif msg_text:match("[Mm][Uu]") then
output = 'schi'
elseif msg_text:match("/[Ii][Yy][Kk][Ww][Ii][Mm]") then
output = '(¬‿¬)'
end
utilities.send_reply(msg, output)
end
return special