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

22 lines
500 B
Lua

do
function run(msg, matches)
local user_name = get_name(msg)
local answers = {'Ja?','Was gibts, ' .. user_name .. '?','Ja ' .. user_name .. ', was ist?',
'Ich bin noch da.', user_name ,'Nein!','So heiße ich', 'Nerv mich nicht!'}
return answers[math.random(#answers)]
end
return {
description = "Ist der Bot noch da?",
usage = {"Miku", "ミク"},
patterns = {"^[Mm][Ii][Kk][Uu]%??$",
"^ミク%??$"
},
run = run
}
--by Akamaru [https://ponywave.de]
end