In the future this section will be more detailed. For now it's just a holding place for the outline of the future help, and a quick reference to the Jester core functions that are most commonly used in modules.
The core code and modules are fairly well documented, and much can be learned from reviewed them directly. The most important quick tips are:
- You must have this line at the top of your main module file:
local core = require "jester.core"This allows you to access Jester core via the
- The main module file must named
foomodule would live at
- A 'conf.lua' is required:
jester/modules/foo/conf.luaThe file contains a mapping of module functions to action names, and can declare multiple handlers for actions.
core.get_storage(area, key, [default]) core.set_storage(area, key, value) core.clear_storage(area, [key])
-- Different than session:ready()! core.ready()
-- Discouraged to use in a module, let the user do their own custom -- logging with the log action. core.log(msg, [prefix], [level]) -- Recommended, use extensively so that problems can be easily spotted -- when debugging is turned on. core.debug_log(msg, ...)
core.wait(milliseconds) core.trim(string)Other core functions are available, check the code directly.
Jester keeps track of a lot of things in stacks, at the following namespaces: