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/magische_miesmuschel.lua

22 lines
432 B
Lua
Raw Normal View History

local muschel = {}
muschel.triggers = {
2016-08-26 19:13:29 +02:00
"^[Mm][Aa][Gg][Ii][Ss][Cc][Hh][Ee] [Mm][Ii][Ee][Ss][Mm][Uu][Ss][Cc][Hh][Ee][Ll],? (.*)$"
}
function muschel:frag_die_muschel()
local possibilities = {
"Ja",
"Nein",
"Eines Tages vielleicht"
}
local random = math.random(3)
return possibilities[random]
end
function muschel:action(msg, config, matches)
utilities.send_reply(msg, muschel:frag_die_muschel())
end
return muschel