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

16 lines
252 B
Lua
Raw Normal View History

2014-11-04 16:09:08 +01:00
function run(msg, matches)
2014-11-22 14:42:26 +01:00
return "Hello, " .. matches[1]
2014-11-04 16:09:08 +01:00
end
return {
description = "Says hello to someone",
usage = "say hello to [name]",
2014-11-22 14:42:26 +01:00
patterns = {
2014-11-22 14:44:00 +01:00
"^say hello to (.*)$",
2014-11-22 14:42:26 +01:00
"^Say hello to (.*)$"
},
2014-11-04 16:09:08 +01:00
run = run
}