update alive.lua

new answer
new pattern
This commit is contained in:
Akamaru 2015-06-09 16:28:06 +02:00
parent e0d26820be
commit dc271edeba

View File

@ -1,14 +1,14 @@
function run(msg, matches) function run(msg, matches)
local user_name = get_name(msg) local user_name = get_name(msg)
local answers = {'Ja?','Was gibts, ' .. user_name .. '?','Ja ' .. user_name .. ', was ist?', local answers = {'Ja?','Was gibts, ' .. user_name .. '?','Ja ' .. user_name .. ', was ist?',
'Ich bin noch da.', user_name ,'Nein!'} 'Ich bin noch da.', user_name ,'Nein!','So heiße ich'}
return answers[math.random(#answers)] return answers[math.random(#answers)]
end end
return { return {
description = "Ist der Bot noch da?", description = "Ist der Bot noch da?",
usage = {"Miku"}, usage = {"Miku"},
patterns = {"^[M|m]iku$"}, patterns = {"^[M|m]iku(?)$","^[M|m]iku$"},
run = run run = run
} }
--by Akamaru [https://ponywave.de] --by Akamaru [https://ponywave.de]