diff options
Diffstat (limited to 'examples/basic_mode.lua')
-rw-r--r-- | examples/basic_mode.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/basic_mode.lua b/examples/basic_mode.lua index 04c16df..97cccd1 100644 --- a/examples/basic_mode.lua +++ b/examples/basic_mode.lua @@ -1,6 +1,12 @@ -return { +local commands = { ["%w+%s*\n"] = function(match) command_queue:enqueue(string.match(match , "(%w+)%s*")) end, [".*\n"] = function(match) end } + +local responses = { + [".*\n"] = function(match) end +} + +return commands, responses
\ No newline at end of file |