def handle_help(m, params)
topic = params[:topic]
case topic
when false
m.reply "config module - bot configuration. usage: list, desc, get, set, unset, add, rm"
when "list"
m.reply "config list => list configuration modules, config list <module> => list configuration keys for module <module>"
when "get"
m.reply "config get <key> => get configuration value for key <key>"
when "unset"
m.reply "reset key <key> to the default"
when "set"
m.reply "config set <key> <value> => set configuration value for key <key> to <value>"
when "desc"
m.reply "config desc <key> => describe what key <key> configures"
when "add"
m.reply "config add <value> to <key> => add value <value> to key <key> if <key> is an array"
when "rm"
m.reply "config rm <value> from <key> => remove value <value> from key <key> if <key> is an array"
else
m.reply "no help for config #{topic}"
end
end