summaryrefslogtreecommitdiff
path: root/examples/basic_mode.lua
blob: 97cccd1b77fbf515852be53ea7f5b373a5e0ec6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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