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

18 lines
496 B
Lua

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'}
return answers[math.random(#answers)]
end
return {
description = "Ist der Bot noch da?",
usage = {"Miku"},
patterns = {"^[Mm][Ii][Kk][Uu](?)$",
"^[Mm][Ii][Kk][Uu]$",
"^ミク$",
"^ミク(?)$"
},
run = run
}
--by Akamaru [https://ponywave.de]