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

16 lines
461 B
Lua
Raw Normal View History

2015-06-06 22:16:11 +02:00
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'}
2015-06-06 22:16:11 +02:00
return answers[math.random(#answers)]
end
return {
description = "Ist der Bot noch da?",
usage = {"Miku"},
2015-11-12 17:42:03 +01:00
patterns = {"^[Mm][Ii][Kk][Uu](?)$",
"^[Mm][Ii][Kk][Uu]$"
},
2015-06-06 22:16:11 +02:00
run = run
}
--by Akamaru [https://ponywave.de]