summaryrefslogtreecommitdiff
path: root/examples/basic_mode.lua
blob: 9f9b8ad522968b29f96b41a60e82fb729b3ac92d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
local commands = {
   ["%w+%s*\n"] = function(match, requester)
                     command_queue:enqueue(string.match(match , "(%w+)%s*"))
                  end,
   [".*\n"] = function(match, requester) end
}

local responses = {
   [".*\n"] = function(match) end
}

return commands, responses