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/plugins/special.lua

168 lines
5.7 KiB
Lua
Raw Normal View History

2015-09-10 15:11:10 +02:00
-- Dirty code is dirty code, but idc
2015-08-17 02:31:15 +02:00
require "socket"
function sleep(sec)
socket.select(nil, nil, sec)
end
2015-06-16 21:42:51 +02:00
function run(msg, matches)
2015-07-21 16:13:35 +02:00
local user_name = get_name(msg)
2015-11-12 17:42:03 +01:00
if string.match(msg.text, "[Rr][Ii][Cc][Hh] [Bb][Ii][Tt][Cc][Hh]") then
2015-06-16 21:42:51 +02:00
return 'Akamaru ist nicht reich!'
2015-11-12 17:42:03 +01:00
elseif string.match(msg.text, "[Oo][Ll][Dd]") then
2015-06-16 21:42:51 +02:00
return 'Deine Mudda is old!'
2015-11-12 17:42:03 +01:00
elseif string.match(msg.text, "[Nn][Yy][Uu]") then
2015-06-16 21:42:51 +02:00
send_photo(get_receiver(msg), "pictures/nyu.jpg", ok_cb, false)
2015-11-12 17:42:03 +01:00
elseif string.match(msg.text, "[Nn][Oo][Pp][Ee].[Aa][Vv][Ii]") then
2015-06-16 21:42:51 +02:00
send_video(get_receiver(msg), "videos/nope.avi", ok_cb, false)
return 'Video wird gesendet...'
2015-11-12 17:42:03 +01:00
elseif string.match(msg.text, "[Nn][Ii][Ii][Ss][Aa][Nn]") or string.match(msg.text, "[Nn][Ii][Ii](-)[Ss][Aa][Nn]") or string.match(msg.text, "[Nn][Ii][Ss][Ss][Aa][Nn]") then
2015-06-16 21:42:51 +02:00
send_photo(get_receiver(msg), "pictures/Nii-san.jpg", ok_cb, false)
2015-11-12 17:42:03 +01:00
elseif string.match(msg.text, "[Nn][Ee][Oo][Rr][Aa][Mm][Ee]") then
2015-06-16 21:42:51 +02:00
send_photo(get_receiver(msg), "pictures/neorame.jpg", ok_cb, false)
2015-11-12 17:42:03 +01:00
elseif string.match(msg.text, "[Nn][Aa][Uu]") then
2015-06-16 21:42:51 +02:00
send_photo(get_receiver(msg), "pictures/nau.jpg", ok_cb, false)
2015-11-12 17:42:03 +01:00
elseif string.match(msg.text, "[Ff][Tt][Tt]") then
2015-07-02 21:43:24 +02:00
return [[(°°) FLIP THAT TABLE.
(°°) FLIP THIS TABLE.
(`0`)/ FLIP ALL THE TABLES
_ಠ Child. . .
_ಠ Put.
__ಠ The tables.
___ಠ Back.
(°-°)
(°°) NEVER]]
2015-11-12 17:42:03 +01:00
elseif string.match(msg.text, "[Ff][Tt][Ff]") then
2015-07-23 20:31:45 +02:00
return [[() FLIP THAT FATHER.
() FLIP THIS FATHER.
()/ FLIP ALL THE FATHERS
Child. . .
Put.
The Fathers.
Back.
()_ಠ
() NEVER]]
2015-11-12 17:42:03 +01:00
elseif string.match(msg.text, "[Nn][Bb][Cc]") or string.match(msg.text, "[Ii][Dd][Cc]") then
return [[¯\_(ツ)_/¯]]
2015-11-12 17:42:03 +01:00
elseif string.match(msg.text, "[Ll][Ff]") then
2015-07-26 23:02:36 +02:00
return '( ͡° ͜ʖ ͡°)'
2015-11-12 17:42:03 +01:00
elseif string.match(msg.text, "[Ll][Oo][Dd]") then
return 'ಠ_ಠ'
2015-11-12 17:42:03 +01:00
2016-02-02 16:14:11 +01:00
elseif string.match(msg.text, "[Mm]ö[Pp]?") or string.match(msg.text, "[Mm][Ee][Ee][Pp]") then
2015-07-21 16:13:35 +02:00
return 'se'
2015-11-12 17:42:03 +01:00
elseif string.match(msg.text, "[Ff][Rr][Oo][Ss][Cc][Hh]") then
2015-07-21 16:13:35 +02:00
return '🐸🐸🐸'
2015-11-12 17:42:03 +01:00
elseif string.match(msg.text, "[Bb][Aa][Rr][Uu][Ss][Aa][Mm][Ii][Kk][Oo][Ss][Uu]") or string.match(msg.text, "[Bb][Aa][Ll][Ss][Aa][Mm][Ii][Kk][Oo] [Ee][Ss][Ss][Ii][Gg]") then
2015-07-21 16:13:35 +02:00
send_photo(get_receiver(msg), "pictures/luckystar/barusamikosu.jpg", ok_cb, false)
2015-11-12 17:42:03 +01:00
elseif string.match(msg.text, "[Bb][Aa][Kk][Aa] [Bb][Oo][Tt]") then
2015-07-21 16:13:35 +02:00
return "Gomen'nasai "..user_name.."-sempai 😣"
2015-11-12 17:42:03 +01:00
elseif string.match(msg.text, "[Aa][Hh][Aa].[Pp][Nn][Gg]") then
2015-07-21 16:13:35 +02:00
send_photo(get_receiver(msg), "pictures/aha.png", ok_cb, false)
2015-11-12 17:42:03 +01:00
elseif string.match(msg.text, "[Pp][Oo][Ii]") then
send_document(get_receiver(msg), "sticker/poi.webp", ok_cb, false)
elseif string.match(msg.text, "[Tt][Hh][Yy][Mm][Ee]") then
2015-08-02 22:05:46 +02:00
send_photo(get_receiver(msg), "pictures/thyme.jpg", ok_cb, false)
2015-11-12 17:42:03 +01:00
elseif string.match(msg.text, "[Yy][Oo][Ll][Oo]") then
2015-08-02 22:12:22 +02:00
return 'Hä YOLO?'
2015-11-12 17:42:03 +01:00
elseif string.match(msg.text, "[Kk][Aa][Pp][Pp][Aa]") then
2015-08-10 15:17:35 +02:00
return [[
]]
2015-11-12 17:42:03 +01:00
2015-08-17 02:31:15 +02:00
elseif string.match(msg.text, "[Ii] [Ww][Ii][Ss][Hh] [Ss][Qq][Uu][Ii][Dd][Ss] [Ww][Ee][Rr][Ee] [Rr][Ee][Aa][Ll]") then
send_photo(get_receiver(msg), "pictures/squid.jpg", ok_cb, false)
--sleep(2)
return 'They are'
2015-11-12 17:42:03 +01:00
--elseif string.match(msg.text, "[Ff][Gg][Tt]") then
--return 'Deine Mudda is fgt!'
elseif string.match(msg.text, "[Kk][Ii][Ll][Ll]") then
return user_name..' tötet '..matches[1]
elseif string.match(msg.text, "[Ii][Nn][Ll][Oo][Vv][Ee]") then
send_document(get_receiver(msg), "pictures/inlove.gif", ok_cb, false)
2015-12-01 20:53:56 +01:00
elseif string.match(msg.text, "[Pp][Ee]") then
return 'nis'
2015-12-03 20:39:27 +01:00
elseif string.match(msg.text, "[Vv][Aa]") then
return 'gina'
2015-12-12 23:26:16 +01:00
elseif string.match(msg.text, "[Mm][Uu]") then
return 'schi'
2016-01-11 19:39:19 +01:00
elseif string.match(msg.text, "[Ii][Yy][Kk][Ww][Ii][Mm]") then
return '(¬‿¬)'
2015-07-02 21:43:24 +02:00
end
2015-06-16 21:42:51 +02:00
end
return {
2015-07-02 21:43:24 +02:00
description = "Ein Plugin mit nutzlosen Befehlen",
2015-06-16 21:42:51 +02:00
usage = {""},
2015-12-12 23:26:16 +01:00
patterns = {"[Rr][Ii][Cc][Hh] [Bb][Ii][Tt][Cc][Hh]",
2015-09-10 15:11:10 +02:00
"^#[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]$",
"^/[Nn][Bb][Cc]$",
"^/[Ii][Dd][Cc]$",
"^/[Ll][Ff]$",
"^/[Ll][Oo][Dd]$",
2016-02-02 16:14:11 +01:00
"^[Mm]ö[Pp]?$",
2015-09-10 15:11:10 +02:00
"^[Mm][Ee][Ee][Pp]$",
"^/[Ff][Rr][Oo][Ss][Cc][Hh]$",
"^/[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]$",
2015-08-02 22:12:22 +02:00
"^/[Tt][Hh][Yy][Mm][Ee]$",
2015-08-10 15:17:35 +02:00
"^[Yy][Oo][Ll][Oo]$",
2015-08-17 02:31:15 +02:00
"^/[Kk][Aa][Pp][Pp][Aa]$",
2015-09-10 15:11:10 +02:00
"[Ii] [Ww][Ii][Ss][Hh] [Ss][Qq][Uu][Ii][Dd][Ss] [Ww][Ee][Rr][Ee] [Rr][Ee][Aa][Ll]",
2015-11-12 17:42:03 +01:00
--"[Ff][Gg][Tt]",
"^/[Kk][Ii][Ll][Ll] (.*)",
2015-12-01 20:53:56 +01:00
"^[Ii][Nn][Ll][Oo][Vv][Ee]$",
2015-12-03 20:39:27 +01:00
"^[Pp][Ee]$",
2015-12-12 23:26:16 +01:00
"^[Vv][Aa]$",
2016-01-11 19:39:19 +01:00
"^[Mm][Uu]$",
"^/[Ii][Yy][Kk][Ww][Ii][Mm]$"
2015-06-16 21:42:51 +02:00
},
run = run
}
--by Akamaru [https://ponywave.de]