changeset 16 | 064a50911e05 |
parent 2 | c7ac7b6a76e0 |
child 42 | 99477d3c2dda |
--- a/mcbot/cmds/dict.lua Thu Apr 15 18:35:13 2010 +0200 +++ b/mcbot/cmds/dict.lua Thu Apr 15 18:57:38 2010 +0200 @@ -1,5 +1,7 @@ -local function dict (args) +local dict = { ["desc"] = "Dictionnary" } + +function dict.cmd (args) if not args then return nil, "Give me a word, please" end -- Be careful as we pass it as an argument to a shell command local word = string.match(args, "^(%w+)[%s%?%.%!]*$")